mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-29 01:58:11 -05:00
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:
5
.changeset/perfect-rats-attack.md
Normal file
5
.changeset/perfect-rats-attack.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/default-reporter": patch
|
||||
---
|
||||
|
||||
Revert warning about type of dependency.
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user