File tree 4 files changed +10
-5
lines changed
4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ const ci = async () => {
68
68
scriptShell,
69
69
stdio : 'inherit' ,
70
70
stdioString : true ,
71
+ banner : log . level !== 'silent' ,
71
72
event,
72
73
} )
73
74
}
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ const install = async args => {
57
57
scriptShell,
58
58
stdio : 'inherit' ,
59
59
stdioString : true ,
60
+ banner : log . level !== 'silent' ,
60
61
event,
61
62
} )
62
63
}
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ const publish_ = async (arg, opts) => {
85
85
path : spec . fetchSpec ,
86
86
stdio : 'inherit' ,
87
87
pkg : manifest ,
88
+ banner : log . level !== 'silent' ,
88
89
} )
89
90
}
90
91
@@ -121,13 +122,15 @@ const publish_ = async (arg, opts) => {
121
122
path : spec . fetchSpec ,
122
123
stdio : 'inherit' ,
123
124
pkg : manifest ,
125
+ banner : log . level !== 'silent' ,
124
126
} )
125
127
126
128
await runScript ( {
127
129
event : 'postpublish' ,
128
130
path : spec . fetchSpec ,
129
131
stdio : 'inherit' ,
130
132
pkg : manifest ,
133
+ banner : log . level !== 'silent' ,
131
134
} )
132
135
}
133
136
Original file line number Diff line number Diff line change 1
- const run = require ( '@npmcli/run-script' )
2
- const { isServerPackage } = run
1
+ const runScript = require ( '@npmcli/run-script' )
2
+ const { isServerPackage } = runScript
3
3
const npm = require ( './npm.js' )
4
4
const readJson = require ( 'read-package-json-fast' )
5
5
const { resolve } = require ( 'path' )
@@ -27,11 +27,11 @@ const completion = async (opts, cb) => {
27
27
}
28
28
29
29
const cmd = ( args , cb ) => {
30
- const fn = args . length ? runScript : list
30
+ const fn = args . length ? doRun : list
31
31
return fn ( args ) . then ( ( ) => cb ( ) ) . catch ( cb )
32
32
}
33
33
34
- const runScript = async ( args ) => {
34
+ const doRun = async ( args ) => {
35
35
const path = npm . localPrefix
36
36
const event = args . shift ( )
37
37
const { scriptShell } = npm . flatOptions
@@ -76,7 +76,7 @@ const runScript = async (args) => {
76
76
}
77
77
78
78
for ( const [ event , args ] of events ) {
79
- await run ( {
79
+ await runScript ( {
80
80
...opts ,
81
81
event,
82
82
args,
You can’t perform that action at this time.
0 commit comments