Skip to content

Commit 019cb9d

Browse files
authored
ci: convert the script to mark module types for the two hybrid build outputs in dist dir from js to ts (#94)
1 parent 6263b62 commit 019cb9d

File tree

4 files changed

+370
-72
lines changed

4 files changed

+370
-72
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"test": "vitest --run --config ./spec/vitest.config.ts",
4747
"test:dev": "vitest --watch --config ./spec/vitest.config.ts",
4848
"test-typings-check": "tsc --noEmit -p ./spec/tsconfig.json",
49-
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node ./scripts/set-module-type-in-dist-builds.mjs",
49+
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && tsx ./scripts/set-module-type-in-dist-builds.ts",
5050
"build-check": "tsc --noEmit -p ./tsconfig.json",
5151
"prepack": "npm run build"
5252
},
@@ -70,6 +70,7 @@
7070
"jsdom": "^25.0.1",
7171
"lodash-es": "^4.17.21",
7272
"prettier": "^3.4.2",
73+
"tsx": "^4.19.3",
7374
"typescript": "^5.7.2",
7475
"typescript-eslint": "^8.18.0",
7576
"vitest": "~3.0.5"

0 commit comments

Comments
 (0)