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

fix(pacmak): jsii-pacmak uses incompatible version of jsii-rosetta #4487

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Apr 23, 2024

Fixes #4098

Previously jsii-pacmak depended on jsii-rosetta 1.x. This is problematic if a different version of the jsii compiler was used, because it introduced different versions of TypeScript into the project.

With this PR, the dependency is changed to a peer dependency. Thus allowing any compatible version jsii-rosetta to be used.

BREAKING CHANGE: jsii-pacmak now has a peer dependency on jsii-rosetta. Please ensure a version of jsii-rosetta matching your version of jsii is available. Most package managers install peer dependencies automatically and no change is required. However users of yarn v1 or npm v3 to v6 must install jsii-rosetta manually.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Apr 23, 2024
@mrgrain mrgrain force-pushed the mrgrain/feat/pacmak-can-use-any-rosetta branch from 2cd182e to fb25ceb Compare April 25, 2024 11:25
@mrgrain mrgrain changed the title feat(pacmak): allow use of any compatible jsii-rosetta version fix(pacmak): jsii-pacmak uses incorrect version of jsii-rosetta Apr 25, 2024
@mrgrain mrgrain changed the title fix(pacmak): jsii-pacmak uses incorrect version of jsii-rosetta fix(pacmak): jsii-pacmak uses incompatible version of jsii-rosetta Apr 25, 2024
Comment on lines 426 to 428
strategy:
matrix:
rosetta: ['1.x', '5.2.x', '5.3.x', '5.4.x']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately the workflow file is not codegen'd, so we will have to update this manually.

@mrgrain mrgrain force-pushed the mrgrain/feat/pacmak-can-use-any-rosetta branch from 8a6d9e1 to 18237a1 Compare April 25, 2024 17:59
@mrgrain mrgrain marked this pull request as ready for review April 25, 2024 19:11
Copy link
Contributor

mergify bot commented Apr 26, 2024

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Apr 26, 2024
Copy link
Contributor

mergify bot commented Apr 26, 2024

Merging (with squash)...

@mergify mergify bot merged commit cdb47e4 into main Apr 26, 2024
40 checks passed
@mergify mergify bot deleted the mrgrain/feat/pacmak-can-use-any-rosetta branch April 26, 2024 08:32
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

latest jsii-rosetta package is not used.
2 participants