Skip to content

Commit fcc9f3b

Browse files
committed
check for clean tree before publishing
1 parent d3e5a08 commit fcc9f3b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"serve": "parcel serve --no-hmr --out-file sourcegraph-python.js src/sourcegraph-python.ts",
4141
"watch:typecheck": "tsc -p tsconfig.json -w",
4242
"watch:build": "tsc -p tsconfig.dist.json -w",
43-
"sourcegraph:prepublish": "npm run build"
43+
"hascleantree": "! ls -l node_modules/ node_modules/@* | grep \"^l\" && git diff-index --quiet HEAD --",
44+
"sourcegraph:prepublish": "npm run hascleantree && npm run build"
4445
},
4546
"browserslist": [
4647
"last 1 Chrome versions",

0 commit comments

Comments
 (0)