Only recompile if a .js or .json file was changed
This commit is contained in:
+6
-3
@@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
set -e
|
set -e
|
||||||
yarn install
|
|
||||||
yarn run package
|
if git diff --cached --name-only | grep -E '.(js|json)$'; then
|
||||||
exec git add dist/index.js
|
yarn install
|
||||||
|
yarn run package
|
||||||
|
exec git add dist/index.js
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user