chore: make too many lockfiles error more explicit (#48748)

pull/48742/head^2
Oliver Eyton-Williams 2022-12-13 18:43:53 +01:00 committed by GitHub
parent 209f75412d
commit c8be10ca77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ jobs:
run: | run: |
if [ $(find . -name 'package-lock.json' | grep -vc -e 'node_modules') -gt 1 ] if [ $(find . -name 'package-lock.json' | grep -vc -e 'node_modules') -gt 1 ]
then then
echo 'Error: found too many lockfiles in the repository' echo -e 'Error: found too many lockfiles in the repository.\nWe use npm workspaces to manage packages so all dependencies should be added to the root package-lock.json'
exit 1 exit 1
fi fi