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/",
|
"homepage": "https://paulmillr.com/noble/",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/paulmillr/noble-curves.git"
|
"url": "git+https://github.com/paulmillr/noble-curves.git"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -178,4 +178,4 @@
|
|||||||
"schnorr"
|
"schnorr"
|
||||||
],
|
],
|
||||||
"funding": "https://paulmillr.com/funding/"
|
"funding": "https://paulmillr.com/funding/"
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,9 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "esm",
|
|
||||||
"target": "es2020",
|
"target": "es2020",
|
||||||
"module": "es6",
|
"lib": ["es2020"],
|
||||||
"moduleResolution": "bundler",
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@noble/hashes/crypto": ["src/crypto"]
|
|
||||||
},
|
|
||||||
"sourceMap": true,
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"sourceMap": true,
|
||||||
"allowSyntheticDefaultImports": false,
|
"allowSyntheticDefaultImports": false,
|
||||||
"allowUnreachableCode": false,
|
"allowUnreachableCode": false,
|
||||||
"esModuleInterop": false,
|
"esModuleInterop": false,
|
||||||
@ -18,6 +12,13 @@
|
|||||||
"noUncheckedIndexedAccess": false,
|
"noUncheckedIndexedAccess": false,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@noble/hashes/crypto": ["src/crypto"]
|
||||||
|
},
|
||||||
|
"module": "es2020",
|
||||||
|
"outDir": "esm",
|
||||||
|
"moduleResolution": "bundler"
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules", "lib"]
|
"exclude": ["node_modules", "lib"]
|
||||||
|
@ -1,24 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "./tsconfig.esm.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": ".",
|
|
||||||
"target": "es2020",
|
|
||||||
"lib": ["es2020"], // Set explicitly to remove DOM
|
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node10",
|
||||||
"baseUrl": ".",
|
"outDir": ".",
|
||||||
"sourceMap": true,
|
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": 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"]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user