From 52de28dc4333c0799911f69d92cd048c9ae9df73 Mon Sep 17 00:00:00 2001 From: guybedford Date: Fri, 18 Sep 2015 18:58:43 +0200 Subject: [PATCH] 0.16.4 --- lib/config.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/config.js b/lib/config.js index 2b80210b8..3afca114a 100644 --- a/lib/config.js +++ b/lib/config.js @@ -100,7 +100,7 @@ exports.load = function(prompts) { return config.loader.read(prompts); }) .then(function() { - return readJSON(path.resolve(config.pjson.packages, '.dependencies.json')); + return readJSON(path.resolve(config.pjson.packages, '.dependencies.json')) }) .then(function(depsJSON) { config.deps = setSerializedDeps(depsJSON); @@ -175,6 +175,9 @@ exports.save = function() { .then(function() { return config.pjson.write(); }) + .then(function() { + return asp(mkdirp(config.pjson.packages)); + }) .then(function() { return asp(fs.writeFile)(path.resolve(config.pjson.packages, '.dependencies.json'), JSON.stringify(getSerializedDeps(config.deps), null, 2)); }) diff --git a/package.json b/package.json index fb0b7f912..3c3f0171b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jspm", "description": "Registry and format agnostic JavaScript package manager", - "version": "0.16.3", + "version": "0.16.4", "main": "./api.js", "author": "", "dependencies": {