File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import readPackageUp from 'read-pkg-up';
5
5
import updateNotifier from 'update-notifier' ;
6
6
import { exit } from './exit' ;
7
7
import { getEnv } from './getEnv' ;
8
- import { error , info } from './log' ;
8
+ import { error , info , running } from './log' ;
9
9
import { updateDeps } from './updateDeps' ;
10
10
11
11
( async ( ) => {
@@ -22,6 +22,8 @@ import { updateDeps } from './updateDeps';
22
22
const { _ : args } = parseArgs ( process . argv . slice ( 2 ) ) ;
23
23
24
24
if ( args . length ) {
25
+ running ( [ packageManager , ...process . argv . slice ( 2 ) ] . join ( ' ' ) ) ;
26
+
25
27
const { childProcess : runScripts } = await nvexeca (
26
28
'local' ,
27
29
packageManager ,
@@ -32,6 +34,8 @@ import { updateDeps } from './updateDeps';
32
34
} ,
33
35
) ;
34
36
37
+ if ( packageManager !== 'npm' ) console . log ( ) ;
38
+
35
39
const { exitCode, stdout, stderr } = await runScripts ;
36
40
37
41
if ( exitCode > 0 ) {
Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ export const error = (message: string) => console.log(chalk.red(message));
4
4
export const success = ( message : string ) =>
5
5
console . log ( `${ chalk . green ( '✓' ) } ${ chalk . dim ( message ) } ` ) ;
6
6
export const info = ( message : string ) => console . log ( chalk . dim ( message ) ) ;
7
+ export const running = ( message : string ) =>
8
+ console . log ( chalk . bgGreen . black ( `\n > ${ message } ` ) ) ;
You can’t perform that action at this time.
0 commit comments