Skip to content

Commit ebfc328

Browse files
committed
windows tweak
1 parent 5757397 commit ebfc328

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

es5/jsdoc-parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function getJsdocOutput(src, options, done) {
123123
if (!fs.existsSync(jsdocPath)) {
124124
throw Error('jsdoc-parse: cannot find jsdoc: ' + jsdocPath);
125125
}
126-
var args = ['--pedantic', '-t', jsdocTemplatePath];
126+
var args = [jsdocPath, '--pedantic', '-t', jsdocTemplatePath];
127127
if (options.html) {
128128
args = args.concat(['-c', path.resolve(__dirname, 'default-conf.json')]);
129129
} else if (options.conf) {
@@ -135,7 +135,7 @@ function getJsdocOutput(src, options, done) {
135135
var outputFile = fs.openSync(outputFilePath, 'w');
136136
var outputStderrPath = tempPath();
137137
var outputStderr = fs.openSync(outputStderrPath, 'w');
138-
var handle = cp.spawn(jsdocPath, args, { stdio: [process.stdin, outputFile, outputStderr] });
138+
var handle = cp.spawn('node', args, { stdio: [process.stdin, outputFile, outputStderr] });
139139
handle.on('error', done);
140140
handle.on('close', function (code) {
141141
var stderr = fs.readFileSync(outputStderrPath, 'utf8');

lib/jsdoc-parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function getJsdocOutput (src, options, done) {
182182
if (!fs.existsSync(jsdocPath)) {
183183
throw Error('jsdoc-parse: cannot find jsdoc: ' + jsdocPath)
184184
}
185-
var args = [ '--pedantic', '-t', jsdocTemplatePath ]
185+
var args = [ jsdocPath, '--pedantic', '-t', jsdocTemplatePath ]
186186
if (options.html) {
187187
args = args.concat([
188188
'-c',
@@ -200,7 +200,7 @@ function getJsdocOutput (src, options, done) {
200200
var outputFile = fs.openSync(outputFilePath, 'w')
201201
var outputStderrPath = tempPath()
202202
var outputStderr = fs.openSync(outputStderrPath, 'w')
203-
var handle = cp.spawn(jsdocPath, args, { stdio: [ process.stdin, outputFile, outputStderr ] })
203+
var handle = cp.spawn('node', args, { stdio: [ process.stdin, outputFile, outputStderr ] })
204204
handle.on('error', done)
205205
handle.on('close', function (code) {
206206
const stderr = fs.readFileSync(outputStderrPath, 'utf8')

0 commit comments

Comments
 (0)