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

chore: clean lib when running tsc #5982

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Conversation

jackfranklin
Copy link
Collaborator

I've had misleading type errors due to left over builds or tests
behaving oddly. We should just strip the entire folder out before
building again so there's no left over artefacts that could cause
issues.

The || true in the command is so if rm errors because the folder
doesn't exist, it doesn't exit with an error code.

Copy link
Member

@mathiasbynens mathiasbynens left a comment

Choose a reason for hiding this comment

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

LGTM

The || true in the command is so if rm errors because the folder
doesn't exist, it doesn't exit with an error code.

Seems simpler to use -f. WDYT?

package.json Outdated Show resolved Hide resolved
I've had misleading type errors due to left over builds or tests
behaving oddly. We should just strip the entire folder out before
building again so there's no left over artefacts that could cause
issues.

The `|| true` in the command is so if `rm` errors because the folder
doesn't exist, it doesn't exit with an error code.
@jackfranklin jackfranklin merged commit 83c29d9 into master Jun 9, 2020
@jackfranklin jackfranklin deleted the clean-lib-on-tsc-build branch June 9, 2020 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants