fix(core): fix setting of the interactive env var (#15084)

Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
This commit is contained in:
Colum Ferry 2023-02-17 17:31:48 +00:00 committed by GitHub
parent 3a98c6d3ab
commit 2a76e20d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -735,8 +735,8 @@ function withGenerateOptions(yargs: yargs.Argv) {
default: false,
})
.middleware((args) => {
if (process.env.NX_INTERACTIVE !== 'false') {
args.interactive = true;
if (process.env.NX_INTERACTIVE === 'false') {
args.interactive = false;
} else {
process.env.NX_INTERACTIVE = `${args.interactive}`;
}