fix(core): Fix issue when no scripts are found in package.json (#15160)
This commit is contained in:
parent
9efcf044c9
commit
bde61d89dc
@ -49,7 +49,7 @@ async function addNxToMonorepo() {
|
|||||||
let scriptOutputs = {} as { [script: string]: string };
|
let scriptOutputs = {} as { [script: string]: string };
|
||||||
let useCloud: boolean;
|
let useCloud: boolean;
|
||||||
|
|
||||||
if (parsedArgs.yes !== true) {
|
if (parsedArgs.yes !== true && scripts.length > 0) {
|
||||||
output.log({
|
output.log({
|
||||||
title: `🧑🔧 Please answer the following questions about the scripts found in your workspace in order to generate task runner configuration`,
|
title: `🧑🔧 Please answer the following questions about the scripts found in your workspace in order to generate task runner configuration`,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user