diff options
Diffstat (limited to 'format-code.sh')
-rwxr-xr-x | format-code.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/format-code.sh b/format-code.sh index 9649a403..b93ca626 100755 --- a/format-code.sh +++ b/format-code.sh @@ -14,6 +14,11 @@ if [ -n "$1" ]; then cd "$1" fi -npm ci +npm install npm run lint + +# CI might be running a different version of NPM than yocto, and we don't +# want to trigger a formatting failure if package-lock.json has changed +# Therefore, revert it back to what it was previously. +git checkout package-lock.json git --no-pager diff --exit-code |