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(sdks): only patch typescript entry point for >= 5.5 #6263

Merged
merged 3 commits into from
May 2, 2024

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented May 1, 2024

What's the problem this PR addresses?

The SDK changes in #6248 broke support for older TypeScript versions.
I tested it on 5.4.1-rc (master) and it was fine but it crashes on 5.2.0-beta (

"typescript": "5.2.0-beta"
)

How did you fix it?

Check the TypeScript version and only apply the patch if needed.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

arcanis
arcanis previously approved these changes May 1, 2024
packages/yarnpkg-sdks/sources/sdks/base.ts Outdated Show resolved Hide resolved
@merceyz merceyz force-pushed the merceyz/fix/sdk-older-ts-version branch from 3992449 to c0c3329 Compare May 1, 2024 22:42
@arcanis arcanis merged commit f994c2b into master May 2, 2024
20 of 24 checks passed
@arcanis arcanis deleted the merceyz/fix/sdk-older-ts-version branch May 2, 2024 09:01
merceyz added a commit that referenced this pull request May 2, 2024
**What's the problem this PR addresses?**

The SDK changes in #6248 broke
support for older TypeScript versions.
I tested it on `5.4.1-rc` (master) and it was fine but it crashes on
5.2.0-beta
(https://github.com/yarnpkg/berry/blob/4308dca8091438e8f88682e59ef5ba5bc72241ca/package.json#L26)

**How did you fix it?**

Check the TypeScript version and only apply the patch if needed.

**Checklist**
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
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