Skip to content
Merged
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
10 changes: 1 addition & 9 deletions utils/docs/template/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const hasOwnProp = Object.prototype.hasOwnProperty;
let data;
let view;

let outdir = path.normalize( env.opts.destination );
const outdir = path.normalize( env.opts.destination );
const themeOpts = ( env.opts.themeOpts ) || {};

function mkdirSync( filepath ) {
Expand Down Expand Up @@ -586,14 +586,6 @@ exports.publish = ( taffyData, opts, tutorials ) => {

} );

// update outdir if necessary, then create outdir
const packageInfo = ( find( { kind: 'package' } ) || [] )[ 0 ];
if ( packageInfo && packageInfo.name ) {

outdir = path.join( outdir, packageInfo.name, ( packageInfo.version || '' ) );

}

fs.mkPath( outdir );

// copy the template's static files to outdir
Expand Down