forked from tornado-packages/noble-curves
package.json: declare side-effects free
This commit is contained in:
parent
3f0c0b59f1
commit
549e286ef0
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"browser": {
|
"sideEffects": false
|
||||||
"crypto": false,
|
|
||||||
"./crypto": "./esm/crypto.js"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
"prettier": "2.8.4",
|
"prettier": "2.8.4",
|
||||||
"typescript": "5.0.2"
|
"typescript": "5.0.2"
|
||||||
},
|
},
|
||||||
|
"sideEffects": false,
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true,
|
"outDir": "esm",
|
||||||
"outDir": "esm",
|
"target": "es2020",
|
||||||
"target": "es2020",
|
"module": "es6",
|
||||||
"module": "es6",
|
"moduleResolution": "node16",
|
||||||
"moduleResolution": "node16",
|
"baseUrl": ".",
|
||||||
"noUnusedLocals": true,
|
"paths": {
|
||||||
"sourceMap": true,
|
"@noble/hashes/crypto": ["src/crypto"]
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@noble/hashes/crypto": [ "src/crypto" ]
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"sourceMap": true,
|
||||||
"exclude": [
|
"strict": true,
|
||||||
"node_modules",
|
"allowSyntheticDefaultImports": false,
|
||||||
"lib",
|
"allowUnreachableCode": false,
|
||||||
],
|
"esModuleInterop": false,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noUncheckedIndexedAccess": false,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
},
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["node_modules", "lib"]
|
||||||
}
|
}
|
@ -1,20 +1,24 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true,
|
"outDir": ".",
|
||||||
"declaration": true,
|
"target": "es2020",
|
||||||
"declarationMap": true,
|
"lib": ["es2020"], // Set explicitly to remove DOM
|
||||||
"sourceMap": true,
|
"module": "commonjs",
|
||||||
"outDir": ".",
|
"moduleResolution": "node",
|
||||||
"target": "es2020",
|
"baseUrl": ".",
|
||||||
"lib": ["es2020"], // Set explicitly to remove DOM
|
"sourceMap": true,
|
||||||
"module": "commonjs",
|
"declaration": true,
|
||||||
"moduleResolution": "node",
|
"declarationMap": true,
|
||||||
"noUnusedLocals": true,
|
"strict": true,
|
||||||
"baseUrl": ".",
|
"allowSyntheticDefaultImports": false,
|
||||||
},
|
"allowUnreachableCode": false,
|
||||||
"include": ["src"],
|
"esModuleInterop": false,
|
||||||
"exclude": [
|
"noFallthroughCasesInSwitch": true,
|
||||||
"node_modules",
|
"noImplicitReturns": true,
|
||||||
"*.d.ts"
|
"noUncheckedIndexedAccess": false,
|
||||||
],
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true
|
||||||
|
},
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["node_modules", "*.d.ts"]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user