Skip to content

Commit 7dcc759

Browse files
OttoAllmendingerllm-git
andcommitted
feat(wasm-utxo): enhance TypeScript project configuration
Update tsconfig to emit compiled code directly to dist directory for both ESM and CJS builds. Add composite flag for project references. Remove utxo-lib dependency from UI package as it's not needed. Add typecheck script to UI project. Co-authored-by: llm-git <[email protected]>
1 parent 1ae678b commit 7dcc759

File tree

6 files changed

+10
-29
lines changed

6 files changed

+10
-29
lines changed

package-lock.json

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/wasm-utxo-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"private": true,
1313
"scripts": {
1414
"build": "webpack --mode production --progress --config ./webpack.config.js",
15+
"typecheck": "tsc --noEmit",
1516
"test": "echo \"Error: no test specified\"",
1617
"dev": "webpack serve --mode development --progress --hot --config ./webpack.config.js",
1718
"fmt": "prettier --write .",
@@ -21,7 +22,6 @@
2122
"deploy": "gh-pages -d dist"
2223
},
2324
"dependencies": {
24-
"@bitgo/utxo-lib": "^10.1.0",
2525
"@bitgo/wasm-utxo": "*",
2626
"assert": "^2.1.0",
2727
"buffer": "^6.0.3",

packages/wasm-utxo-ui/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"composite": true,
34
"allowSyntheticDefaultImports": true,
45
"esModuleInterop": true,
56
"forceConsistentCasingInFileNames": true,

packages/wasm-utxo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"test:cjs-import": "node bundler-test/test-cjs-import.cjs",
4242
"test:imports": "npm run test:esm-import && npm run test:cjs-import",
4343
"build:wasm": "make js/wasm/ && make dist/esm/wasm/ && make dist/cjs/wasm/",
44-
"build:ts-esm": "tsc --noEmit false --outDir dist/esm",
45-
"build:ts-cjs": "tsc --noEmit false --project tsconfig.cjs.json --outDir dist/cjs",
44+
"build:ts-esm": "tsc",
45+
"build:ts-cjs": "tsc --project tsconfig.cjs.json",
4646
"build:ts": "npm run build:ts-esm && npm run build:ts-cjs",
4747
"build:package-json": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
4848
"build": "npm run build:wasm && npm run build:ts && npm run build:package-json",

packages/wasm-utxo/tsconfig.cjs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"module": "CommonJS",
5-
"moduleResolution": "node"
5+
"moduleResolution": "node",
6+
"outDir": "./dist/cjs"
67
}
78
}
89

packages/wasm-utxo/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"allowJs": true,
88
"skipLibCheck": true,
99
"declaration": true,
10-
"noEmit": true
10+
"composite": true,
11+
"outDir": "./dist/esm"
1112
},
1213
"include": ["./js/**/*.ts"],
1314
"exclude": ["node_modules", "./js/wasm/**/*", "test"]

0 commit comments

Comments
 (0)