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.
This commit is contained in:
Robin Malfait 2026-01-06 15:18:05 +01:00
parent 60c6255fb8
commit 80e35e8f38
No known key found for this signature in database
2 changed files with 141 additions and 155 deletions

View file

@ -33,7 +33,7 @@
},
"license": "MIT",
"devDependencies": {
"@napi-rs/cli": "^3.4.1",
"@napi-rs/cli": "3.4.1",
"@napi-rs/wasm-runtime": "^1.1.1",
"emnapi": "1.7.1"
},