Skip to content

Commit

Permalink
Refactor tsconfig: use inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Dec 23, 2023
1 parent 73b9113 commit 8db5c50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"homepage": "https://paulmillr.com/noble/#scure",
"repository": {
"type": "git",
"url": "https://github.com/paulmillr/scure-bip32.git"
"url": "git+https://github.com/paulmillr/scure-bip32.git"
},
"contributors": [
{
Expand Down
11 changes: 6 additions & 5 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
"compilerOptions": {
"target": "es2020",
"lib": ["es2020"],
"module": "es6",
"moduleResolution": "bundler",
"outDir": "lib/esm",
"baseUrl": ".",
"sourceMap": true,
"strict": true,
"sourceMap": false,
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
"esModuleInterop": false,
Expand All @@ -16,6 +12,11 @@
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": ".",

"module": "es2020",
"outDir": "lib/esm",
"moduleResolution": "bundler"
},
"include": ["index.ts"],
"exclude": ["node_modules", "lib"]
Expand Down
22 changes: 4 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
{
"extends": "./tsconfig.esm.json",
"compilerOptions": {
"target": "es2020",
"lib": ["es2020"],
"module": "commonjs",
"moduleResolution": "node10",
"outDir": "lib",
"baseUrl": ".",
"sourceMap": true,
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"strict": true,
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
"esModuleInterop": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
},
"include": ["index.ts"],
"exclude": ["node_modules", "lib"]
"declarationMap": true
}
}

0 comments on commit 8db5c50

Please sign in to comment.