stable

Clone or download

Read-only

Use node 15 and our own derivation of npm in the dev/build environment

Now that npm@latest targets the 7.x branch which we cannot use yet, we cannot use the derivation provided by nixpkgs. This contribution also solves the warnings `The node binary used for scripts is <...> but npm is using <...> itself.` that are currently thrown in our environment when calling a npm script. The sub-dependency deasync is updated to avoid the need of building the binary locally. Test pipelines have been updated to use the same node version than one the used in the dev environment. Part of request #20073: Update the dev/build environment [mid-March 21] Change-Id: I33ffa762a58ca215f0ecbb9c9f441b4ee1b8527f

Modified Files

Name
M package-lock.json +3 −3 Go to diff View file
M tests/Jenkinsfile +10 −7 Go to diff View file
M tests/Jenkinsfile-nightly +4 −3 Go to diff View file
M tools/utils/nix/build-tools/build-tools-js.nix +15 −4 Go to diff View file
M tools/utils/nix/build-tools/default.nix +1 −1 Go to diff View file
A tools/utils/nix/build-tools/npm/README.md +10 −0 Go to diff View file
A tools/utils/nix/build-tools/npm/default.nix +17 −0 Go to diff View file
A tools/utils/nix/build-tools/npm/generate-env.nix +5 −0 Go to diff View file
A tools/utils/nix/build-tools/npm/generate.sh +4 −0 Go to diff View file
A tools/utils/nix/build-tools/npm/node-env.nix +567 −0 Go to diff View file
A tools/utils/nix/build-tools/npm/node-packages.json +1 −0 Go to diff View file
A tools/utils/nix/build-tools/npm/node-packages.nix +27 −0 Go to diff View file