Skip to content

Commit baf0551

Browse files
committed
restore behaviour to pass .render() file paths directly into jsdoc without glob expansion
1 parent 1400940 commit baf0551

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import jsdoc from 'jsdoc-api'
22

3-
await jsdoc.render({ files: ['index.js'], destination: 'jsdoc-output' })
3+
await jsdoc.render({ files: ['.'], destination: 'jsdoc-output' })

lib/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Render extends JsdocCommand {
66
async getOutput () {
77
return new Promise((resolve, reject) => {
88
const jsdocArgs = toSpawnArgs(this.jsdocOptions)
9-
.concat(this.options.source ? this.tempFile.path : this.inputFileSet.files)
9+
.concat(this.options.source ? this.tempFile.path : this.options.files)
1010

1111
jsdocArgs.unshift(this.jsdocPath)
1212
const handle = spawn('node', jsdocArgs, { stdio: 'inherit' })

0 commit comments

Comments
 (0)