guix_mirror_bot pushed a commit to branch javascript-team in repository guix.
commit 9d68290c6dd85b813f99f3f4fc0cf136f5273c8c Author: Nicolas Graves <[email protected]> AuthorDate: Wed Mar 18 08:30:55 2026 +0100 guix: node: Migrate to the new modify-json. * guix/build/node-build-system.scm (patch-dependencies): Migrate to the new modify-json. * guix/import/npm-binary.scm (npm-package->package-sexp): Likewise. Change-Id: I19cadcfc212c7a0efd352acf1d17938078206366 Signed-off-by: Jelle Licht <[email protected]> --- guix/build/node-build-system.scm | 2 +- guix/import/npm-binary.scm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index 42dfa9918d9..be715cc97b3 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -154,7 +154,7 @@ dependencies." (assoc-set! pkg-meta key (resolve-dependencies (getter pkg-meta))))) - (modify-json + (modify-json "package.json" (resolve "devDependencies" (lambda (pkg-meta) (or (assoc-ref pkg-meta "devDependencies") '()))) diff --git a/guix/import/npm-binary.scm b/guix/import/npm-binary.scm index 333adaab552..17775ed2269 100644 --- a/guix/import/npm-binary.scm +++ b/guix/import/npm-binary.scm @@ -347,7 +347,8 @@ associated Git repository, if available." ((dev-names ...) `((add-after 'patch-dependencies 'delete-dev-dependencies (lambda _ - (modify-json (delete-dev-dependencies)))))))))) + (modify-json "package.json" + (delete-dev-dependencies)))))))))) (values `(package (name ,name)
