You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tasks.json
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -105,12 +105,14 @@
105
105
{
106
106
"description": "Detect duplicate versions of packages in your dependency tree.",
107
107
"expectedCommand": "npm find-dupes",
108
+
"outputIncludes": "up to date",
108
109
"explanation": "Reports multiple versions of packages and suggests deduplication. Note: Modern npm (v7+) auto-dedupes during install, so this may show no duplicates."
109
110
},
110
111
{
111
112
"description": "Deduplicate your dependency tree to flatten duplicate packages.",
112
113
"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\"",
114
116
"explanation": "Attempts to flatten the dependency tree by hoisting shared packages like 'statuses'."
115
117
},
116
118
{
@@ -761,4 +763,4 @@
761
763
"expectedCommand": "npm ll",
762
764
"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."
0 commit comments