diff --git a/package.json b/package.json index 3188803c..53852c76 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "jester-tester", "description": "Get your project tested and out there with minimal fuss.", "repository": "https://github.com/jauco/jester", - "version": "1.3.0", + "version": "1.3.1", "author": "Jauco Noordzij ", "bin": { "jester-watch": "./src/bin/jester-watch.js", diff --git a/src/lib/rebuildDocumentation.js b/src/lib/rebuildDocumentation.js index e373b2d5..f211bd11 100644 --- a/src/lib/rebuildDocumentation.js +++ b/src/lib/rebuildDocumentation.js @@ -14,15 +14,19 @@ module.exports = function rebuildDocumentation(srcPath, targetPath, confPath, re } }; + var enquote = function enquote(str) { + return "\"" + str + "\""; + } + ensurePathExists(srcPath); ensurePathExists(targetPath, "you must define a valid documentation directory by setting apiDocPath in jester.json"); // define command line options: var options = "-r"; - var src = p.resolve(srcPath); - var target = "-d " + p.resolve(targetPath); - var readme = pathExists(readmePath) ? p.resolve(readmePath) : ""; - var conf = pathExists(confPath) ? "-c " + p.resolve(confPath) : ""; + var src = enquote(p.resolve(srcPath)); + var target = "-d " + enquote(p.resolve(targetPath)); + var readme = pathExists(readmePath) ? enquote(p.resolve(readmePath)) : ""; + var conf = pathExists(confPath) ? "-c " + enquote(p.resolve(confPath)) : ""; var jsdoc = require.resolve("jsdoc/jsdoc"); var cmd = ["node", jsdoc, readme, src, options, target, conf].join(" ");