Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit a8f642f

Browse files
committed
Silence npm install output in Travis → NPM deploy
Without this, the `npm install` output causes the logs to be truncated: https://travis-ci.org/graphql/express-graphql/jobs/269661199 Note that I am using an old-school POSIX-compatible redirect of stderr and stdout (as opposed to the simpler `npm install &> /dev/null` because I don't know whether this script is going to be running as Bash or `/bin/sh` (which itself could be Bash, or something else). Closes: #388
1 parent 2bdcb26 commit a8f642f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/prepublish.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ if [ "$CI" != true ]; then
1717
fi
1818

1919
# Build before Travis CI publishes to NPM
20-
npm install
20+
npm install > /dev/null 2>&1
2121
npm run build

0 commit comments

Comments
 (0)