Commit f16229b
authored
Speed up test script (#20)
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.1 parent 74b80c1 commit f16229b
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
1354 | 1361 | | |
1355 | 1362 | | |
1356 | 1363 | | |
| |||
0 commit comments