@@ -62,7 +62,7 @@ export const publish = async (options: PublishOption) => {
62
62
! options . commitOnly && ( await buildDeclaration ( ) ) ;
63
63
64
64
if ( includeAllPrompt . includeAll ) {
65
- await authPublish ( [ pri . projectPackageJson . name , ...depMonoPackages . map ( v => v . packageJson . name ) ] )
65
+ await authPublish ( [ pri . projectPackageJson . name , ...depMonoPackages . map ( v => v . packageJson . name ) ] ) ;
66
66
for ( const eachPackage of depMonoPackages ) {
67
67
await publishByPackageName ( eachPackage . name , options , depMap , isDevelopBranch , currentBranchName ) ;
68
68
}
@@ -71,7 +71,7 @@ export const publish = async (options: PublishOption) => {
71
71
// eslint-disable-next-line no-unused-expressions
72
72
! options . commitOnly && ( await buildDeclaration ( ) ) ;
73
73
}
74
- await authPublish ( [ pri . projectPackageJson . name ] )
74
+ await authPublish ( [ pri . projectPackageJson . name ] ) ;
75
75
await publishByPackageName ( currentSelectedSourceType , options , depMap , isDevelopBranch , currentBranchName ) ;
76
76
77
77
await fs . remove ( path . join ( pri . projectRootPath , tempPath . dir , declarationPath . dir ) ) ;
@@ -109,7 +109,7 @@ async function authPublish(packageNames: string[]) {
109
109
const pkgsP = packageNames . map ( p => checkOwner ( name , p ) ) ;
110
110
await Promise . all ( pkgsP ) ;
111
111
if ( failedPkgSet . size > 0 ) {
112
- logFatal ( `以下 npm 包无权限发布 \n ${ Array . from ( failedPkgSet ) . join ( '\n' ) } ` ) ;
112
+ logFatal ( `Permission error: need ownership to publish these packages. \n ${ Array . from ( failedPkgSet ) . join ( '\n' ) } ` ) ;
113
113
}
114
114
}
115
115
0 commit comments