Skip to content

Commit eedc0ff

Browse files
committed
Replace ts-node with tsx
1 parent 386bee6 commit eedc0ff

File tree

4 files changed

+189
-97
lines changed

4 files changed

+189
-97
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"strip-ansi": "^6",
3737
"symlink-workspace": "^1.9.0",
3838
"ts-jest": "^29.1.1",
39-
"ts-node": "^10.9.2",
39+
"tsx": "^4.20.3",
4040
"typescript": "^5.1.6"
4141
},
4242
"workspaces": [

packages/ast/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
"copy": "copyfiles -f LICENSE-Apache LICENSE-MIT README.md package.json dist",
1717
"clean": "rimraf dist/**",
1818
"prepare": "npm run build",
19-
"codegen": "ts-node ./scripts/build.ts",
19+
"codegen": "tsx ./scripts/build.ts",
2020
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
2121
"lint": "eslint . --fix",
2222
"format": "prettier --write --log-level warn \"./**/*.ts\"",
2323
"test": "jest",
2424
"test:watch": "jest --watch",
25-
"test:ast": "ts-node scripts/test-ast.ts",
26-
"dev": "ts-node src/ts-codegen",
27-
"file": "ts-node src/file"
25+
"test:ast": "tsx scripts/test-ast.ts",
26+
"dev": "tsx src/ts-codegen",
27+
"file": "tsx src/file"
2828
},
2929
"repository": {
3030
"type": "git",

packages/ts-codegen/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"copy": "copyfiles -f LICENSE-Apache LICENSE-MIT README.md package.json dist",
2121
"clean": "rimraf dist/**",
2222
"prepare": "npm run build",
23-
"cmds": "ts-node ./scripts/cmds.ts",
23+
"cmds": "tsx ./scripts/cmds.ts",
2424
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
2525
"lint": "eslint . --fix",
2626
"format": "prettier --write --log-level warn \"./**/*.ts\"",
2727
"test": "jest",
2828
"test:watch": "jest --watch",
29-
"dev": "ts-node src/ts-codegen",
30-
"file": "ts-node src/file"
29+
"dev": "tsx src/ts-codegen",
30+
"file": "tsx src/file"
3131
},
3232
"repository": {
3333
"type": "git",

0 commit comments

Comments
 (0)