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(dev-deps): consolidate all common dev deps in workspaces #605

Merged
merged 3 commits into from
Mar 3, 2022

Conversation

dreamorosi
Copy link
Contributor

@dreamorosi dreamorosi commented Feb 28, 2022

Description of your changes

In continuing the effort to reduce redundant code in the repo, and after the consolidation of local & CI environments around [email protected] and subsequent full adoption of workspaces; this PR pulls-up all the shared dev dependencies from the package-specific package.json files to the one in the root.

With the previous PRs the dependencies were being already installed in the main node_modules directory so this change only affects their placement. This will also help in the long term to keep more consistent versioning across shared devDependencies and also reduce Dependabot's diff sizes.

How to verify this change

See successful checks under this PR and the e2e successful execution for this branch.

Related issues, RFCs

#484

PR status

Is this ready for review?: YES
Is it a breaking change?: NO

Checklist

Breaking change checklist

N/A


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dreamorosi dreamorosi self-assigned this Feb 28, 2022
@dreamorosi dreamorosi changed the title deps: consolidate all common dev deps in workspaces build(dev-reps): consolidate all common dev deps in workspaces Feb 28, 2022
@dreamorosi dreamorosi changed the title build(dev-reps): consolidate all common dev deps in workspaces build(dev-deps): consolidate all common dev deps in workspaces Feb 28, 2022
@dreamorosi dreamorosi added this to the production-ready-release milestone Feb 28, 2022
@dreamorosi dreamorosi marked this pull request as ready for review February 28, 2022 17:04
@dreamorosi dreamorosi requested review from flochaz, ijemmy and saragerion and removed request for flochaz and ijemmy February 28, 2022 17:04
@dreamorosi dreamorosi added dependencies Changes that touch dependencies, e.g. Dependabot, etc. internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) labels Feb 28, 2022
flochaz
flochaz previously approved these changes Mar 1, 2022
@@ -59,4 +44,4 @@
"dependencies": {
"@types/aws-lambda": "^8.10.72"
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be moved as a dev-dependency too right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to check this one, I assumed it had to stay but maybe it can be removed. I'll test and get back to you

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I've tested this and you were right, I removed it from this file and added it to the main package.json as devDependency in the last commit.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's great to hear, and it means the library's prod bundle decreased :)

@dreamorosi dreamorosi requested review from saragerion and flochaz March 3, 2022 06:21
"@types/aws-lambda": "^8.10.72"
}
}
"dependencies": {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@saragerion saragerion left a comment

Choose a reason for hiding this comment

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

Looks good! Nicely done 🥳

Copy link
Contributor

@ijemmy ijemmy left a comment

Choose a reason for hiding this comment

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

LGTM

@dreamorosi dreamorosi merged commit cc0445c into main Mar 3, 2022
@dreamorosi dreamorosi deleted the build/consolidate_dev_deps branch March 3, 2022 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes that touch dependencies, e.g. Dependabot, etc. internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants