File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export const buildComponent = async (packageInfo: PackageInfo = null) => {
113
113
// );
114
114
115
115
// TODO:
116
- await spinner ( `build source files ${ ( packageInfo && packageInfo . name ) || '' } ` , async ( ) => {
116
+ await spinner ( `build source files ${ ( packageInfo && packageInfo . name ) || '' } \n ` , async ( ) => {
117
117
await tsPlusBabel ( false , false , packageInfo ) ;
118
118
} ) ;
119
119
Original file line number Diff line number Diff line change 1
1
import * as fs from 'fs-extra' ;
2
2
import * as path from 'path' ;
3
3
import * as inquirer from 'inquirer' ;
4
- import { execSync } from 'child_process' ;
5
4
import * as _ from 'lodash' ;
6
5
import { PublishOption } from './interface' ;
7
6
import { exec } from '../../../utils/exec' ;
@@ -79,10 +78,7 @@ export const publish = async (options: PublishOption) => {
79
78
80
79
await fs . remove ( path . join ( pri . projectRootPath , tempPath . dir , declarationPath . dir ) ) ;
81
80
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 } ` ) ;
86
82
}
87
83
break ;
88
84
}
You can’t perform that action at this time.
0 commit comments