fix: print warnings about deprecated subdependencies (#4231)

close #4227
This commit is contained in:
Zoltan Kochan
2022-01-13 17:29:38 +02:00
committed by GitHub
parent fcf91a64d2
commit a1ffef5cac
2 changed files with 6 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/default-reporter": patch
---
Print warnings about deprecated subdependencies [#4227](https://github.com/pnpm/pnpm/issues/4227).

View File

@@ -1,6 +1,6 @@
import { DeprecationLog } from '@pnpm/core-loggers'
import * as Rx from 'rxjs'
import { filter, map } from 'rxjs/operators'
import { map } from 'rxjs/operators'
import chalk from 'chalk'
import formatWarn from './utils/formatWarn'
import { zoomOut } from './utils/zooming'
@@ -13,8 +13,6 @@ export default (
}
) => {
return deprecation$.pipe(
// print warnings only about deprecated packages from the root
filter((log) => log.depth === 0),
map((log) => {
if (!opts.isRecursive && log.prefix === opts.cwd) {
return Rx.of({