Skip to content

Commit 4c09749

Browse files
committed
chore: replace ts-node with tsx
1 parent 9ba4d74 commit 4c09749

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
"bin"
3434
],
3535
"scripts": {
36-
"start": "node dist/bin/cli.mjs --debug",
36+
"start": "node --import tsx src/bin/cli.ts --debug",
3737
"debug": "npm run build && npx @modelcontextprotocol/inspector node dist/bin/cli.mjs --debug",
3838
"build": "tsc && tsup",
3939
"lint": "eslint . && npm run lint:lockfile",
4040
"lint:fix": "eslint . --fix",
4141
"lint:lockfile": "lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm yarn",
42-
"test": "c8 node --loader ts-node/esm --test __tests__/**",
43-
"test:watch": "c8 node --loader ts-node/esm --test --watch __tests__/**",
42+
"test": "c8 node --import tsx --test __tests__/**/*.test.ts",
43+
"test:watch": "c8 node --import tsx --test --watch __tests__/**/*.test.ts",
4444
"coverage:view": "open coverage/lcov-report/index.html",
4545
"version": "changeset version",
4646
"release": "changeset publish"
@@ -82,8 +82,8 @@
8282
"lint-staged": "^15.2.7",
8383
"lockfile-lint": "^4.14.0",
8484
"neostandard": "^0.11.0",
85-
"ts-node": "^10.9.2",
8685
"tsup": "^8.1.0",
86+
"tsx": "^4.19.4",
8787
"typescript": "^5.5.3",
8888
"validate-conventional-commit": "^1.0.4"
8989
},

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,5 @@
3030
"exclude": [
3131
"dist",
3232
"node_modules"
33-
],
34-
"ts-node": {
35-
"transpileOnly": true,
36-
}
33+
]
3734
}

0 commit comments

Comments
 (0)