File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,10 @@ export async function isVersionUpToDate(
29
29
return true ;
30
30
}
31
31
console . log (
32
- `${ yellow (
33
- 'Your version:' ,
34
- red ( `${ packageName } @${ packageVersion } ` ) ,
35
- `is not up to date`
36
- ) } `
32
+ `${ yellow ( 'Your version:' , red ( `${ packageName } @${ packageVersion } ` ) , `is not up to date` ) } `
37
33
) ;
38
- console . log (
39
- `${ yellow ( 'Latest version:' , red ( `${ packageName } @${ latestVersion } ...` ) ) } `
40
- ) ;
41
- return false ;
34
+ console . log ( `${ yellow ( 'Latest version:' , red ( `${ packageName } @${ latestVersion } ...` ) ) } ` ) ;
35
+ return true ;
42
36
}
43
37
44
38
export async function ensureVersionIsUpToDate (
@@ -53,9 +47,7 @@ export async function ensureVersionIsUpToDate(
53
47
[
54
48
`\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\n` ,
55
49
`${ red ( `ERROR:` ) } Did not run command.\n\n` ,
56
- ` - Rerun your command with the ${ yellow (
57
- '@latest'
58
- ) } tag to ensure correct output:\n\n\n`,
50
+ ` - Rerun your command with the ${ yellow ( '@latest' ) } tag to ensure correct output:\n\n\n` ,
59
51
`\t${ yellow ( `npx ${ packageName } @latest` ) } \n` ,
60
52
`\n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n` ,
61
53
] . join ( ' ' )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
1
3
import { cli } from './lib/cli' ;
2
4
3
5
cli ( ) ;
You can’t perform that action at this time.
0 commit comments