From 3e64bd78cd2e8428906bc590ae86fd7b49888b2a Mon Sep 17 00:00:00 2001 From: ekatek Date: Thu, 11 Sep 2014 14:41:11 -0700 Subject: [PATCH] keep track of old dependencies while restarting in runner --- tools/project.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/project.js b/tools/project.js index 5e0bb540a2..eacfc81633 100644 --- a/tools/project.js +++ b/tools/project.js @@ -161,6 +161,8 @@ _.extend(Project.prototype, { }, // Rereads all the on-disk files by reinitalizing the project with the same directory. + // Caches the old versions, in case we were running with --release (and they don't + // match the ones on disk). // // We don't automatically reinitialize this singleton when an app is // restarted, but an app restart is very likely caused by changes to our @@ -168,7 +170,9 @@ _.extend(Project.prototype, { // dependencies here. reload : function () { var self = this; + var oldDependencies = self.dependencies; self.setRootDir(self.rootDir); + self.dependencies = oldDependencies; }, // Several fields in project are derived from constraints. Whenever we change