Skip to content

Commit 13b05e0

Browse files
author
月满
committed
fix: modify error msg
1 parent b7a62c1 commit 13b05e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/built-in-plugins/command-publish/plugin/run-publish.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const publish = async (options: PublishOption) => {
6262
!options.commitOnly && (await buildDeclaration());
6363

6464
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)]);
6666
for (const eachPackage of depMonoPackages) {
6767
await publishByPackageName(eachPackage.name, options, depMap, isDevelopBranch, currentBranchName);
6868
}
@@ -71,7 +71,7 @@ export const publish = async (options: PublishOption) => {
7171
// eslint-disable-next-line no-unused-expressions
7272
!options.commitOnly && (await buildDeclaration());
7373
}
74-
await authPublish([pri.projectPackageJson.name])
74+
await authPublish([pri.projectPackageJson.name]);
7575
await publishByPackageName(currentSelectedSourceType, options, depMap, isDevelopBranch, currentBranchName);
7676

7777
await fs.remove(path.join(pri.projectRootPath, tempPath.dir, declarationPath.dir));
@@ -109,7 +109,7 @@ async function authPublish(packageNames: string[]) {
109109
const pkgsP = packageNames.map(p => checkOwner(name, p));
110110
await Promise.all(pkgsP);
111111
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')}`);
113113
}
114114
}
115115

0 commit comments

Comments
 (0)