Skip to content

Commit 79c3a7d

Browse files
committed
fix: fix some bug
1 parent 11eed3d commit 79c3a7d

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

bin/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
// 测试使用
4+
35
const { yParser } = require('@micro-app/shared-utils');
46
const name = process.argv[2];
57
const argv = yParser(process.argv.slice(3));

src/core/Constants/SharedProps.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const MethodServiceKeys = [
3838
'tempDir',
3939
'getTempDirPackageGraph',
4040
'microsPackages',
41+
'writeTempFileSync',
42+
'writeTempFile',
4143
];
4244

4345
// 关于注册的方法

src/plugins/commands/init/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ Examples:
7575
});
7676
});
7777

78-
// type
79-
chain = chain.then(() => {
80-
return prompt.input('Enter Type:').then(answer => {
81-
const type = answer.trim();
82-
info.type = type;
83-
});
84-
});
78+
// type (不让用户输入,可忽略)
79+
// chain = chain.then(() => {
80+
// return prompt.input('Enter Type:').then(answer => {
81+
// const type = answer.trim();
82+
// info.type = type;
83+
// });
84+
// });
8585

8686
// others
8787
chain = chain.then(() => {

0 commit comments

Comments
 (0)