Skip to content

Commit 29ce6ca

Browse files
committed
CLI: Moved tsd-jsdoc to future cli package, see #716
1 parent f755d36 commit 29ce6ca

File tree

7 files changed

+4
-4
lines changed

7 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"encoding" : "utf8",
1212
"recurse" : true,
1313
"lenient" : true,
14-
"template" : "../lib/tsd-jsdoc",
14+
"template" : "./tsd-jsdoc",
1515

1616
"private" : false,
1717
"comments" : true,
File renamed without changes.

cli/pbts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ exports.main = function(args, callback) {
9696
function callJsdoc() {
9797

9898
// There is no proper API for jsdoc, so this executes the CLI and pipes the output
99-
var basedir = path.join(__dirname, "..");
99+
var basedir = path.join(__dirname, ".");
100100
var moduleName = argv.name || "null";
101-
var cmd = "node \"" + require.resolve("jsdoc/jsdoc.js") + "\" -c \"" + path.join(basedir, "config", "jsdoc-types.json") + "\" -q \"module=" + encodeURIComponent(moduleName) + "&comments=" + Boolean(argv.comments) + "\" " + files.map(function(file) { return "\"" + file + "\""; }).join(" ");
101+
var cmd = "node \"" + require.resolve("jsdoc/jsdoc.js") + "\" -c \"" + path.join(basedir, "lib", "tsd-jsdoc.json") + "\" -q \"module=" + encodeURIComponent(moduleName) + "&comments=" + Boolean(argv.comments) + "\" " + files.map(function(file) { return "\"" + file + "\""; }).join(" ");
102102
var child = child_process.exec(cmd, {
103103
cwd: process.cwd(),
104104
argv0: "node",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"changelog": "node scripts/changelog -w",
3030
"coverage": "istanbul --config=config/istanbul.json cover node_modules/tape/bin/tape tests/*.js tests/node/*.js",
3131
"coverage-ci": "npm run coverage && codeclimate-test-reporter < coverage/lcov.info",
32-
"docs": "jsdoc -c config/jsdoc-docs.json -R README.md --verbose --pedantic",
32+
"docs": "jsdoc -c config/jsdoc.json -R README.md --verbose --pedantic",
3333
"lint": "eslint **/*.js -c config/eslint.json && tslint **/*.d.ts -e **/node_modules/** -t stylish -c config/tslint.json",
3434
"pages": "node scripts/pages",
3535
"prepublish": "node scripts/prepublish",

0 commit comments

Comments
 (0)