-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adds missing dependencies #40165
Adds missing dependencies #40165
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
|
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.
This looks good 👍 Thanks!
Should we also add @automattic/calypso-build
to some of those? It looks like we're using its tsconfig and jest config preset in some of the packages?
I believe these would both be considered dev dependencies so should be coming from the root. We don't need them to be bundled with the package. Aside: I'd like to remove the tsconfig from calypso-build. I think it was premature to add it there, we should just have a tsconfig for the monorepo. |
I thought that would be the case. 👍 In that case, I think we're good to go here. |
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.
👍 I don't like the calypso-polyfills
dependency, but that doesn't prevent merging 🚢
Changes proposed in this Pull Request
package.json
, and removes unused deps.for file in $(find packages -type d -depth 1 | sort); do (cd $file; echo $file; dependency-check --no-peer --no-dev --missing package.json dist/**/*.js; echo) ; done
Before:
After:
Testing instructions
Validate that all* dependencies are satisfied now (
for file in $(find packages -type d -depth 1 | sort); do (cd $file; echo $file; dependency-check --no-peer --no-dev --missing package.json dist/**/*.js; echo) ; done
)Validate that no new dependencies are actually introduced (there are no new packages in
package-lock.json
), just re-linking existing packages.