rsnext/check-pre-compiled.sh
JJ Kasper 84b89c8b24
Pre-ncc compiled packages to prevent re-nccing unnecessarily (#11569)
* Pre-ncc compiled packages to prevent re-nccing unnecessarily

* Add compiled files

* Re-run pre-ncc step

* Add check to workflow to ensure pre-compiled doesnt need updating

* Update check-pre-compiled script

* Add handling for lower case license while nccing

* bump

Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-07 09:42:16 -04:00

12 lines
261 B
Bash
Executable file

#!/bin/bash
yarn --cwd packages/next ncc-compiled
# Make sure to exit with 1 if there are changes after running ncc-compiled
# step to ensure we get any changes committed
if [[ ! -z $(git status -s) ]];then
echo "Detected changes"
git status
exit 1
fi