File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import writeFile from "./writeFile";
7
7
const CONFIG_FILE_NAME = "tosetup.config" as const ;
8
8
9
9
async function setup ( ) {
10
- output . log ( "tosetup begin...\n" ) ;
10
+ const start = Date . now ( ) ;
11
11
const argv = process . argv . slice ( 2 ) . filter ( Boolean ) ;
12
12
13
13
let { pathNames, commands } = argv . reduce < {
@@ -66,11 +66,10 @@ async function setup() {
66
66
output . error ( `write ${ path } failure.\n` ) ;
67
67
console . log ( error ) ;
68
68
}
69
- } else {
70
- output . error ( `File ${ path } transform failure.\n` ) ;
71
69
}
72
70
}
73
- output . log ( "\ntosetup end." ) ;
71
+
72
+ output . log ( `Done in ${ Math . floor ( Date . now ( ) - start ) } ms.` ) ;
74
73
}
75
74
76
75
setup ( ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export function transformSfc(path: string, option: CommandsOption) {
12
12
} = parse ( sfc ) ;
13
13
14
14
if ( scriptSetup || ! script ) {
15
+ output . log ( `skip ${ path } ` ) ;
15
16
return null ;
16
17
}
17
18
@@ -38,6 +39,7 @@ export function transformSfc(path: string, option: CommandsOption) {
38
39
39
40
return ms . toString ( ) ;
40
41
} else {
42
+ output . error ( `File ${ path } transform failure.\n` ) ;
41
43
return null ;
42
44
}
43
45
}
You can’t perform that action at this time.
0 commit comments