Skip to content

Commit

Permalink
fix(core): Fix issue when no scripts are found in package.json (#15160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed Feb 23, 2023
1 parent 9efcf04 commit bde61d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/add-nx-to-monorepo/src/add-nx-to-monorepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function addNxToMonorepo() {
let scriptOutputs = {} as { [script: string]: string };
let useCloud: boolean;

if (parsedArgs.yes !== true) {
if (parsedArgs.yes !== true && scripts.length > 0) {
output.log({
title: `🧑‍🔧 Please answer the following questions about the scripts found in your workspace in order to generate task runner configuration`,
});
Expand Down

0 comments on commit bde61d8

Please sign in to comment.