Skip to content

Commit 0ea91ae

Browse files
committed
Fail build if lint fails
1 parent d50c21a commit 0ea91ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"dist"
99
],
1010
"scripts": {
11-
"build": "babel include-fragment-element.js -o dist/index-umd.js",
12-
"clean": "rm -rf ./dist",
11+
"clean": "rm -rf dist",
1312
"lint": "eslint include-fragment-element.js test/*.js",
14-
"prebuild": "npm run clean && mkdir dist",
15-
"prepublishOnly": "npm run build",
13+
"prebuild": "npm run clean && npm run lint && mkdir dist",
14+
"build": "babel include-fragment-element.js -o dist/index-umd.js",
1615
"pretest": "npm run lint",
17-
"test": "karma start ./test/karma.config.js"
16+
"test": "karma start ./test/karma.config.js",
17+
"prepublishOnly": "npm run build"
1818
},
1919
"devDependencies": {
2020
"babel-cli": "^6.26.0",

0 commit comments

Comments
 (0)