Skip to content

Commit 7c9c56c

Browse files
committed
chore(examples): Replace ts-node with tsx
1 parent a07304b commit 7c9c56c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/scripts-ts/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"type": "module",
66
"scripts": {
77
"build": "tsc",
8-
"script": "ts-node --cwd=src",
9-
"dev": "pnpm run script index"
8+
"script": "f() { tsx ./src/$1; }; f \"$@\"",
9+
"dev": "pnpm run script index",
10+
"type-check": "tsc --pretty --noEmit"
1011
},
1112
"dependencies": {
1213
"@polkadot/api": "^10.11.1",
@@ -21,7 +22,7 @@
2122
"eslint": "^8.54.0",
2223
"eslint-config-prettier": "^9.0.0",
2324
"prettier": "^3.1.0",
24-
"ts-node": "^10.9.1",
25+
"tsx": "^4.5.0",
2526
"typescript": "^5.3.2"
2627
}
2728
}

0 commit comments

Comments
 (0)