Skip to content

docs: add a guide for switching your package manager to Deno#3242

Open
bartlomieju wants to merge 1 commit into
mainfrom
docs/switch-package-manager
Open

docs: add a guide for switching your package manager to Deno#3242
bartlomieju wants to merge 1 commit into
mainfrom
docs/switch-package-manager

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

The migrate section's smallest adoption step had no page: using Deno purely
as the package manager for a project you keep running with Node. This adds
/runtime/migrate/switch_package_manager/ with a four-column mapping table
(npm, yarn, pnpm, Deno) covering install/add/remove/update/outdated/run/
audit/why/dlx/ci. Every Deno command was verified against --help and the
yarn/pnpm names against their official docs (modern Yarn's missing outdated
command is noted rather than papered over).

The behavioral claims come from experiments, not assumptions: deno install
against an npm-generated project leaves package-lock.json byte-identical,
creates deno.lock and an isolated-layout node_modules, and does not honor
package-lock version pins within a range (tested with a pinned transitive
version); deno add -D writes devDependencies in package.json projects. The
page also covers what's different (lifecycle scripts off by default, audit
--fix, minimum dependency age) and what to watch (node_modules layout
modes). Not yet linked from the migrate hub; that wiring lands with the
sidebar regroup alongside the Bun guide's.

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.

1 participant