From c8be10ca77ed1279dbbf7cf1ec337f5714c88d34 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 13 Dec 2022 18:43:53 +0100 Subject: [PATCH] chore: make too many lockfiles error more explicit (#48748) --- .github/workflows/node.js-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js-tests.yml b/.github/workflows/node.js-tests.yml index f6d59c6ec7e..b8001e6a632 100644 --- a/.github/workflows/node.js-tests.yml +++ b/.github/workflows/node.js-tests.yml @@ -31,7 +31,7 @@ jobs: run: | if [ $(find . -name 'package-lock.json' | grep -vc -e 'node_modules') -gt 1 ] 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 fi