mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-19 06:07:59 -04:00
fix: print warnings about deprecated subdependencies (#4231)
close #4227
This commit is contained in:
5
.changeset/eleven-sheep-wash.md
Normal file
5
.changeset/eleven-sheep-wash.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@pnpm/default-reporter": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Print warnings about deprecated subdependencies [#4227](https://github.com/pnpm/pnpm/issues/4227).
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { DeprecationLog } from '@pnpm/core-loggers'
|
import { DeprecationLog } from '@pnpm/core-loggers'
|
||||||
import * as Rx from 'rxjs'
|
import * as Rx from 'rxjs'
|
||||||
import { filter, map } from 'rxjs/operators'
|
import { map } from 'rxjs/operators'
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import formatWarn from './utils/formatWarn'
|
import formatWarn from './utils/formatWarn'
|
||||||
import { zoomOut } from './utils/zooming'
|
import { zoomOut } from './utils/zooming'
|
||||||
@@ -13,8 +13,6 @@ export default (
|
|||||||
}
|
}
|
||||||
) => {
|
) => {
|
||||||
return deprecation$.pipe(
|
return deprecation$.pipe(
|
||||||
// print warnings only about deprecated packages from the root
|
|
||||||
filter((log) => log.depth === 0),
|
|
||||||
map((log) => {
|
map((log) => {
|
||||||
if (!opts.isRecursive && log.prefix === opts.cwd) {
|
if (!opts.isRecursive && log.prefix === opts.cwd) {
|
||||||
return Rx.of({
|
return Rx.of({
|
||||||
|
|||||||
Reference in New Issue
Block a user