Skip to content

Commit efcdc75

Browse files
committed
refactor: use node --run for running subcommands
1 parent 03efa9b commit efcdc75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint": "eslint --max-warnings 0 .",
3232
"typecheck": "tsc --noEmit",
3333
"test": "vitest run",
34-
"build": "rm -rf dist/* && npm run build:cjs && npm run build:mjs && npm run build:node-mjs && npm run build:node-cjs",
34+
"build": "rm -rf dist/* && node --run build:cjs && node --run build:mjs && node --run build:node-mjs && node --run build:node-cjs",
3535
"build:cjs": "tsc -p ./tsconfig.cjs.json --outDir ./dist/cjs",
3636
"build:node-cjs": "tsc -p ./tsconfig.cjs.json --target es2022 --outDir ./dist/node-cjs",
3737
"build:mjs": "tsc -p ./tsconfig.esm.json --outDir ./dist/mjs && mv ./dist/mjs/index.js ./dist/mjs/index.mjs && mv ./dist/mjs/index.d.ts ./dist/mjs/index.d.mts",

0 commit comments

Comments
 (0)