diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-07 16:08:09 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-24 14:29:03 +0900 |
| commit | 9d3861b8904bc73e7290ad8412d6e667b9d0b35a (patch) | |
| tree | 806c2e2d99f9aa61dcaca4781aed64490aee5747 /doc/guix.texi | |
| parent | ba6b6b6d0dcff940952a09315f0baf62d621aa8f (diff) | |
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
Diffstat (limited to 'doc/guix.texi')
| -rw-r--r-- | doc/guix.texi | 11 |
1 files changed, 11 insertions, 0 deletions
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. | |||
| 15715 | @end table | 15715 | @end table |
| 15716 | 15716 | ||
| 15717 | @item npm-binary | 15717 | @item npm-binary |
| 15718 | @cindex npm-binary, importer | ||
| 15719 | @cindex importer for node packages | ||
| 15718 | @cindex npm | 15720 | @cindex npm |
| 15719 | @cindex Node.js | 15721 | @cindex Node.js |
| 15720 | Import metadata from the @uref{https://registry.npmjs.org, npm | 15722 | 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 | |||
| 15737 | source. | 15739 | source. |
| 15738 | @end quotation | 15740 | @end quotation |
| 15739 | 15741 | ||
| 15742 | @quotation Note | ||
| 15743 | Currently, the generated package definition contains a phase to delete | ||
| 15744 | the development dependencies (@code{devDependencies}) from the | ||
| 15745 | @file{package.json} file, if there are such dependencies, to reduce the | ||
| 15746 | occurrences of circular dependencies. Also note that | ||
| 15747 | @code{peerDependencies} are treated as development dependencies and | ||
| 15748 | removed for the same reason. | ||
| 15749 | @end quotation | ||
| 15750 | |||
| 15740 | Additional options include: | 15751 | Additional options include: |
| 15741 | 15752 | ||
| 15742 | @table @code | 15753 | @table @code |
