diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2023-06-21 10:15:33 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2023-06-22 12:54:19 +0200 |
commit | 37c2e94cec6cb8b5e0e93e7b6c712c3b187ca5db (patch) | |
tree | c57c4e0eaf4d3e246244ff2a955dce3df4cbe489 /guix | |
parent | 7f3c6d3b3ba86a8051e394e4ec9a6f6089753cb1 (diff) |
guix: node-build-system: Delete from peerDependencies too.
The current version of npm in Guix installs peerDependencies by default,
whereas previously it would just warn about missing/wrong packages.
Fixes <https://issues.guix.gnu.org/issue/64203>.
* guix/build/node-build-system.scm (delete-dependencies): Remove supplied
dependencies from peerDependencies field too.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/build/node-build-system.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index 93f7efbb2b..fb23894bc1 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -208,7 +208,8 @@ only after the 'patch-dependencies' phase." (jsobject-update* pkg-meta `("devDependencies" ,delete-from-jsobject (@)) - `("dependencies" ,delete-from-jsobject (@)))))) + `("dependencies" ,delete-from-jsobject (@)) + `("peerDependencies" ,delete-from-jsobject (@)))))) (define* (delete-lockfiles #:key inputs #:allow-other-keys) "Delete 'package-lock.json', 'yarn.lock', and 'npm-shrinkwrap.json', if they |