forked from tornado-packages/noble-curves
Refactor tsconfig: use inheritance
This commit is contained in:
parent
2706fe9f79
commit
37eab5a28a
@ -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": {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user