Skip to content

Commit 5d13f7f

Browse files
committed
package.json: Add prepublishOnly script to catch last-minute issues
1 parent 7c8e7f2 commit 5d13f7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"scripts": {
1414
"lint": "eslint src/ test/",
15+
"prepublishOnly": "git diff-index --quiet --cached HEAD -- && npm run lint && npm run test",
1516
"test": "jest"
1617
},
1718
"repository": {

0 commit comments

Comments
 (0)