You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prune yarn devDependencies at the end of build (heroku#891)
* prune yarn devDependencies at the end of build * Remove warning message for production flag * Update tests to reflect need of workspace import * install workspace plugin when not present * update fixtures * cache build with yarn 2 * change grep of yarn plugins from yarnrc.yml; delete warning test for production flag * set up buildpack to instead warn that plugin is missing and prompt user to install before build
if [[ "$NODE_MODULES_CACHE"=="true" ]] &&! node_modules_enabled "$BUILD_DIR";then
151
149
warn "
152
150
The buildpack won't cache the dependencies in .yarn/cache. Since you're using Yarn 2 and Plug'n'Play, you will need to customize your cache or unset NODE_MODULES_CACHE.""https://devcenter.heroku.com/articles/migrating-to-yarn-2#disable-dependency-caching"
Copy file name to clipboardExpand all lines: lib/failure.sh
-12Lines changed: 0 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -418,18 +418,6 @@ fail_missing_yarn_vendor() {
418
418
fi
419
419
}
420
420
421
-
fail_yarn_2_production() {
422
-
local build_dir="$1"
423
-
424
-
if [[ -n"$YARN_PRODUCTION" ]];then
425
-
header "Build failed"
426
-
warn "
427
-
The --production flag is no longer used for installing production dependencies for entire projects, but is still used in workspaces. See https://devcenter.heroku.com/articles/migrating-to-yarn-2#update-heroku-environment-with-plug-n-play-remove-production-environment-variables for additional information.
428
-
"
429
-
fail
430
-
fi
431
-
}
432
-
433
421
log_other_failures() {
434
422
local log_file="$1"
435
423
if grep -qi "sh: 1: .*: not found""$log_file";then
0 commit comments