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

Clean dist directory when calling build:all script #1378

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

peaBerberian
Copy link
Collaborator

@Florent-Bouisset noticed that some release published in the v4 had a dist directory with unnecessary v3-related artefacts inside.

This is due to the fact that /dist was added to our .gitignore file (so it isn't tracked by git) and back-and-forth between v3 and v4 code means that the dist directory might end up having potentially v3 stuff.

We could be adding those in the .npmignore to prevent them to be published to npm, but I guess it makes more sense to just clean-up the dist directory each time we redo the build:all script which re-build every files and directories inside that that directory (and which is the script we do before every release).

@Florent-Bouisset noticed that some release published in the v4 had a
`dist` directory with unnecessary v3-related artefacts inside.

This is due to the fact that `/dist` was added to our `.gitignore` file
(so it isn't tracked by git) and back-and-forth between v3 and v4 code
means that the dist directory might end up having potentially v3 stuff.

We could be adding those in the `.npmignore` to prevent them to be
published to npm, but I guess it makes more sense to just clean-up the
`dist` directory each time we redo the `build:all` script which
re-build every files and directories inside that that directory (and
which is the script we do before every release).
@peaBerberian peaBerberian merged commit fd582d1 into stable Feb 6, 2024
4 checks passed
@peaBerberian peaBerberian added this to the 4.0.0-rc.2 milestone Feb 6, 2024
@peaBerberian peaBerberian deleted the misc/clean-dist branch February 7, 2024 17:57
@peaBerberian peaBerberian mentioned this pull request Feb 21, 2024
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.

2 participants