Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cli/pbts.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@ exports.main = function(args, callback) {
}

function callJsdoc() {
// Workaround for jsdoc >3.5.5
for (var i = 0; i < files.length; i++) {
var file = files[i];
var fileTmp = file + '.pbts-tmp.js';

fs.writeFileSync(
fileTmp,
fs.readFileSync(file).toString().replace(
/((^|\n) *\* )@exports/g,
'$1@name'
)
);

files[i] = fileTmp;
cleanup.push(fileTmp);
}

// There is no proper API for jsdoc, so this executes the CLI and pipes the output
var basedir = path.join(__dirname, ".");
Expand Down