keep track of old dependencies while restarting in runner

This commit is contained in:
ekatek
2014-09-11 14:41:11 -07:00
parent d5df1b9eb5
commit 3e64bd78cd

View File

@@ -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