guix_mirror_bot pushed a commit to branch javascript-team
in repository guix.

commit cab45a23015482f8bcaa4466fb893c47819e5408
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Mar 18 09:21:30 2026 +0100

    gnu: packages: Replace replace-fields by replace-json-fields.
    
    * gnu/packages/node-xyz.scm: Replace all uses of replace-fields by
    replace-json-fields.
    
    Change-Id: I109f82432f65c2e681e0c988e008ac848ad30f4c
    Signed-off-by: Jelle Licht <[email protected]>
---
 gnu/packages/node-xyz.scm | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index aa28311249..8ef1c11116 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -145,8 +145,9 @@ architecture supporting plugins.")
                              "semver"))
                ;; We can't run the js-based tests,
                ;; but we can still do the C++ parts
-               (replace-fields (list (cons
-                 "scripts.test" "echo stopping after pretest on Guix")))))))))
+               (replace-json-fields
+                (list (cons "scripts.test"
+                            "echo stopping after pretest on Guix")))))))))
     (home-page "https://github.com/nodejs/node-addon-api";)
     (synopsis "Node.js API (Node-API) header-only C++ wrappers")
     (description "This module contains header-only C++ wrapper classes which
@@ -3569,7 +3570,7 @@ it to make a new binding for a different platform or 
underling technology.")))
            (lambda args
              (modify-json "package.json"
                (delete-json-fields '(("scripts" "install")))
-               (replace-fields '(("gypfile" . #f)))))))
+               (replace-json-fields '(("gypfile" . #f)))))))
        #:tests? #f))
     (synopsis "Abstract base class for Node SerialPort bindings")
     (description "Node SerialPort is a modular suite of Node.js packages for
@@ -3793,7 +3794,8 @@ connection.")))
         (add-before 'patch-dependencies 'modify-package (lambda _
           (modify-json
             (delete-dev-dependencies)
-            (replace-fields (list (cons "scripts.test" "node 
test/run-tests.js"))))))
+            (replace-json-fields
+             (list (cons "scripts.test" "node test/run-tests.js"))))))
         (replace 'build (lambda _
           (for-each
             (match-lambda ((name parameters)
@@ -4147,7 +4149,7 @@ sequences.")
           (modify-json
             (delete-dev-dependencies)
             (delete-json-fields (list "type"))
-            (replace-fields (list (cons "version" #$version))))))
+            (replace-json-fields (list (cons "version" #$version))))))
         (replace 'build (lambda _
           (define problem-file "strnum.js")
           (substitute* problem-file (("^export default ") ""))
@@ -4290,10 +4292,10 @@ tablets.
           (add-after 'unpack 'setup
             (lambda _
               (chdir (string-append "types/" #$type))
-              (modify-json
+              (modify-json "package.json"
                (delete-dev-dependencies)
-               (replace-fields (list
-                                (cons "version" #$version)))))))))
+               (replace-json-fields
+                (list (cons "version" #$version)))))))))
     (synopsis (string-append "TypeScript definitions for " type))
     (description (string-append "Typescript definition files (*.d.ts) for '"
                                 type "'."))
@@ -4569,7 +4571,7 @@ function with browser support.")
           (add-after 'patch-dependencies 'delete-dev-dependencies
             (lambda _
               (modify-json (delete-dev-dependencies)
-                           (replace-fields
+                           (replace-json-fields
                             '(("scripts.install:l10n-dev" . "true")))))))))
     (home-page "https://github.com/Microsoft/vscode-l10n";)
     (synopsis "Helper library to assist in localizing VS Code subprocesses")

Reply via email to