Skip to content

Commit 89cbcfd

Browse files
committed
fix dedupe
1 parent 1910bb6 commit 89cbcfd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tasks.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,14 @@
105105
{
106106
"description": "Detect duplicate versions of packages in your dependency tree.",
107107
"expectedCommand": "npm find-dupes",
108+
"outputIncludes": "up to date",
108109
"explanation": "Reports multiple versions of packages and suggests deduplication. Note: Modern npm (v7+) auto-dedupes during install, so this may show no duplicates."
109110
},
110111
{
111112
"description": "Deduplicate your dependency tree to flatten duplicate packages.",
112113
"expectedCommand": "npm dedupe",
113-
"strictCommandMatch": true,
114+
"checkCommand": "npm ls statuses | grep -q 'statuses@2.0.2'",
115+
"windowsCheckCommand": "npm ls statuses | findstr /C:\"statuses@2.0.2\"",
114116
"explanation": "Attempts to flatten the dependency tree by hoisting shared packages like 'statuses'."
115117
},
116118
{
@@ -761,4 +763,4 @@
761763
"expectedCommand": "npm ll",
762764
"explanation": "Lists all installed packages with extended information. This is an alias for 'npm ls --long' and shows additional details like package descriptions and homepage URLs."
763765
}
764-
]
766+
]

0 commit comments

Comments
 (0)