Skip to content

Conversation

sommeeeer
Copy link
Contributor

@sommeeeer sommeeeer commented Nov 20, 2024

This PR will add pnpm catalog for deps that is reused through the repo. Making it easier to maintain. I will open this in draft mode so we can continue working on it. The alternative was using something like syncpack, but that would add another dep so I decided to go with pnpm catalogs instead.

Any suggestions on what more we could add? I have considered using catalog for the other shared deps in examples/*, like f.ex tailwindcss/typescript or postcss. Not sure if we want that, and also should we consider using a caret or tilde in any of the catalog versions?

Btw, I have tested building and deploying the examples apps with this PR, and it works as it should.

Copy link

changeset-bot bot commented Nov 20, 2024

⚠️ No Changeset found

Latest commit: d1f9d6f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@conico974
Copy link
Contributor

@sommeeeer Yeah we should add these 3 deps and bump typescript version as well.
And we don't want to use ^ or ~, we should always use exact where we can

@sommeeeer
Copy link
Contributor Author

Yeah we should add these 3 deps and bump typescript version as well.

i didnt add catalog to the open-next package, could however use it for @types/node and typescript. not sure what we want?

@sommeeeer sommeeeer force-pushed the pnpm-catalog branch 2 times, most recently from 19ce831 to dfa291d Compare November 20, 2024 15:48
Copy link

pkg-pr-new bot commented Nov 21, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/aws@637

commit: d1f9d6f

@sommeeeer sommeeeer marked this pull request as ready for review November 26, 2024 13:03
Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

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

LGTM Thanks

@conico974 conico974 merged commit 646616d into opennextjs:main Nov 26, 2024
3 checks passed
@sommeeeer sommeeeer deleted the pnpm-catalog branch November 26, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants