Skip to content

Commit

Permalink
ref: replace ts-node with node --import tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Jan 11, 2025
1 parent 61706e0 commit 0c2e8d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 118 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
"type": "module",
"scripts": {
"lint": "eslint . && tsc --noEmit",
"build-types": "tsc --emitDeclarationOnly --declaration --outDir dist && pnpm node-ts -- ./tools/fix-dts.mts",
"build-types": "tsc --emitDeclarationOnly --declaration --outDir dist && node --import tsx ./tools/fix-dts.mts",
"build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
"build-all": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"pnpm build-types && pnpm post-build-global && echo Finished building.\"",
"build-all": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"pnpm build-types && pnpm post-build-global\"",
"build": "pnpm build-common -- && pnpm build-types",
"post-build-global": "pnpm node-ts -- ./tools/post-build-global.mts",
"dev": "pnpm build-common -- --sourcemap --watch --onSuccess \"pnpm build-types && echo Finished building.\"",
"post-build-global": "node --import tsx ./tools/post-build-global.mts",
"dev": "pnpm build-common -- --sourcemap --watch --onSuccess \"pnpm build-types\"",
"dev-all": "pnpm build-all -- --watch",
"update-jsr-version": "pnpm node-ts -- ./tools/update-jsr-version.mts",
"update-jsr-version": "node --import tsx ./tools/update-jsr-version.mts",
"publish-package": "changeset publish",
"publish-package-jsr": "pnpm update-jsr-version && npx jsr publish --allow-dirty",
"change": "changeset",
"node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
"test-serve": "pnpm node-ts -- ./test/TestPage/server.mts",
"test-serve": "node --import tsx ./test/TestPage/server.mts",
"test-dev": "cd test/TestScript && pnpm dev",
"test": "concurrently \"pnpm test-serve\" \"pnpm test-dev\""
},
Expand Down Expand Up @@ -63,7 +63,6 @@
"concurrently": "^8.2.2",
"eslint": "^8.57.1",
"express": "^4.21.2",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
Expand Down
111 changes: 0 additions & 111 deletions pnpm-lock.yaml

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

0 comments on commit 0c2e8d2

Please sign in to comment.