Refactor tsconfig: use inheritance

This commit is contained in:
Paul Miller 2023-12-23 17:30:48 +00:00
parent 2706fe9f79
commit 37eab5a28a
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B
3 changed files with 16 additions and 29 deletions

@ -24,7 +24,7 @@
"homepage": "https://paulmillr.com/noble/",
"repository": {
"type": "git",
"url": "https://github.com/paulmillr/noble-curves.git"
"url": "git+https://github.com/paulmillr/noble-curves.git"
},
"license": "MIT",
"dependencies": {
@ -178,4 +178,4 @@
"schnorr"
],
"funding": "https://paulmillr.com/funding/"
}
}

@ -1,15 +1,9 @@
{
"compilerOptions": {
"outDir": "esm",
"target": "es2020",
"module": "es6",
"moduleResolution": "bundler",
"baseUrl": ".",
"paths": {
"@noble/hashes/crypto": ["src/crypto"]
},
"sourceMap": true,
"lib": ["es2020"],
"strict": true,
"sourceMap": true,
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
"esModuleInterop": false,
@ -18,6 +12,13 @@
"noUncheckedIndexedAccess": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": ".",
"paths": {
"@noble/hashes/crypto": ["src/crypto"]
},
"module": "es2020",
"outDir": "esm",
"moduleResolution": "bundler"
},
"include": ["src"],
"exclude": ["node_modules", "lib"]

@ -1,24 +1,10 @@
{
"extends": "./tsconfig.esm.json",
"compilerOptions": {
"outDir": ".",
"target": "es2020",
"lib": ["es2020"], // Set explicitly to remove DOM
"module": "commonjs",
"moduleResolution": "node",
"baseUrl": ".",
"sourceMap": true,
"moduleResolution": "node10",
"outDir": ".",
"declaration": true,
"declarationMap": true,
"strict": true,
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
"esModuleInterop": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": false,
"noUnusedLocals": true,
"noUnusedParameters": true
},
"include": ["src"],
"exclude": ["node_modules", "*.d.ts"]
"declarationMap": true
}
}