mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
pnpmConfigHook: allow opt-out
This is sometimes useful when mixing ecosystems, e.g. in buildGoModule.
(cherry picked from commit 8f26ec5602)
This commit is contained in:
parent
5d1a3cf828
commit
18b44fd7d2
2 changed files with 5 additions and 1 deletions
|
|
@ -406,6 +406,8 @@ In case you are patching `package.json` or `pnpm-lock.yaml`, make sure to pass `
|
|||
}
|
||||
```
|
||||
|
||||
If needed, `dontPnpmConfigure = true;` can be used to fully disable `pnpmConfigHook` without manually removing it from inputs.
|
||||
|
||||
#### Dealing with `sourceRoot` {#javascript-pnpm-sourceRoot}
|
||||
|
||||
If the pnpm project is in a subdirectory, you can just define `sourceRoot` or `setSourceRoot` for `fetchPnpmDeps`.
|
||||
|
|
|
|||
|
|
@ -126,4 +126,6 @@ pnpmConfigHook() {
|
|||
echo "Finished pnpmConfigHook"
|
||||
}
|
||||
|
||||
postConfigureHooks+=(pnpmConfigHook)
|
||||
if [ -z "${dontPnpmConfigure-}" ]; then
|
||||
postConfigureHooks+=(pnpmConfigHook)
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue