Skip to content

Commit

Permalink
Added command-join
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed Jan 31, 2019
1 parent 6743157 commit a292b1f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
},
"dependencies": {
"better-docs": "^1.1.2",
"command-join": "^2.0.0",
"debug": "^4.1.1",
"first-existing-path": "^1.0.1",
"jsdoc": "^3.5.5",
"jsdoc-babel": "^0.5.0",
"jsdoc-export-default-interop": "^0.3.1",
"node-exec-promise": "^1.0.2",
"tmp-promise": "^1.0.5",
"tsd-jsdoc": "^2.1.2",
"debug": "^4.1.1"
"tsd-jsdoc": "^2.1.2"
},
"peerDependencies": {
"webpack": "^4.28.0"
Expand All @@ -53,4 +54,4 @@
"webpack-cli": "^3.2.1",
"webpack-config-jaid": "1.22.0"
}
}
}
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import firstExistingPath from "first-existing-path"
import {exec} from "node-exec-promise"
import readPkgUp from "read-pkg-up"
import {isObject} from "lodash"
import commandJoin from "command-join"

const debug = require("debug")("jsdoc-tsd-webpack-plugin")

Expand Down Expand Up @@ -163,7 +164,7 @@ export default class {
getTsdConfigPath(compilation, configBase, tsdModulePath, this.options, tempDir),
])

const jsdocCommands = [htmlConfigPath, tsdConfigPath].map(configPath => `${process.execPath} "${jsdocPath}" --configure "${configPath}"`)
const jsdocCommands = [htmlConfigPath, tsdConfigPath].map(configPath => commandJoin([process.execPath, jsdocPath, "--configure", configPath]))
debug("JSDoc commands", jsdocCommands)
const jsdocJobs = jsdocCommands.map(command => exec(command))

Expand Down

0 comments on commit a292b1f

Please sign in to comment.