Skip to content

Commit 56f61b2

Browse files
Patch oclif (#1844)
1 parent c09b56b commit 56f61b2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

patches/[email protected]

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/lib/tarballs/build.js b/lib/tarballs/build.js
2+
index a7577a89c721bf4a52657f037fcc079e8fa9dca3..ebf5245840ac671064c8699f166102b2cc5d85c3 100644
3+
--- a/lib/tarballs/build.js
4+
+++ b/lib/tarballs/build.js
5+
@@ -195,8 +195,10 @@ const addDependencies = async (c) => {
6+
else {
7+
const lockpath = (0, node_fs_1.existsSync)(path.join(c.root, 'package-lock.json'))
8+
? path.join(c.root, 'package-lock.json')
9+
- : path.join(c.root, 'npm-shrinkwrap.json');
10+
- await (0, fs_extra_1.copy)(lockpath, path.join(c.workspace(), path.basename(lockpath)));
11+
+ : null;
12+
+ if (lockpath) {
13+
+ await (0, fs_extra_1.copy)(lockpath, path.join(c.workspace(), path.basename(lockpath)));
14+
+ }
15+
await exec('npm install --production', { cwd: c.workspace() });
16+
}
17+
};

0 commit comments

Comments
 (0)