Skip to content

Commit c2227d7

Browse files
committed
fix: cli脚本文字错误
1 parent e9ca1fd commit c2227d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bin.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spinner.add({
3333
if (typeof userConfig === 'function') {
3434
const args = minimist(process.argv.slice(2), { alias: { env: ['e'] } });
3535
const env = args['env'] || process.env['NODE_ENV'] || 'development';
36-
task.title += ` [${colors.green(env)}]`;
36+
task.title += ` ${colors.gray(env)}`;
3737
ctx.configs = toArray(await userConfig(env));
3838
} else {
3939
ctx.configs = toArray(userConfig);
@@ -102,8 +102,9 @@ spinner.add({
102102
});
103103

104104
spinner.add({
105-
title: '写入@aomex/openapi-client',
106-
task: async (ctx) => {
105+
title: '写入npm包',
106+
task: async (ctx, task) => {
107+
task.title += ` import { ${Object.keys(ctx.projects).join(', ')} } from 'foca-openapi'`;
107108
const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
108109
const jsContent = Object.values(ctx.projects)
109110
.map(({ js }) => js)

0 commit comments

Comments
 (0)