Skip to content

Commit

Permalink
Merge pull request #326 from heroku/fix-remove-devdeps-log
Browse files Browse the repository at this point in the history
remove debugging log for devdeps
  • Loading branch information
hunterloftis committed Jul 1, 2016
2 parents 750b2fe + c764e7a commit 75ac192
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions lib/failure.sh
Expand Up @@ -99,12 +99,11 @@ warn_angular_resolution() {
warn_missing_devdeps() {
local log_file="$1"
if grep -qi 'cannot find module' "$log_file"; then
warning "A module may be missing from package.json" "https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies"
warning "A module may be missing from 'dependencies' in package.json" "https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies"
if [ "$NPM_CONFIG_PRODUCTION" == "true" ]; then
local devDeps=$(read_json "$BUILD_DIR/package.json" ".devDependencies")
echo "devDependencies: $devDeps"
if [ "$devDeps" != "" ]; then
warning "A module may be specified in devDependencies instead of dependencies" "https://devcenter.heroku.com/articles/nodejs-support#devdependencies"
warning "This module may be specified in 'devDependencies' instead of 'dependencies'" "https://devcenter.heroku.com/articles/nodejs-support#devdependencies"
fi
fi
fi
Expand Down
6 changes: 3 additions & 3 deletions test/run
Expand Up @@ -31,15 +31,15 @@ testWarnNoStart() {
testWarnDevDeps() {
compile "missing-devdeps-1"
assertCaptured "A module may be missing"
assertNotCaptured "A module may be specified"
assertNotCaptured "This module may be specified"
assertCapturedError
compile "missing-devdeps-2"
assertCaptured "A module may be missing"
assertCaptured "A module may be specified"
assertCaptured "This module may be specified"
assertCapturedError
compile "failing-build"
assertNotCaptured "A module may be missing"
assertNotCaptured "A module may be specified"
assertNotCaptured "This module may be specified"
assertCapturedError
}

Expand Down

0 comments on commit 75ac192

Please sign in to comment.