Subject: [PATCH v6 11/41] gnu: node-llparse-frontend-bootstrap: Use 'delete-dependencies'.

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

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

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 0563d9c290..b132ce730b 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -579,7 +579,17 @@ (define-public node-llparse-frontend-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 `("@types/debug"
+                                                 "@types/mocha"
+                                                 "@types/node"
+                                                 "mocha"
+                                                 "ts-node"
+                                                 "tslint"
+                                                 "typescript"))))))
          (replace 'build
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((esbuild (search-input-file inputs "/bin/esbuild")))
-- 
2.32.0