Ensure that npm is not run in production mode #51
Conversation
So this should install packages from both |
Correct. Previously we were getting around this by chucking all our dependencies into |
See this thread for more info. |
Cool. I might apply this change to staging and run a deploy to confirm it works as we expect |
Unfortunately the deploy to staging failed.
When I look at the logs, it seems the
|
I checked, it failed because |
We've just been following the suggestions in webpack/webpack#520, where "runtime" dependencies go in |
So it would've failed under the old dep as well? |
No. We were forcing We could do a That way any old packages would be removed before we check and install new ones. |
I'm not sure, but here's what the old code was doing
|
@nickbrowne That code would never install anything in |
Yup, but it was intentionally done that way |
It seems like we might need to have a philosophical discussion about how we want to treat Given tc is currently unshippable, I vote for reverting back to the old style ( |
@yob Can we try it one more time with my tweak first? |
I think I'd rather just revert as a short term solution. I'm not across the |
Ok. TC already has |
Ok. I'll open a PR on TC hat does that - can you prepare the revert to babushka? |
Sure, reverting... |
e9206d8
to
648130e
Compare
9df8d59
to
7d711f4
Compare
I'm not going to change anything else with this, now that we're going to dockerise our apps. |
This PR fixes a mistake I made when previously trying to fix up our npm install process.
When we install packages we want to force npm to not run in production mode. This is because we also require development dependencies to be installed on our production servers.