Skip to content

Commit

Permalink
chore(!): Upgrade Node to LTS for --import support
Browse files Browse the repository at this point in the history
So that we can use tsx with official --import rather than requiring (old-style) which doesn't work with string-sameness esm for some reason

mochajs/mocha#5002
mochajs/mocha-examples#76
  • Loading branch information
FoxxMD committed Feb 15, 2024
1 parent 8057982 commit beaf0f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .mocharc.json
@@ -1,4 +1,5 @@
{
"reporter": "dot",
"require": ["tsx"]
"extension": "ts",
"import": "tsx/esm"
}
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
v18.16.0
v18.19.1
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
"typedoc": "typedoc",
"circular": "madge --circular --extensions ts src/index.ts",
"test": "npm run -s test:backend",
"test:backend": "mocha --extension ts --reporter spec --recursive src/backend/tests/**/*.test.ts",
"test:backend": "mocha --reporter spec --recursive src/backend/tests/**/*.test.ts",
"fileEndings": "jscodeshift --transformFrom js --transformTo none --importTypes relative --extensions=ts --parser tsx --transform codeshift/transform.ts src/backend",
"dev": "APP_VERSION=$npm_package_version nodemon -w src/backend -x tsx src/backend/index.ts",
"start": "APP_VERSION=$npm_package_version NODE_ENV=production tsx src/backend/index.ts",
Expand Down

0 comments on commit beaf0f3

Please sign in to comment.