Skip to content

Commit

Permalink
use tsx to execute files
Browse files Browse the repository at this point in the history
tsx handles ESM better than ts-node. (Or at least this I can make work)
  • Loading branch information
tmclaugh committed Nov 3, 2024
1 parent 31b9a47 commit aa3e2e1
Show file tree
Hide file tree
Showing 3 changed files with 285 additions and 140 deletions.
8 changes: 4 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"request": "launch",
"name": "Launch Program - index.ts",
"runtimeArgs": [
"-r",
"ts-node/register"
"--import",
"tsx"
],
"args": [
"${workspaceFolder}/src/index.ts"
Expand All @@ -21,8 +21,8 @@
"request": "launch",
"name": "Launch Program - fetchDocsToc.ts",
"runtimeArgs": [
"-r",
"ts-node/register"
"--import",
"tsx"
],
"args": [
"${workspaceFolder}/src/fetchDocsToc.ts"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"jest-fetch-mock": "^3.0.3",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"tsx": "^4.19.2",
"typescript": "^5.6.2"
},
"dependencies": {
Expand Down
Loading

0 comments on commit aa3e2e1

Please sign in to comment.