Subject: [bug#51838] [PATCH v6 09/41] gnu: node-debug-bootstrap: Use 'delete-dependencies'.

From: Philip McGrath <[email-masked]>
Date: Thu, 30 Dec 2021 02:38:47 -0500

gnu/packages/node.scm (node-debug-bootstrap)[arguments]: Use
'delete-dependencies'. Stop deleting the 'configure' phase.
---
 gnu/packages/node.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 32f7c8f980..6e37097f5e 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -447,7 +447,22 @@ (define-public node-debug-bootstrap
        #:tests? #f
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure))))
+         (add-after 'patch-dependencies 'delete-dependencies
+           (lambda args
+             (with-atomic-json-file-replacement "package.json"
+               (lambda (pkg-meta)
+                 (delete-dependencies pkg-meta
+                                      `("brfs"
+                                        "browserify"
+                                        "coveralls"
+                                        "istanbul"
+                                        "karma"
+                                        "karma-browserify"
+                                        "karma-chrome-launcher"
+                                        "karma-mocha"
+                                        "mocha"
+                                        "mocha-lcov-reporter"
+                                        "xo")))))))))
     (inputs (list node-ms-bootstrap))
     (home-page "https://github.com/visionmedia/debug#readme")
     (properties '((hidden? . #t)))
-- 
2.32.0