Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Commit c2dc86c

Browse files
committed
check for clean tree before publishing
1 parent 1c40644 commit c2dc86c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
"watch:build": "tsc -p tsconfig.dist.json -w",
8282
"prettier": "prettier --list-different --write \"src/**/*.ts\"",
8383
"prettier-check": "npm run prettier -- --write=false",
84-
"sourcegraph:prepublish": "yarn run build"
84+
"hascleantree": "! ls -l node_modules/ node_modules/@* | grep \"^l\" && git diff-index --quiet HEAD --",
85+
"sourcegraph:prepublish": "yarn run hascleantree && yarn run build"
8586
},
8687
"browserslist": [
8788
"last 1 Chrome versions",

0 commit comments

Comments
 (0)