Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jun 1, 2021

The test script now builds and tests without removing the dist directory first. This speeds up the test script a little bit (~0.5 seconds for me, usually). Removing the directory seemed a bit excessive, particularly if someone had enabled incremental builds.

A new build:clean script has been added to remove dist and build, and this is used in the prepublishOnly script. This should ensure the build used for publishing is always complete, with no extraneous files.

Also rimraf is now used for deleting dist, to improve platform compatibility for contributors.

@Gudahtt Gudahtt requested a review from a team as a code owner June 1, 2021 17:31
The test script now builds and tests without removing the `dist`
directory first. This speeds up the test script a little bit (~0.5
seconds for me, usually). Removing the directory seemed a bit
excessive, particularly if someone had enabled incremental builds.

A new `build:clean` script has been added to remove `dist` and build,
and this is used in the `prepublishOnly` script. This should ensure the
build used for publishing is always complete, with no extraneous files.

Also `rimraf` is now used for deleting `dist`, to improve platform
compatibility for contributors.
@Gudahtt Gudahtt force-pushed the speed-up-test-script branch from 9b57fb3 to cc7f24b Compare June 1, 2021 17:31
@Gudahtt Gudahtt merged commit f16229b into main Jun 1, 2021
@Gudahtt Gudahtt deleted the speed-up-test-script branch June 1, 2021 17:57
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