diff options
| author | Lily Foster <lily@lily.flowers> | 2023-12-06 10:43:20 -0500 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-12-24 21:59:14 +0000 |
| commit | 6355d4586e04413efc817f7ee9fb29e7ae1cda49 (patch) | |
| tree | 207301cfb9cdd515c51f55f34654ee855e200272 | |
| parent | Merge pull request #276357 from NixOS/backport-273319-to-release-23.11 (diff) | |
| download | nixpkgs-origin/backport-272495-to-release-23.11.tar.gz | |
npmHooks.npmInstallHook: ignore rather than error for missing bin/man keys in package.jsonorigin/backport-272495-to-release-23.11
(cherry picked from commit 816a33f5f0ab68341e8d20a6c88931556c44d316)
| -rw-r--r-- | pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh b/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh index a2f77bdc6d43..637a46d0788a 100644 --- a/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh +++ b/pkgs/build-support/node/build-npm-package/hooks/npm-install-hook.sh @@ -32,12 +32,14 @@ npmInstallHook() { done < <(@jq@ --raw-output '(.bin | type) as $typ | if $typ == "string" then .name + " " + .bin elif $typ == "object" then .bin | to_entries | map(.key + " " + .value) | join("\n") + elif $typ == "null" then empty else "invalid type " + $typ | halt_error end' "${npmWorkspace-.}/package.json") while IFS= read -r man; do installManPage "$packageOut/$man" done < <(@jq@ --raw-output '(.man | type) as $typ | if $typ == "string" then .man elif $typ == "list" then .man | join("\n") + elif $typ == "null" then empty else "invalid type " + $typ | halt_error end' "${npmWorkspace-.}/package.json") local -r nodeModulesPath="$packageOut/node_modules" |
