Skip to content

Commit

Permalink
Use jsbt ts configs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Nov 23, 2024
1 parent b993e89 commit 1424554
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 29 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@
"types": "lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/esm/index.js",
"default": "./lib/index.js"
"require": "./lib/index.js"
}
},
"browser": {
"crypto": false
},
"dependencies": {
"@noble/curves": "~1.7.0",
"@noble/hashes": "~1.6.0"
},
"devDependencies": {
"@paulmillr/jsbt": "0.2.1",
"@scure/base": "~1.2.1",
"@scure/bip32": "~1.6.0",
"@scure/bip39": "~1.5.0",
Expand All @@ -33,6 +30,10 @@
"prettier": "3.3.2",
"typescript": "5.5.2"
},
"sideEffects": false,
"browser": {
"crypto": false
},
"author": "Paul Miller (https://paulmillr.com)",
"license": "MIT",
"homepage": "https://github.com/paulmillr/scure-starknet",
Expand Down
22 changes: 5 additions & 17 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
{
"extends": "@paulmillr/jsbt/tsconfig.esm.json",
"compilerOptions": {
"target": "es2020",
"lib": ["es2020"],
"strict": true,
"sourceMap": false,
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
"esModuleInterop": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": ".",

"module": "es2020",
"outDir": "lib/esm",
"moduleResolution": "bundler"
"moduleResolution": "bundler",
"noUncheckedIndexedAccess": true,
"outDir": "lib/esm"
},
"include": ["index.ts"],
"include": ["index.ts", "src"],
"exclude": ["node_modules", "lib"]
}
12 changes: 5 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"extends": "./tsconfig.esm.json",
"extends": "@paulmillr/jsbt/tsconfig.cjs.json",
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node10",
"outDir": "lib",
"declaration": true,
"declarationMap": true
}
"outDir": "lib"
},
"include": ["index.ts", "src"],
"exclude": ["node_modules", "lib"]
}

0 comments on commit 1424554

Please sign in to comment.