Skip to content

Commit 00d926f

Browse files
G-Rathruyadorno
authored andcommitted
fix: don't suppress run output when --silent is passed
PR-URL: #1987 Credit: @G-Rath Close: #1987 Reviewed-by: @ruyadorno
1 parent c9993e6 commit 00d926f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/run-script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const runScript = async (args) => {
6969
path,
7070
args,
7171
scriptShell,
72-
stdio: log.level === 'silent' ? 'pipe' : 'inherit',
72+
stdio: 'inherit',
7373
stdioString: true,
7474
pkg
7575
}

test/lib/run-script.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ t.test('run silent', async t => {
284284
t.match(RUN_SCRIPTS, [
285285
{
286286
event: 'preenv',
287-
stdio: 'pipe'
287+
stdio: 'inherit'
288288
},
289289
{
290290
path: npm.localPrefix,
291291
args: [],
292292
scriptShell: undefined,
293-
stdio: 'pipe',
293+
stdio: 'inherit',
294294
stdioString: true,
295295
pkg: { name: 'x', version: '1.2.3', _id: '[email protected]', scripts: {
296296
env: 'env'
@@ -299,7 +299,7 @@ t.test('run silent', async t => {
299299
},
300300
{
301301
event: 'postenv',
302-
stdio: 'pipe'
302+
stdio: 'inherit'
303303
}
304304
])
305305
})

0 commit comments

Comments
 (0)