mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #254420 from lilyinstarlight/fix/npm-pack-pls-😭
npmHooks.npmInstallHook: avoid script output in npm pack command
This commit is contained in:
commit
582f1e7321
@ -14,7 +14,7 @@ npmInstallHook() {
|
|||||||
local dest="$packageOut/$(dirname "$file")"
|
local dest="$packageOut/$(dirname "$file")"
|
||||||
mkdir -p "$dest"
|
mkdir -p "$dest"
|
||||||
cp "${npmWorkspace-.}/$file" "$dest"
|
cp "${npmWorkspace-.}/$file" "$dest"
|
||||||
done < <(@jq@ --raw-output '.[0].files | map(.path) | join("\n")' <<< "$(npm pack --json --dry-run ${npmWorkspace+--workspace=$npmWorkspace} $npmPackFlags "${npmPackFlagsArray[@]}" $npmFlags "${npmFlagsArray[@]}")")
|
done < <(@jq@ --raw-output '.[0].files | map(.path) | join("\n")' <<< "$(npm pack --json --dry-run --loglevel=warn --no-foreground-scripts ${npmWorkspace+--workspace=$npmWorkspace} $npmPackFlags "${npmPackFlagsArray[@]}" $npmFlags "${npmFlagsArray[@]}")")
|
||||||
|
|
||||||
# Based on code from Python's buildPythonPackage wrap.sh script, for
|
# Based on code from Python's buildPythonPackage wrap.sh script, for
|
||||||
# supporting both the case when makeWrapperArgs is an array and a
|
# supporting both the case when makeWrapperArgs is an array and a
|
||||||
|
Loading…
Reference in New Issue
Block a user