fix(core): Fix issue when no scripts are found in package.json (#15160)

This commit is contained in:
Nicholas Cunningham 2023-02-23 10:04:26 -07:00 committed by GitHub
parent 9efcf044c9
commit bde61d89dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`,
});