Skip to content

Commit cd7adc0

Browse files
Added a "clean" script
1 parent ea076c1 commit cd7adc0

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

package-lock.json

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
"lib"
3838
],
3939
"scripts": {
40+
"clean": "shx rm -rf .nyc_output coverage",
4041
"lint": "eslint lib test/fixtures test/specs",
41-
"test": "npm run test:node && npm run test:browser && npm run test:typescript && npm run lint",
42+
"test": "npm run test:node && npm run test:typescript && npm run test:browser && npm run lint",
4243
"test:node": "mocha",
4344
"test:browser": "karma start --single-run",
4445
"test:typescript": "tsc --noEmit --strict --lib esnext test/specs/typescript-definition.spec.ts",
@@ -47,7 +48,7 @@
4748
"coverage:browser": "npm run test:browser -- --coverage",
4849
"upgrade": "npm-check -u && npm audit fix",
4950
"bump": "bump --tag --push --all",
50-
"release": "npm run upgrade && npm test && npm run bump"
51+
"release": "npm run upgrade && npm run clean && npm test && npm run bump"
5152
},
5253
"devDependencies": {
5354
"@babel/polyfill": "^7.7.0",
@@ -64,6 +65,7 @@
6465
"mocha": "^7.1.0",
6566
"npm-check": "^5.9.0",
6667
"nyc": "^15.0.0",
68+
"shx": "^0.3.2",
6769
"typescript": "^3.7.4"
6870
},
6971
"dependencies": {

0 commit comments

Comments
 (0)