Skip to content

Commit

Permalink
Update node version (#2172)
Browse files Browse the repository at this point in the history
This bumps the node version to 18.19.0, which slightly breaks ts-node.

In order to make the using-dev-build example work again with ts-node, we port the
node loader options we use in the main II `package.json`.

Co-authored-by: gix-bot <[email protected]>
  • Loading branch information
nmattia and gix-bot authored Jan 5, 2024
1 parent 6e90dbf commit c3f2429
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18.2
18.19.0
5 changes: 3 additions & 2 deletions demos/using-dev-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"private": true,
"type": "module",
"scripts": {
"opts": "NODE_OPTIONS='--loader ts-node/esm --experimental-specifier-resolution=node' \"$@\"",
"wdio": "wdio run ./wdio.conf.ts",
"test": "ts-node --esm ./test.ts",
"test": "npm run opts -- ./test.ts",
"format": "prettier --write --plugin-search-dir=. .",
"build": "tsc --noEmit && vite build",
"dev": "vite",
"proxy": "ts-node --esm ./test.ts --no-run"
"proxy": "npm run opts -- ./test.ts --no-run"
},
"devDependencies": {
"@wdio/cli": "^8.22.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"zod": "^3.22.3"
},
"engines": {
"npm": ">=9.0.0 <10.0.0",
"npm": ">=10.0.0 <11.0.0",
"node": ">=18.0.0 <19.0.0"
}
}

0 comments on commit c3f2429

Please sign in to comment.