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: include rimraf as part of the build for most of the packages #4615

Merged
merged 5 commits into from
Jul 31, 2023

Conversation

adrien2p
Copy link
Member

What
At the moment, in most packages, when we run the build script after removing something or changing pr, the dist directory does not get cleaned up and might still contain your old files. In those cases, if you don't pay attention, you might end up having weird behaviors and errors that might take sometimes before thinking about removing the dist and re-building. This pr add rimraf in most of the packages where it was missing as well as updated the build commands to include rimraf of the dist directory to prevent this situation.

@changeset-bot
Copy link

changeset-bot bot commented Jul 27, 2023

⚠️ No Changeset found

Latest commit: 46cc135

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Jul 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Jul 27, 2023 10:11am

@adrien2p
Copy link
Member Author

@olivermrbl I am not sure but I don't think we should include a changeset here right?

@adrien2p adrien2p marked this pull request as ready for review July 27, 2023 09:28
@adrien2p adrien2p requested a review from a team as a code owner July 27, 2023 09:28
@adrien2p adrien2p requested a review from olivermrbl July 27, 2023 09:28
@olivermrbl
Copy link
Contributor

No this doesn't need one 👍

Copy link
Contributor

@riqwan riqwan left a comment

Choose a reason for hiding this comment

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

yaaaas! This has caused much pain. Good man @adrien2p. 🎉

@olivermrbl olivermrbl merged commit 58d4c23 into develop Jul 31, 2023
@olivermrbl olivermrbl deleted the chore/rimraf branch July 31, 2023 07:23
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.

3 participants