We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8417f1b commit afb3db4Copy full SHA for afb3db4
lib/run-script-pkg.js
@@ -44,6 +44,7 @@ const runScriptPkg = async options => {
44
return { code: 0, signal: null }
45
}
46
47
+ let inputEnd = () => {}
48
if (stdio === 'inherit') {
49
let banner
50
if (pkg._id) {
@@ -56,8 +57,9 @@ const runScriptPkg = async options => {
56
57
banner += ` ${args.join(' ')}`
58
59
banner += '\n'
- const { output } = require('proc-log')
60
+ const { output, input } = require('proc-log')
61
output.standard(banner)
62
+ inputEnd = input.start()
63
64
65
const [spawnShell, spawnArgs, spawnOpts] = makeSpawnArgs({
@@ -104,7 +106,7 @@ const runScriptPkg = async options => {
104
106
} else {
105
107
throw er
108
- })
109
+ }).finally(inputEnd)
110
111
112
module.exports = runScriptPkg
0 commit comments