Revert "feat(install): added --prod to skip dev deps and @types (#32863)#33212
Merged
bartlomieju merged 1 commit intomainfrom Apr 8, 2026
Merged
Revert "feat(install): added --prod to skip dev deps and @types (#32863)#33212bartlomieju merged 1 commit intomainfrom
bartlomieju merged 1 commit intomainfrom
Conversation
|
may i ask why we do this? and any alternatives? |
steve02081504
added a commit
to steve02081504/fount
that referenced
this pull request
Apr 11, 2026
This reverts commit 1094d91. see denoland/deno#33212 for more info. results docker image size 60mb -> 110mb
bartlomieju
added a commit
that referenced
this pull request
Apr 29, 2026
Reland of #32863, which was reverted in #33212 to be relanded for Deno v2.8. --- - Added the `--prod` flag to `deno install` that skips `devDependencies` from `package.json`. - Added the `--skip-types` flag to `deno install`, only available with `--prod`. It makes `@types/*` packages skipped as well from both `package.json` and `deno.json` imports. It may be unsafe to use, as only `name.starts_with` is used to skip `@types/` packages, but such packages not guaranteed to have only types actually. - When combined with `--entrypoint`, the module graph is built as "code only" (excludes type-only dependencies). - Conflicts with `--global` and `--dev` flags. Closes #26121 Closes #33181 Co-authored-by: Daniil Sivak <seroperson@gmail.com>
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.
This reverts commit 593bb1c.
This commit will be relanded in Deno v2.8.