-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c09b56b
commit 56f61b2
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/lib/tarballs/build.js b/lib/tarballs/build.js | ||
index a7577a89c721bf4a52657f037fcc079e8fa9dca3..ebf5245840ac671064c8699f166102b2cc5d85c3 100644 | ||
--- a/lib/tarballs/build.js | ||
+++ b/lib/tarballs/build.js | ||
@@ -195,8 +195,10 @@ const addDependencies = async (c) => { | ||
else { | ||
const lockpath = (0, node_fs_1.existsSync)(path.join(c.root, 'package-lock.json')) | ||
? path.join(c.root, 'package-lock.json') | ||
- : path.join(c.root, 'npm-shrinkwrap.json'); | ||
- await (0, fs_extra_1.copy)(lockpath, path.join(c.workspace(), path.basename(lockpath))); | ||
+ : null; | ||
+ if (lockpath) { | ||
+ await (0, fs_extra_1.copy)(lockpath, path.join(c.workspace(), path.basename(lockpath))); | ||
+ } | ||
await exec('npm install --production', { cwd: c.workspace() }); | ||
} | ||
}; |