Skip to content

Commit 422e016

Browse files
committed
feat(yarn): if zeroInstalls is enable, nodeLinker will not be set to node-modules
1 parent f578172 commit 422e016

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/actions/CreateYarn2ConfigsAction.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export class CreateYarn2ConfigsAction extends Action {
1313
await runCommand("yarn", ["set", "version", "berry"]);
1414

1515
// Set nodeLinker mode to "node-modules"
16-
await runCommand("yarn", ["config", "set", "nodeLinker", "node-modules"]);
16+
!this.userConfigs.zeroInstalls &&
17+
(await runCommand("yarn", ["config", "set", "nodeLinker", "node-modules"]));
1718

1819
// Add plugins
1920
this.userConfigs.typescript && (await runCommand("yarn", ["plugin", "import", "typescript"]));

0 commit comments

Comments
 (0)