Skip to content

Commit ee9bf6e

Browse files
committed
feat(libnpmpack)!: remove silent option
BREAKING CHANGE: libnpmpack no longer takes a `silent` option to suppress output from `@npmcli/run-script`. That output is now emitted via an `output` event on `process`.
1 parent 60faa90 commit ee9bf6e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

workspaces/libnpmpack/lib/index.js

-6
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ async function pack (spec = 'file:.', opts = {}) {
1515

1616
const manifest = await pacote.manifest(spec, opts)
1717

18-
// Default to true if no log options passed, set to false if we're in silent
19-
// mode
20-
const banner = !opts.silent
21-
2218
const stdio = opts.foregroundScripts ? 'inherit' : 'pipe'
2319

2420
if (spec.type === 'directory' && !opts.ignoreScripts) {
@@ -29,7 +25,6 @@ async function pack (spec = 'file:.', opts = {}) {
2925
path: spec.fetchSpec,
3026
stdio,
3127
pkg: manifest,
32-
banner,
3328
})
3429
}
3530

@@ -56,7 +51,6 @@ async function pack (spec = 'file:.', opts = {}) {
5651
path: spec.fetchSpec,
5752
stdio,
5853
pkg: manifest,
59-
banner,
6054
env: {
6155
npm_package_from: tarball.from,
6256
npm_package_resolved: tarball.resolved,

0 commit comments

Comments
 (0)