Previously in pre-npm 7 --silent
would only silence output from npm, meaning that run
would still output the output from whatever is being run.
Now, it silences everything, meaning we can't use --silent
to silence the npm ERR!
messages that follow whenever a command fails.
> npm run typecheck --silent
> npm run typecheck --silent
src/audit.ts:137:13 - error TS2345: Argument of type 'AuditMetadata | NpmAuditMetadataV2' is not assignable to parameter of type 'AuditMetadata'.
Type 'NpmAuditMetadataV2' is missing the following properties from type 'AuditMetadata': devDependencies, optionalDependencies, totalDependencies
137 auditOutput.metadata
~~~~~~~~~~~~~~~~~~~~
Found 1 error.
Did you perhaps swap current/expected behavior here?
@ljharb whoops yeah good catch 馃槄
Very on-brand for this issue, folks 馃槅
Should be fixed as of 7.0.3
Most helpful comment
Very on-brand for this issue, folks 馃槅