revert: "fix: pnpm add a-module-already-in-dev-deps should show message that it wasn't moved to dependencies (#7319)"

This reverts commit 45bdc79b17.
This commit is contained in:
Zoltan Kochan
2023-11-27 15:24:59 +01:00
parent 6846e4c756
commit 633c0d6f8f
2 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/default-reporter": patch
---
Revert warning about type of dependency.

View File

@@ -71,11 +71,6 @@ export function reportSummary (
msg += EOL
msg += _printDiffs(diffs)
msg += EOL
if (depType === 'dev' && opts.pnpmConfig?.saveDev === false) {
msg += EOL
msg += `The dependency was already listed in devDependencies.${EOL}If you want to make it a prod dependency, then move it manually.`
msg += EOL
}
} else if (opts.pnpmConfig?.[CONFIG_BY_DEP_TYPE[depType]] === false) {
msg += EOL
msg += `${chalk.cyanBright(`${propertyByDependencyType[depType] as string}:`)} skipped`