Skip to content

Commit bdfbf67

Browse files
committed
fix: only prompt for workspace root when it looks like it might be a monorepo
1 parent 76b6c35 commit bdfbf67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function initOpts () {
127127
return allInput.cwd;
128128
},
129129
when: (promptInput, defaultWhen, allInput) => {
130-
if (defaultWhen && allInput.workspaceRoot !== allInput.cwd) {
130+
if (defaultWhen && allInput.workspaceRoot !== allInput.cwd && allInput.workspaces) {
131131
return true;
132132
}
133133
return false;

0 commit comments

Comments
 (0)