File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export const buildComponent = async (packageInfo: PackageInfo = null) => {
113113 // );
114114
115115 // TODO:
116- await spinner ( `build source files ${ ( packageInfo && packageInfo . name ) || '' } ` , async ( ) => {
116+ await spinner ( `build source files ${ ( packageInfo && packageInfo . name ) || '' } \n ` , async ( ) => {
117117 await tsPlusBabel ( false , false , packageInfo ) ;
118118 } ) ;
119119
Original file line number Diff line number Diff line change 11import * as fs from 'fs-extra' ;
22import * as path from 'path' ;
33import * as inquirer from 'inquirer' ;
4- import { execSync } from 'child_process' ;
54import * as _ from 'lodash' ;
65import { PublishOption } from './interface' ;
76import { exec } from '../../../utils/exec' ;
@@ -79,10 +78,7 @@ export const publish = async (options: PublishOption) => {
7978
8079 await fs . remove ( path . join ( pri . projectRootPath , tempPath . dir , declarationPath . dir ) ) ;
8180
82- const currentBranch = execSync ( 'git rev-parse --abbrev-ref HEAD' )
83- . toString ( 'utf8' )
84- . trim ( ) ;
85- await exec ( `git push origin ${ currentBranch } ` ) ;
81+ await exec ( `git push origin ${ currentBranchName } ` ) ;
8682 }
8783 break ;
8884 }
You can’t perform that action at this time.
0 commit comments