Skip to content

Commit fd749a1

Browse files
committed
ci: use .npmrc to specify npm_config_prefix and npm_config_jobs
1 parent 6d37873 commit fd749a1

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ build:windows:
149149
- choco install python --version=3.9.12 -y
150150
- refreshenv
151151
script:
152-
- npm config set msvs_version 2019
152+
- npm config set msvs_version 2019 --location project
153153
- npm install --ignore-scripts
154154
- $env:Path = "$(npm bin);" + $env:Path
155155
- npm run build --verbose

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Enables npm link
2+
prefix=~/.npm
3+
# Use all cores during node-gyp compilation
4+
jobs=max

shell.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,9 @@ mkShell {
2222
# Built executables and NPM executables
2323
export PATH="$(pwd)/dist/bin:$(npm bin):$PATH"
2424
25-
# Enables npm link
26-
export npm_config_prefix=~/.npm
27-
2825
# Path to headers used by node-gyp for native addons
2926
export npm_config_nodedir="${nodejs}"
3027
31-
# Use all cores during node-gyp compilation
32-
export npm_config_jobs=max
33-
3428
# Verbose logging of the Nix compiler wrappers
3529
export NIX_DEBUG=1
3630

0 commit comments

Comments
 (0)