Skip to content

Commit 658a096

Browse files
OttoAllmendingerllm-git
andcommitted
feat(babylonlabs-io-btc-staking-ts): split generate-types script into ESM and CJS variants
Issue: BTC-2732 Co-authored-by: llm-git <[email protected]>
1 parent 36c3cd4 commit 658a096

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/babylonlabs-io-btc-staking-ts/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"require": "./dist/index.cjs"
1212
},
1313
"scripts": {
14-
"generate-types": "dts-bundle-generator -o ./dist/index.d.cts ./src/index.ts --no-check",
14+
"generate-types:cjs": "dts-bundle-generator -o ./dist/index.d.cts ./src/index.ts --no-check",
15+
"generate-types:esm": "dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-check",
16+
"generate-types": "npm run generate-types:cjs && npm run generate-types:esm",
1517
"build": "node build.js && npm run generate-types",
1618
"prepare": "husky",
1719
"prepublishOnly": "npm run build",

0 commit comments

Comments
 (0)