diff options
Diffstat (limited to 'guix/build/node-build-system.scm')
-rw-r--r-- | guix/build/node-build-system.scm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index c153a2fcc9..21004a8ff4 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -264,16 +264,12 @@ only after the 'patch-dependencies' phase." (or (assoc-ref pkg-meta "dependencies") '()))))))))) #t) -(define* (delete-lockfiles #:key inputs #:allow-other-keys) - "Delete 'package-lock.json', 'yarn.lock', and 'npm-shrinkwrap.json', if they -exist." +(define* (delete-lockfiles #:key lockfiles #:allow-other-keys) + "Delete LOCKFILES if they exist." (for-each (lambda (pth) (when (file-exists? pth) (delete-file pth))) - '("package-lock.json" - "yarn.lock" - "npm-shrinkwrap.json")) - #t) + lockfiles)) (define* (configure #:key outputs inputs #:allow-other-keys) (let ((npm (string-append (assoc-ref inputs "node") "/bin/npm"))) |