bitwarden-desktop: enforce using correct Node version

Otherwise nothing tells us we are using different than upstream. This
also checks anything else in the `package.json`’s `engines` spec, e.g.
npm version, which we might not care about but it’s compatible now so
it’s fine.

See https://docs.npmjs.com/cli/v10/using-npm/config#engine-strict
This commit is contained in:
Andrew Marshall 2024-06-12 22:27:53 -04:00
parent e7521ac9e2
commit d62d943042

View File

@ -58,7 +58,7 @@ in buildNpmPackage rec {
nodejs = nodejs_18;
makeCacheWritable = true;
npmFlags = [ "--legacy-peer-deps" ];
npmFlags = [ "--engine-strict" "--legacy-peer-deps" ];
npmWorkspace = "apps/desktop";
npmDepsHash = "sha256-gprJGOE/uSSM3NHpcbelB7sueObEl4o522WRHIRFmwo=";