Skip to content

Commit 5fe914d

Browse files
authored
Sort scripts, add a prepublishOnly step for safety, update badges (#54)
1 parent b118195 commit 5fe914d

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

generated/avg-maintainability.svg

Lines changed: 5 additions & 5 deletions
Loading

generated/worst-maintainability.svg

Lines changed: 4 additions & 4 deletions
Loading

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"version": "7.0.1",
44
"description": "Static analysis tool for JavaScript projects",
55
"scripts": {
6-
"test": "jest --testTimeout 15000",
7-
"test:watch": "jest --watch",
8-
"test:coverage": "jest --coverage",
9-
"lint": "eslint src/*.**",
10-
"lint:fix": "eslint --fix src/*.**",
11-
"build": "tsc",
126
"build:badges": "node build/index.js src",
137
"build:watch": "tsc --watch",
14-
"prettier": "prettier --check src",
8+
"build": "tsc",
9+
"lint:fix": "eslint --fix src/*.**",
10+
"lint": "eslint src/*.**",
11+
"prepublishOnly": "yarn build && yarn test",
1512
"prettier:fix": "prettier --write src",
16-
"release": "yarn build && yarn publish"
13+
"prettier": "prettier --check src",
14+
"test:coverage": "jest --coverage",
15+
"test:watch": "jest --watch",
16+
"test": "jest --testTimeout 15000"
1717
},
1818
"author": "Sam Brown (https://github.com/sgb-io)",
1919
"repository": {

0 commit comments

Comments
 (0)