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

Build: Clean tsbuildinfo files on package clean #39960

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

sirreal
Copy link
Member

@sirreal sirreal commented Mar 9, 2020

If tsbuildinfo (TypeScript cache) files are not cleaned, tsc will skip work even if declaration
files are missing and need to be generated.

Ensure that with package clean, the tsbuildinfo files are also removed.

Follow up to #39786

Testing instructions

When running this sequence of commands, tsbuildinfo files must be removed with generated types or they will not be regenterated.

On master, the following will error with missing types. On this branch is succeeds because the tsbuildinfo are removed which forces regeneration of declaration files.

npm run build-packages  # Build packages, declaration files, tsbuildinfo cache files
npm run clean:packages # Remove `dist`, should also remove `tsbuildinfo`
npm run build-packages # Rebuild packages…
npm run tsc -- -p client/landing/gutenboarding/ # Requires some type declarations

@sirreal sirreal requested a review from a team as a code owner March 9, 2020 11:00
@matticbot
Copy link
Contributor

@sirreal sirreal requested review from a team March 9, 2020 11:03
@sirreal sirreal self-assigned this Mar 9, 2020
@sirreal sirreal added [Type] Bug When a feature is broken and / or not performing as intended [Type] Janitorial Build labels Mar 9, 2020
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@sirreal
Copy link
Member Author

sirreal commented Mar 9, 2020

#39962 should fix the typecheck-strict failure which wasn't introduced by this PR.

If these files are not cleaned, tsc will skip work even if declaration
files are missing and need to be generated.

Ensure that with package clean, the tsbuildinfo files are also removed.
@sirreal sirreal force-pushed the update/clean-tsbuildinfo branch from 4dbe19d to cfd6a23 Compare March 9, 2020 11:38
@sirreal
Copy link
Member Author

sirreal commented Mar 9, 2020

Rebased, job failure should be fixed.

Copy link
Contributor

@blowery blowery left a comment

Choose a reason for hiding this comment

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

LGTM

@sirreal sirreal merged commit b0ec2e1 into master Mar 11, 2020
@sirreal sirreal deleted the update/clean-tsbuildinfo branch March 11, 2020 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build [Type] Bug When a feature is broken and / or not performing as intended [Type] Janitorial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants