From 4f7073d7aad4cceccd238602ee7a46de8492b5cd Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 14 Jul 2014 14:42:42 -0600 Subject: [PATCH] For jsdoc to find plugins, we need to set the cwd This allows the `build.js` (and the exports from `generate-info.js`) to be run with a different working directory. --- tasks/generate-info.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/generate-info.js b/tasks/generate-info.js index 74c527a826..f94d22980d 100644 --- a/tasks/generate-info.js +++ b/tasks/generate-info.js @@ -81,7 +81,8 @@ function spawnJSDoc(paths, callback) { var output = ''; var errors = ''; - var child = spawn(jsdoc, ['-c', jsdocConfig].concat(paths)); + var cwd = path.join(__dirname, '..'); + var child = spawn(jsdoc, ['-c', jsdocConfig].concat(paths), {cwd: cwd}); child.stdout.on('data', function(data) { output += String(data);