docs: add a guide for switching your package manager to Deno#3242
Open
bartlomieju wants to merge 1 commit into
Open
docs: add a guide for switching your package manager to Deno#3242bartlomieju wants to merge 1 commit into
bartlomieju wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.