Skip to content

Commit

Permalink
Replace ts-node by tsx as it works better with esm, refactor sources …
Browse files Browse the repository at this point in the history
…to use .js extension required by esm build
  • Loading branch information
sebastien-de-saint-florent committed Sep 22, 2023
1 parent 31ddfcb commit 4ab6b44
Show file tree
Hide file tree
Showing 14 changed files with 718 additions and 381 deletions.
18 changes: 4 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,16 @@
"version": "0.2.0",
"configurations": [
{
"args": [
"--require",
"ts-node/register",
"--require",
"source-map-support/register",
"--recursive",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/src/test/**/*.spec.ts"
],
"args": ["--recursive", "--timeout", "999999", "--colors", "${workspaceFolder}/src/test/**/*.spec.ts"],
"env": {
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
"NODE_OPTIONS": "--loader tsx --no-warnings"
},
"internalConsoleOptions": "openOnSessionStart",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"program": "${workspaceFolder}/node_modules/mocha/bin/mocha.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
"type": "node"
}
]
}
Loading

0 comments on commit 4ab6b44

Please sign in to comment.