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(publishing): remove tsconfig.tsbuildinfo #8637

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Jun 15, 2023

I was looking at the contents of @redwoodjs/tui's dist, and most of the files are only a few kilobytes. But one, tsconfig.tsbuildinfo, is ~75 kilobytes—several times larger than the rest of the files combined. It's still not that big in the scheme of things (i.e. compared to most dependencies), but it struck as me being completely unnecessary since this file is for speeding up TypeScript's build's step (source: https://www.typescriptlang.org/tsconfig#tsBuildInfoFile).

Screenshot 2023-06-15 at 4 22 30 PM

Source: https://www.npmjs.com/package/@redwoodjs/tui?activeTab=code

Since this file is to make incremental builds with TS faster, we can't just delete it after we build packages. But we can delete it before we publish, so that's what this PR does.

@jtoar jtoar added the release:chore This PR is a chore (means nothing for users) label Jun 15, 2023
@jtoar jtoar marked this pull request as ready for review June 15, 2023 23:33
@jtoar jtoar merged commit 7542c78 into main Jun 15, 2023
28 of 30 checks passed
@jtoar jtoar deleted the ds-publishing/dont-publish-tsconfig.buildinfo branch June 15, 2023 23:44
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Jun 15, 2023
@jtoar
Copy link
Contributor Author

jtoar commented Jun 16, 2023

Just tried this out in a patch and it doesn't work; the lerna publish step builds the packages again, putting the tsconfig.tsbuildinfo file there.

@jtoar jtoar modified the milestones: next-release, v5.4.0 Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant