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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typescript to 3.9 and enable skipLibCheck #2981

Merged
merged 1 commit into from May 13, 2020
Merged

Update typescript to 3.9 and enable skipLibCheck #2981

merged 1 commit into from May 13, 2020

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented May 13, 2020

WHY are these changes introduced?

Keeping up to date. tyepscript 3.9 is hot off the presses. Speeding up builds

WHAT is this pull request doing?

TS 3.9 offers a few speed improvements. Nothing huuuuuge, but it shaves 3
seconds of our build and type-check commands.

Enabling skipLibCheck (as set by our parent TS configs) meanwhile saves
an additional 10 seconds as we don't bother checking TS declaration files
that we don't use. Recently TS's init scripts were updated so now this
is set to true in newly creacted configs so I'm now more confident in
following suit.

On master: type-check took ~38s, build took ~52s
This commit: type-check took ~24.5s, build took ~37s

TypeScript 3.9 Release blog: https://devblogs.microsoft.com/typescript/announcing-typescript-3-9/
PR where TypeScript changed the value of skipLibCheck in new projects to be true: microsoft/TypeScript#37808
More info on what skipLibCheck does: https://swatinem.de/blog/js-tooling/#explaining-skiplibcheck

How to 馃帺

Check build tests and type-check pass. Do a quick tophat in a consuming app.

@BPScott BPScott requested a review from kaelig May 13, 2020 04:02
@github-actions
Copy link
Contributor

github-actions bot commented May 13, 2020

馃煝 No significant changes to src/**/*.tsx were detected.

Copy link
Contributor

@kaelig kaelig left a comment

Choose a reason for hiding this comment

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

:shipit:

UNRELEASED.md Outdated
### Dependency upgrades

- Update TypeScript to 3.9.2 ([#2981](https://github.com/Shopify/polaris-react/pull/2981))
Copy link
Contributor

Choose a reason for hiding this comment

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

Use past tense in change log entries

TS 3.9 offers a few speed improvements. Nothing huuuuuge, but it shaves 3
seconds of our build and type-check commands.

Enabling skipLibCheck (as set by our parent TS configs) meanwhile saves
an additional 10 seconds as we don't bother checking TS declaration files
that we don't use. Recently TS's init scripts were updated so now this
is set to true in newly creacted configs so I'm now more confident in
following suit.

On Master: type-check took ~38s, build took ~52s
This commit: type-check took ~24.5s, build took ~37s
@BPScott BPScott merged commit 921c6ea into master May 13, 2020
@BPScott BPScott deleted the ts-bump branch May 13, 2020 16:50
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.

None yet

2 participants