Commit 75ac1923 authored by Hunter Loftis's avatar Hunter Loftis Committed by GitHub

Merge pull request #326 from heroku/fix-remove-devdeps-log

remove debugging log for devdeps
parents 750b2fe8 c764e7ae
......@@ -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
......
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment