From 9d3861b8904bc73e7290ad8412d6e667b9d0b35a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 7 Jun 2026 16:08:09 +0900 Subject: import: npm-binary: Simplify deletion of development dependencies. * guix/build/node-build-system.scm (delete-dev-dependencies): Include peerDependencies as well. * guix/import/npm-binary.scm (npm-package->package-sexp): Use it to delete all development dependencies, instead of listing them. * doc/guix.texi (Invoking guix import): Document this special treatment. Change-Id: I97b20aa59db67dc0297e0514e8ae083ac2088cb2 --- doc/guix.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index f1e5c78a0b6..d974a5cdf24 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -15715,6 +15715,8 @@ in Guix. @end table @item npm-binary +@cindex npm-binary, importer +@cindex importer for node packages @cindex npm @cindex Node.js Import metadata from the @uref{https://registry.npmjs.org, npm @@ -15737,6 +15739,15 @@ refer to transpiled or generated files, instead of being built from source. @end quotation +@quotation Note +Currently, the generated package definition contains a phase to delete +the development dependencies (@code{devDependencies}) from the +@file{package.json} file, if there are such dependencies, to reduce the +occurrences of circular dependencies. Also note that +@code{peerDependencies} are treated as development dependencies and +removed for the same reason. +@end quotation + Additional options include: @table @code -- cgit v1.2.3