save output in the current working directory, not the JSDoc directory

This commit is contained in:
Jeff Williams 2012-09-03 10:23:25 -07:00
parent ef6f2e92d5
commit f5e3f0f31d

View File

@ -176,7 +176,7 @@ exports.publish = function(data, opts, tutorials) {
var globals = find( {kind: ['member', 'function', 'constant', 'typedef'], memberof: {isUndefined: true}} );
var outdir = env.dirname + '/' + opts.destination;
var outdir = opts.destination;
if (packageInfo && packageInfo.name) {
outdir += '/' + packageInfo.name + '/' + packageInfo.version + '/';
}