Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
6927bbe8
Commit
6927bbe8
authored
Dec 16, 2016
by
Hunter Loftis
Committed by
GitHub
Dec 16, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #353 from heroku/yarn-no-production
check on yarn production incompatibility with npm
parents
e9bd8d5e
573f03a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dependencies.sh
lib/dependencies.sh
+7
-0
No files found.
lib/dependencies.sh
View file @
6927bbe8
...
...
@@ -33,6 +33,13 @@ yarn_node_modules() {
# according to docs: "Verifies that versions of the package dependencies in the current project’s package.json matches that of yarn’s lock file."
# however, appears to also check for the presence of deps in node_modules
# yarn check 1>/dev/null
if
[
"
$NODE_ENV
"
==
"production"
]
&&
[
"
$NPM_CONFIG_PRODUCTION
"
==
"false"
]
;
then
echo
""
echo
"Warning: when NODE_ENV=production, yarn will NOT install any devDependencies"
echo
" (even if NPM_CONFIG_PRODUCTION is false)"
echo
" https://yarnpkg.com/en/docs/cli/install#toc-yarn-install-production"
echo
""
fi
yarn
install
--pure-lockfile
--ignore-engines
2>&1
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment