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 <jv@jviotti.com>
This commit is contained in:
Juan Cruz Viotti 2017-07-03 13:14:22 -04:00 committed by GitHub
parent c2563c2f87
commit 2e3a2f045e

View File

@ -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