From 2e3a2f045e493f5dbcc2e0866a6b485c0b0e9ca9 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 3 Jul 2017 13:14:22 -0400 Subject: [PATCH] chore: pipe stdout from npm ls to /dev/null (#1566) As part of our CI sanity checks, we run `npm ls`, to ensure we don't have any extraneous dependencies (the command fails if so), however by its own definition, `npm ls` prints the whole dependency tree, which spams the builds. This commit redirects stdout to /dev/null, which contains the dependency tree, but still prints and extraneous dependency warning, which is printed to stderr instead. Change-Type: patch Signed-off-by: Juan Cruz Viotti --- scripts/ci/ensure-npm-valid-dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/ensure-npm-valid-dependencies.sh b/scripts/ci/ensure-npm-valid-dependencies.sh index 4064c684..c8c9c423 100755 --- a/scripts/ci/ensure-npm-valid-dependencies.sh +++ b/scripts/ci/ensure-npm-valid-dependencies.sh @@ -22,4 +22,4 @@ set -e # This command will exit with an error code if there # are invalid or extraneous dependencies, printing the # problematic ones if so. -npm ls +npm ls >/dev/null