Skip to content

Commit

Permalink
build: update tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Sep 15, 2022
1 parent 4056fdf commit 8aebb6e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/util/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class JOSEError extends Error {
constructor(message?: string) {
super(message)
this.name = this.constructor.name
// @ts-ignore
Error.captureStackTrace?.(this, this.constructor)
}
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"../src/index.ts"
],
"compilerOptions": {
"lib": ["ES6", "DOM"],
"lib": ["ES2017", "DOM"],
"types": [],
"strict": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
Expand Down
1 change: 1 addition & 0 deletions tsconfig/node-cjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./base.json",
"compilerOptions": {
"types": ["node"],
"target": "ES2019",
"module": "CommonJS",
"outDir": "../dist/node/cjs"
Expand Down
3 changes: 1 addition & 2 deletions tsconfig/node-esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./base.json",
"extends": "./node-cjs.json",
"compilerOptions": {
"target": "ES2019",
"module": "ES2020",
"outDir": "../dist/node/esm"
}
Expand Down

0 comments on commit 8aebb6e

Please sign in to comment.