-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintenance: Move @types/node
to devDeps
consistently
#30163
Conversation
View your CI Pipeline Execution ↗ for commit 2183c2d.
☁️ Nx Cloud last updated this comment at |
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
Before | After | Difference | |
---|---|---|---|
Dependency count | 53 | 53 | 0 |
Self size | 21.45 MB | 19.08 MB | 🎉 -2.37 MB 🎉 |
Dependency size | 14.43 MB | 14.43 MB | 0 B |
Bundle Size Analyzer | Link | Link |
storybook
Before | After | Difference | |
---|---|---|---|
Dependency count | 54 | 54 | 0 |
Self size | 22 KB | 22 KB | 0 B |
Dependency size | 35.88 MB | 33.51 MB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
sb
Before | After | Difference | |
---|---|---|---|
Dependency count | 55 | 55 | 0 |
Self size | 1 KB | 1 KB | 0 B |
Dependency size | 35.90 MB | 33.53 MB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/cli
Before | After | Difference | |
---|---|---|---|
Dependency count | 396 | 396 | 0 |
Self size | 496 KB | 496 KB | 0 B |
Dependency size | 77.79 MB | 75.42 MB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/codemod
Before | After | Difference | |
---|---|---|---|
Dependency count | 276 | 276 | 0 |
Self size | 612 KB | 612 KB | 0 B |
Dependency size | 67.69 MB | 65.32 MB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/core-webpack
Before | After | Difference | |
---|---|---|---|
Dependency count | 3 | 1 | 🎉 -2 🎉 |
Self size | 16 KB | 16 KB | 0 B |
Dependency size | 2.40 MB | 28 KB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
create-storybook
Before | After | Difference | |
---|---|---|---|
Dependency count | 112 | 112 | 0 |
Self size | 1.11 MB | 1.11 MB | 0 B |
Dependency size | 45.01 MB | 42.64 MB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/preset-preact-webpack
Before | After | Difference | |
---|---|---|---|
Dependency count | 4 | 2 | 🎉 -2 🎉 |
Self size | 5 KB | 5 KB | 0 B |
Dependency size | 2.41 MB | 44 KB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/preset-server-webpack
Before | After | Difference | |
---|---|---|---|
Dependency count | 20 | 18 | 🎉 -2 🎉 |
Self size | 10 KB | 10 KB | 0 B |
Dependency size | 3.85 MB | 1.48 MB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/preset-svelte-webpack
Before | After | Difference | |
---|---|---|---|
Dependency count | 103 | 101 | 🎉 -2 🎉 |
Self size | 14 KB | 14 KB | 0 B |
Dependency size | 12.77 MB | 10.40 MB | 🎉 -2.37 MB 🎉 |
Bundle Size Analyzer | Link | Link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
18 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
Closes #28835 (comment)
What I did
@types/node
intodevDependencies
section, so we do not expose this to users.AFAICT users shouldn't be required to install this.
For many packages
@types/node
was already a devDependency, so this change is also making this consistent.Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
Considering this PR touches the angular-framework's
package.json
, I tested this locally:yarn install
yields some missing peerDeps, but@types/node
isn't listed.Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli-storybook/src/sandbox-templates.ts
Make sure this PR contains one of the labels below:
Available labels
bug
: Internal changes that fixes incorrect behavior.maintenance
: User-facing maintenance tasks.dependencies
: Upgrading (sometimes downgrading) dependencies.build
: Internal-facing build tooling & test updates. Will not show up in release changelog.cleanup
: Minor cleanup style change. Will not show up in release changelog.documentation
: Documentation only changes. Will not show up in release changelog.feature request
: Introducing a new feature.BREAKING CHANGE
: Changes that break compatibility in some way with current major version.other
: Changes that don't fit in the above categories.🦋 Canary release
This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the
@storybookjs/core
team here.core team members can create a canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>
Greptile Summary
Moves @types/node from dependencies to devDependencies across multiple Storybook packages to ensure consistent dependency management and prevent exposing type definitions to end users.
@types/node
todevDependencies
in 17+ package.json files for better dependency hygiene@types/node
version to ^22.0.0 in experimental-nextjs-vite package@types/node
topeerDependencies
in renderers/react package, contradicting PR goaljiti
from devDependencies to dependencies in scripts/package.json for proper script execution