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

Set moduleResolution to bundler in @guardian/tsconfig #1501

Merged
merged 3 commits into from
May 31, 2024
Merged

Conversation

sndrs
Copy link
Member

@sndrs sndrs commented May 30, 2024

What are you changing?

Setting moduleResolution to bundler in @guardian/tsconfig.

Why?

It enables support for exports in TypeScript while not requiring strict import names (using extensions) i.e. it mimics how bundlers approach imports from local and installed modules.

See https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#moduleresolution-bundler for more info.

@sndrs sndrs requested review from a team as code owners May 30, 2024 18:26
Copy link

changeset-bot bot commented May 30, 2024

🦋 Changeset detected

Latest commit: 928a156

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

Tip

Once this PR is ready to go, add the run_chromatic label to run the Chromatic tests.

This saves us a lot of money by not running the tests before we need them.

@github-actions github-actions bot added 📦 npm Affects a @guardian package on NPM @guardian/tsconfig labels May 30, 2024
@sndrs sndrs added the run_chromatic Runs chromatic when label is applied label May 30, 2024
@sndrs sndrs enabled auto-merge (squash) May 31, 2024 09:32
Copy link
Contributor

@oliverabrahams oliverabrahams left a comment

Choose a reason for hiding this comment

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

💯

@sndrs sndrs merged commit 9c40ba3 into main May 31, 2024
19 checks passed
@sndrs sndrs deleted the sndrs/bundler branch May 31, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@guardian/tsconfig 📦 npm Affects a @guardian package on NPM run_chromatic Runs chromatic when label is applied
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants