Skip to content

Commit

Permalink
chore: make arborist run at the right cwd (#1071)
Browse files Browse the repository at this point in the history
<!-- For Coveo Employees only. Fill this section.

CDX-764

-->

## Proposed changes


f218b3f

Before, oclif was changing the cwd of the process, making arborist work
without setting path. Now that it doesn't, we need to specify the path
option, like they did for other stuff.
  • Loading branch information
louis-bompart authored Dec 14, 2022
1 parent dfffa20 commit cbcd2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/oclif+3.4.1.patch → patches/oclif+3.4.2.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/oclif/lib/tarballs/build.js b/node_modules/oclif/lib/tarballs/build.js
index 6dc6c06..14dc008 100644
index 6dc6c06..c17846e 100644
--- a/node_modules/oclif/lib/tarballs/build.js
+++ b/node_modules/oclif/lib/tarballs/build.js
@@ -11,6 +11,7 @@ const upload_util_1 = require("../upload-util");
Expand Down Expand Up @@ -30,7 +30,7 @@ index 6dc6c06..14dc008 100644
+ path.join(workspaceRoot, 'package-lock.json') :
+ path.join(workspaceRoot, 'npm-shrinkwrap.json');
await fs.copy(lockpath, path.join(c.workspace(), path.basename(lockpath)));
+ const arb = new Arborist();
+ const arb = new Arborist({path: c.workspace()});
+ await arb.loadVirtual();
+ await arb.buildIdealTree({
+ update: {
Expand Down

0 comments on commit cbcd2ae

Please sign in to comment.