Skip to content

Commit 6f2857c

Browse files
authored
Merge pull request #19 from dtarnawsky/non-interactive-option
feat: add non-interactive option
2 parents 4d645cb + 3999e57 commit 6f2857c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const IONIC_MIGRATION_GUIDE_URL =
2121
"https://www.ionicframework.com/docs/angular/build-options#migrating-from-modules-to-standalone";
2222
const IONIC_REPOSITORY_ISSUES_URL =
2323
"https://github.com/ionic-team/ionic-angular-standalone-codemods/issues";
24-
const isInteractive = (): boolean => TERMINAL_INFO.tty && !TERMINAL_INFO.ci;
24+
const isInteractive = (): boolean => (TERMINAL_INFO.tty && !TERMINAL_INFO.ci) && (!process.argv.includes('--non-interactive'));
2525

2626
async function main() {
2727
console.clear();

0 commit comments

Comments
 (0)