Skip to content

Commit

Permalink
fix: npm bin has been deprecated, replaced with $(npm root)/.bin
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed May 12, 2023
1 parent 25b1bac commit 78a9faa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/build-platforms-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ cat << "EOF"
- .\scripts\choco-install.ps1
- refreshenv
- npm install --ignore-scripts
- $env:Path = "$(npm bin);" + $env:Path
- $env:Path = "$(npm root)\.bin;" + $env:Path
- npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL" --maxWorkers=50%
artifacts:
when: always
Expand Down Expand Up @@ -159,7 +159,7 @@ cat << "EOF"
- ./scripts/brew-install.sh
- hash -r
- npm install --ignore-scripts
- export PATH="$(npm bin):$PATH"
- export PATH="$(npm root)/.bin:$PATH"
- npm test -- --ci --coverage --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL" --maxWorkers=50%
artifacts:
when: always
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ in
mkdir --parents "$(pwd)/tmp"
# Built executables and NPM executables
export PATH="$(pwd)/dist/bin:$(npm bin):$PATH"
export PATH="$(pwd)/dist/bin:$(npm root)/.bin:$PATH"
npm install --ignore-scripts
Expand Down

0 comments on commit 78a9faa

Please sign in to comment.