diff --git a/lib/config/index.js b/lib/config/index.js index 8e8fb8c7e..145609f33 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -504,7 +504,7 @@ function initPrompts(newProject) { }) // jspm config folder .then(function() { - if (promptType == 'custom' || promptType == 'quick') + if (promptType == 'custom') return; // to make the prompts simple, we assume the config files are called jspm.config.js and diff --git a/lib/config/loader.js b/lib/config/loader.js index 5c31432ad..d6617984d 100644 --- a/lib/config/loader.js +++ b/lib/config/loader.js @@ -420,17 +420,15 @@ Object.defineProperty(JspmSystemConfig.prototype, 'nodePackagesURL', { }, set: function(packagesURL) { var self = this; - var curPackagesURL = this.nodePackagesURL; if (packagesURL[packagesURL.length - 1] != path.sep) packagesURL += path.sep; // if node registry paths was null, bring it back this.nodeRegistryPaths = this.nodeRegistryPaths || {}; - Object.keys(this.nodeRegistryPaths).forEach(function(path) { - var registryPath = getRegistryPath(path, self.nodeRegistryPaths[path]); - if (registryPath && registryPath.packagesURL + path.sep == curPackagesURL) - self.nodeRegistryPaths[path] = packagesURL + registryPath.name + path.sep; + Object.keys(this.nodeRegistryPaths).forEach(function(p) { + var registryPath = getRegistryPath(p, self.nodeRegistryPaths[p]); + self.nodeRegistryPaths[p] = packagesURL + registryPath.name + path.sep; }); // ensure all packageConfig registry paths var packageConfigPaths = this.file.getValue(['packageConfigPaths'], 'array');