From 71cf002daaba0780d4f3ef31f0e854fc9b98f691 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 2 Sep 2015 15:16:28 -0700 Subject: [PATCH] Fix client refresh Since 87b11bd we were treating client-only refreshes of the initial server build as if they were initial builds, and not resetting the project context. This meant among other things that local packages weren't being rebuilt, which led to #5074 (but also would have led to a whole bunch of other problems). Fixes #5074. --- tools/runners/run-app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/runners/run-app.js b/tools/runners/run-app.js index f3d514cff0..8e128dde0c 100644 --- a/tools/runners/run-app.js +++ b/tools/runners/run-app.js @@ -443,7 +443,7 @@ _.extend(AppRunner.prototype, { _runOnce: function (options) { var self = this; options = options || {}; - const firstRun = options.firstRun; + var firstRun = options.firstRun; Console.enableProgressDisplay(true); @@ -596,6 +596,8 @@ _.extend(AppRunner.prototype, { return bundleResultOrRunResult.runResult; bundleResult = bundleResultOrRunResult.bundleResult; + firstRun = false; + // Read the settings file, if any var settings = null; var settingsWatchSet = new watch.WatchSet;