Skip to content

Commit d31d0b3

Browse files
authored
fix: only prompt for workspace root when it looks like it might be a monorepo (#247)
1 parent 76b6c35 commit d31d0b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ async function readPackageJson (options, { log } = {}) {
314314
for (const wsDir of maybeWorkspaces.values()) {
315315
pkg.workspaces.push(path.relative(opts.cwd, wsDir));
316316
}
317+
} else {
318+
options.overrides({
319+
workspaceRoot: rootDir
320+
});
317321
}
318322
} else {
319323
// We are in a workspace context, don't ask about

0 commit comments

Comments
 (0)