Skip to content

Commit b40f828

Browse files
committed
fix: 修复 create 命令创建文件时无内容数据问题
1 parent ecf9c73 commit b40f828

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

lib/create.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ async function create(dirName) {
108108
file_handle_1.checkFileExistsAndCreate(rootPath + '/miniprogram_npm/lin-ui');
109109
file_handle_1.copyFolder(`${rootPath}/node_modules/lin-ui/dist`, rootPath + '/miniprogram_npm/lin-ui');
110110
tip_style_1.Success(`${tip_style_1.success(`Successfully created project ${tip_style_1.primary(name)}, directory name is ${tip_style_1.primary(dirName)}`)}`);
111-
shelljs_1.default.exit(1);
112111
}
113112
catch (err) {
114113
tip_style_1.Error(tip_style_1.error('create error'));

src/create.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export default async function create(dirName: string) {
109109
checkFileExistsAndCreate(rootPath + '/miniprogram_npm/lin-ui')
110110
copyFolder(`${rootPath}/node_modules/lin-ui/dist`, rootPath + '/miniprogram_npm/lin-ui')
111111
Success(`${success(`Successfully created project ${primary(name)}, directory name is ${primary(dirName)}`)}`)
112-
shell.exit(1)
113112
} catch (err) {
114113
Error(error('create error'))
115114
Error(error(err))

0 commit comments

Comments
 (0)