Skip to content

docs(pm): clarify dependency section flags for vp remove - #3527

Merged
fengmk2 merged 8 commits into
voidzero-dev:mainfrom
SaKaNa-Y:docs/npm-dependency-edit-scope
Nov 22, 2026
Merged

fengmk2 merged 8 commits into
voidzero-dev:mainfrom
SaKaNa-Y:docs/npm-dependency-edit-scope

Conversation

@SaKaNa-Y

@SaKaNa-Y SaKaNa-Y commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The vp remove reference describes -D as removing a package from devDependencies. A maintainer cleaning up development dependencies in an npm project can also delete a production dependency with that flag.

The options table now lists the section each flag targets on pnpm. The compatibility table shows which entries npm removes with -D, -O, and -P.

Evidence

  • Tested each flag with a local package named vite on npm 7.14.0 and 11.19.0. On both versions, vp remove -D vite and vp remove -O vite each removed a production-only entry. vp remove -P vite removed a development-only entry.
  • On pnpm 12.3.4, vp remove -D vite kept the production-only entry.
  • Built the VitePress site and checked the three option descriptions, the support values, and the npm notes in the compatibility table.

Merge Danger

Door: Two-way. A documentation edit can revert this change.

Blast Radius: Documentation. The change affects one command reference.

Keep workspace selection guidance for a separate change. Use explicit member paths from the workspace root to show how npm removes a dependency declared in different sections.
@SaKaNa-Y SaKaNa-Y changed the title docs(pm): clarify the scope of npm dependency edits docs(pm): clarify dependency section flags for vp remove Nov 22, 2026
@SaKaNa-Y
SaKaNa-Y marked this pull request as ready for review November 22, 2026 07:40
@fengmk2
fengmk2 merged commit ba30c12 into voidzero-dev:main Nov 22, 2026
42 checks passed
@SaKaNa-Y
SaKaNa-Y deleted the docs/npm-dependency-edit-scope branch November 22, 2026 12:24
@fengmk2 fengmk2 mentioned this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants