guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/16: gnu: node-pbf: Ignore development dependencies.


From: guix-commits
Subject: 07/16: gnu: node-pbf: Ignore development dependencies.
Date: Mon, 20 Feb 2023 11:03:05 -0500 (EST)

jlicht pushed a commit to branch node-18-updates
in repository guix.

commit 4083b2d4c28ab5039bfc0d00a80fa54e1e871b85
Author: Jelle Licht <jlicht@fsfe.org>
AuthorDate: Wed Feb 8 22:05:22 2023 +0100

    gnu: node-pbf: Ignore development dependencies.
    
    * gnu/packages/node-xyz.scm (node-pbf)[arguments]<phases>: Explicitly patch
    out development dependencies. Re-enable configure phase.
---
 gnu/packages/node-xyz.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index a03b9b4f1c..07c5982996 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -364,10 +364,19 @@ while being as light-weight and simple as possible.")
     (arguments
      '(#:tests? #f
        #:phases (modify-phases %standard-phases
-                  (replace 'configure
+                  (add-after 'patch-dependencies 'delete-dependencies
                     (lambda _
-                      (invoke "npm" "--offline" "--ignore-scripts" "install"
-                              "--production"))))))
+                      (delete-dependencies
+                       '("benchmark"
+                         "browserify"
+                         "eslint"
+                         "eslint-config-mourner"
+                         "mkdirp"
+                         "protobufjs"
+                         "protocol-buffers"
+                         "tap"
+                         "tile-stats-runner"
+                         "uglify-js")))))))
     (inputs (list node-ieee754 node-resolve-protobuf-schema))
     (home-page "https://github.com/mapbox/pbf";)
     (synopsis "Decode and encode protocol buffers in Javascript")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]