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.
This commit is contained in:
Lars-Dominik Braun 2023-06-21 10:15:33 +02:00
parent 7f3c6d3b3b
commit 37c2e94cec
No known key found for this signature in database
GPG key ID: F663943E08D8092A

View file

@ -208,7 +208,8 @@ (define delete-from-jsobject
(jsobject-update* (jsobject-update*
pkg-meta pkg-meta
`("devDependencies" ,delete-from-jsobject (@)) `("devDependencies" ,delete-from-jsobject (@))
`("dependencies" ,delete-from-jsobject (@)))))) `("dependencies" ,delete-from-jsobject (@))
`("peerDependencies" ,delete-from-jsobject (@))))))
(define* (delete-lockfiles #:key inputs #:allow-other-keys) (define* (delete-lockfiles #:key inputs #:allow-other-keys)
"Delete 'package-lock.json', 'yarn.lock', and 'npm-shrinkwrap.json', if they "Delete 'package-lock.json', 'yarn.lock', and 'npm-shrinkwrap.json', if they