[client-app] Include node-mac-notifier in build

Summary:
Given that `lerna bootstrap` does not install optional dependencies, we
need to manually run `npm install` inside `client-app` so
`node-mac-notifier` get's correctly installed and included in the build

See https://github.com/lerna/lerna/issues/121

Fixes T7887

Test Plan: manual

Reviewers: halla, evan

Reviewed By: evan

Maniphest Tasks: T7887

Differential Revision: https://phab.nylas.com/D4076
This commit is contained in:
Juan Tejada 2017-03-01 14:38:51 -08:00
parent fc2557051c
commit c088e86110

View file

@ -131,7 +131,16 @@ async function main() {
try {
await installPrivateResources()
await lernaBootstrap();
// Given that `lerna bootstrap` does not install optional dependencies, we
// need to manually run `npm install` inside `client-app` so
// `node-mac-notifier` get's correctly installed and included in the build
// See https://github.com/lerna/lerna/issues/121
console.log("\n---> Reinstalling client-app dependencies to include optional dependencies");
await npm('install', {cwd: 'packages/client-app'})
await electronRebuild();
linkJasmineConfigs();
linkIsomorphicCoreSpecs();
} catch (err) {