Skip to content
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

Build: remove unneeded dependencies & upgrades #20533

Merged
merged 17 commits into from
Jan 10, 2023
Merged

Conversation

ndelangen
Copy link
Member

What I did

  • hopefully improve CI perf by removing dependencies we do not need/use

@ndelangen ndelangen changed the base branch from next to tech/remove-prepare-babel January 7, 2023 14:09
@ndelangen ndelangen self-assigned this Jan 7, 2023
@ndelangen ndelangen added the build Internal-facing build tooling & test updates label Jan 7, 2023
@ndelangen ndelangen changed the title Build: remove unneeded dependencies Build: remove unneeded dependencies & upgrades Jan 7, 2023
@ndelangen ndelangen requested a review from shilman January 7, 2023 17:01
Base automatically changed from tech/remove-prepare-babel to next January 8, 2023 11:17
@@ -279,44 +237,28 @@
"jest-os-detection": "^1.3.1",
"jest-serializer-html": "^7.1.0",
"jest-watch-typeahead": "^2.2.1",
"lerna": "^3.22.1",
"lerna": "^6.4.0",
Copy link
Member Author

@ndelangen ndelangen Jan 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shilman ☝️ is this OK?

@ndelangen ndelangen added the ci:merged Run the CI jobs that normally run when merged. label Jan 8, 2023
Copy link
Member

@IanVS IanVS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I love me some good dependency cleanups.

I have been meaning to ask, when do we need to add dependencies to the top-level package.json, and when do we not? It seems like much of the cleanup you're doing is removing packages there. I thought yarn monorepos should handle hoisting up packages to the top level automatically, so I would guess that only dev tools that need to run at the top level need to be included, but it seems like there's much more. Is that so that yarn task can work properly, or something?

@ndelangen
Copy link
Member Author

@IanVS regarding where dependencies should be located.

I'd like to have all devDependencies that are unique in the packages' devDependencies.
When they are shared, they should likely be moved to the scripts directory to get uniformity.

I'd like to optimize a bit for future splitting the monorepo apart more.

I think code/package.json should have 0 dependencies, except for maybe internal ones, that's a long term goal.

Very open to discussing if that's a good goal and on how to achieve it if it indeed is.!

@ndelangen
Copy link
Member Author

@shilman I'm going to hold off merging this, until you've given an 👌 sign, about the lerna upgrade.

@shilman shilman merged commit 751d137 into next Jan 10, 2023
@shilman shilman deleted the norbert/cleanup-babel branch January 10, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates ci:merged Run the CI jobs that normally run when merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants