|
@@ -15,7 +15,7 @@ const hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
let data;
|
|
let data;
|
|
|
let view;
|
|
let view;
|
|
|
|
|
|
|
|
-let outdir = path.normalize( env.opts.destination );
|
|
|
|
|
|
|
+const outdir = path.normalize( env.opts.destination );
|
|
|
const themeOpts = ( env.opts.themeOpts ) || {};
|
|
const themeOpts = ( env.opts.themeOpts ) || {};
|
|
|
|
|
|
|
|
function mkdirSync( filepath ) {
|
|
function mkdirSync( filepath ) {
|
|
@@ -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 );
|
|
fs.mkPath( outdir );
|
|
|
|
|
|
|
|
// copy the template's static files to outdir
|
|
// copy the template's static files to outdir
|