mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
prevent a crash when a package file specifies a name, but not a version
This commit is contained in:
parent
8d36936454
commit
25ffab0676
@ -493,7 +493,7 @@ exports.publish = function(taffyData, opts, tutorials) {
|
||||
// update outdir if necessary, then create outdir
|
||||
var packageInfo = ( find({kind: 'package'}) || [] ) [0];
|
||||
if (packageInfo && packageInfo.name) {
|
||||
outdir = path.join(outdir, packageInfo.name, packageInfo.version);
|
||||
outdir = path.join( outdir, packageInfo.name, (packageInfo.version || '') );
|
||||
}
|
||||
fs.mkPath(outdir);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user