Skip to content

Commit 80e35e8

Browse files
committed
pin @napi-rs/cli
Newer versions of `@napi-rs/cli` (I noticed it in 3.5.1) rely on `@inquirer/core` for the CLI. This version requires a modern Node version because it relies on `import { styleText } from 'node:util';` which is not supported on older Node versions (<20). The issue now is that we rely on a Docker image on ghcr (ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine) which ships with Node v18 which is too old and would crash when trying to build on CI. Once ghcr is updated with a newer embedded Node version, we can bump `@napi-rs/cli` again. But for now, it's pinned.
1 parent 60c6255 commit 80e35e8

File tree

2 files changed

+142
-156
lines changed

2 files changed

+142
-156
lines changed

crates/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"license": "MIT",
3535
"devDependencies": {
36-
"@napi-rs/cli": "^3.4.1",
36+
"@napi-rs/cli": "3.4.1",
3737
"@napi-rs/wasm-runtime": "^1.1.1",
3838
"emnapi": "1.7.1"
3939
},

0 commit comments

Comments
 (0)