[client-app] actually npm install inside the /apm dir with env vars

Summary:
We weren't actually running npm install inside of apm. This meant that
/apm/node_modules was empty causing the build to fail. This will install
with the proper env required for old apm

Wow we need to get rid of this thing soon…

Test Plan: Run `npm install`

Reviewers: jerm, spang, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3986
This commit is contained in:
Evan Morikawa 2017-02-21 14:34:30 -05:00
parent 17b7653109
commit 4582acc2e5

View file

@ -86,7 +86,7 @@ async function electronRebuild() {
console.log("\n---> No client app to rebuild. Moving on")
return;
}
await npm('rebuild', {
await npm('install', {
cwd: path.join('packages', 'client-app', 'apm'),
env: 'apm',
})