From 87aa1a86adae5665ac07ab75e3849d4c8f99c94f Mon Sep 17 00:00:00 2001 From: Halla Moore Date: Tue, 21 Feb 2017 18:03:19 -0800 Subject: [PATCH] [*] Make sure cloud deploy can access .babelrc Summary: Now that .babelrc is in client-app, we need to make it an exception in the .dockerignore file. Additionally, this means that the client-app directory will exist during the postinstall script in the cloud environment, so we need a stricter check to figure out if the client-app needs to be built or not. Test Plan: deployed to staging Reviewers: evan, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D4008 --- .dockerignore | 1 + scripts/postinstall.es6 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 1d936cb4a..9232da9ea 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,6 +3,7 @@ arclib **/node_modules packages/client-* +!packages/client-app/.babelrc *.swp *~ diff --git a/scripts/postinstall.es6 b/scripts/postinstall.es6 index f685e3cc2..6c1ec9f3a 100644 --- a/scripts/postinstall.es6 +++ b/scripts/postinstall.es6 @@ -82,7 +82,7 @@ async function npm(cmd, options) { } async function electronRebuild() { - if (!fs.existsSync(path.join("packages", "client-app"))) { + if (!fs.existsSync(path.join("packages", "client-app", "apm"))) { console.log("\n---> No client app to rebuild. Moving on") return; }