@@ -10,7 +10,7 @@ import {
10
10
spinner ,
11
11
} from "@clack/prompts" ;
12
12
import color from "picocolors" ;
13
- import { TERMINAL_INFO } from ' @ionic/utils-terminal' ;
13
+ import { TERMINAL_INFO } from " @ionic/utils-terminal" ;
14
14
import { Project } from "ts-morph" ;
15
15
import { existsSync } from "node:fs" ;
16
16
@@ -21,8 +21,7 @@ const IONIC_MIGRATION_GUIDE_URL =
21
21
"https://www.ionicframework.com/docs/angular/build-options#migrating-from-modules-to-standalone" ;
22
22
const IONIC_REPOSITORY_ISSUES_URL =
23
23
"https://github.com/ionic-team/ionic-angular-standalone-codemods/issues" ;
24
- const isInteractive = ( ) : boolean =>
25
- TERMINAL_INFO . tty && ! TERMINAL_INFO . ci ;
24
+ const isInteractive = ( ) : boolean => TERMINAL_INFO . tty && ! TERMINAL_INFO . ci ;
26
25
27
26
async function main ( ) {
28
27
console . clear ( ) ;
@@ -43,23 +42,26 @@ async function main() {
43
42
) ;
44
43
log . warning ( "--------------------------------------------------" ) ;
45
44
46
- const cli = isInteractive ( ) ? await group ( {
47
- dryRun : ( ) =>
48
- confirm ( {
49
- message :
50
- "Would you like to run this migration as a dry run? No changes will be written to your project." ,
51
- initialValue : true ,
52
- } ) ,
53
- dir : ( ) =>
54
- text ( {
55
- message :
56
- "Please enter the path to your project (default is the current working directory):" ,
57
- initialValue : cwd ( ) ,
58
- } ) ,
59
- } ) : {
60
- // If we are in a non-interactive terminal then use defaults
61
- dryRun : false , dir : cwd ( )
62
- } ;
45
+ const cli = isInteractive ( )
46
+ ? await group ( {
47
+ dryRun : ( ) =>
48
+ confirm ( {
49
+ message :
50
+ "Would you like to run this migration as a dry run? No changes will be written to your project." ,
51
+ initialValue : true ,
52
+ } ) ,
53
+ dir : ( ) =>
54
+ text ( {
55
+ message :
56
+ "Please enter the path to your project (default is the current working directory):" ,
57
+ initialValue : cwd ( ) ,
58
+ } ) ,
59
+ } )
60
+ : {
61
+ // If we are in a non-interactive terminal then use defaults
62
+ dryRun : false ,
63
+ dir : cwd ( ) ,
64
+ } ;
63
65
64
66
if ( typeof cli . dryRun !== "boolean" ) {
65
67
// User aborted the prompt
0 commit comments