create-umi 4.0.43 → 4.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -43,49 +43,52 @@ var src_default = async ({ cwd, args }) => {
43
43
  const { username, email } = await (0, import_utils.getGitInfo)();
44
44
  let author = email && username ? `${username} <${email}>` : "";
45
45
  if (!args.default) {
46
- const response = await (0, import_utils.prompts)([
46
+ const response = await (0, import_utils.prompts)(
47
+ [
48
+ {
49
+ type: "select",
50
+ name: "appTemplate",
51
+ message: "Pick Umi App Template",
52
+ choices: [
53
+ { title: "Simple App", value: "app" },
54
+ { title: "Ant Design Pro", value: "max" },
55
+ { title: "Vue Simple App", value: "vue-app" }
56
+ ],
57
+ initial: 0
58
+ },
59
+ {
60
+ type: "select",
61
+ name: "npmClient",
62
+ message: "Pick Npm Client",
63
+ choices: [
64
+ { title: "npm", value: "npm" },
65
+ { title: "cnpm", value: "cnpm" },
66
+ { title: "tnpm", value: "tnpm" },
67
+ { title: "yarn", value: "yarn" },
68
+ { title: "pnpm", value: "pnpm" }
69
+ ],
70
+ initial: 4
71
+ },
72
+ {
73
+ type: "select",
74
+ name: "registry",
75
+ message: "Pick Npm Registry",
76
+ choices: [
77
+ {
78
+ title: "npm",
79
+ value: "https://registry.npmjs.org/",
80
+ selected: true
81
+ },
82
+ { title: "taobao", value: "https://registry.npmmirror.com" }
83
+ ]
84
+ }
85
+ ],
47
86
  {
48
- type: "select",
49
- name: "appTemplate",
50
- message: "Pick Umi App Template",
51
- choices: [
52
- { title: "Simple App", value: "app" },
53
- { title: "Ant Design Pro", value: "max" },
54
- { title: "Vue Simple App", value: "vue-app" }
55
- ],
56
- initial: 0
57
- },
58
- {
59
- type: "select",
60
- name: "npmClient",
61
- message: "Pick Npm Client",
62
- choices: [
63
- { title: "npm", value: "npm" },
64
- { title: "cnpm", value: "cnpm" },
65
- { title: "tnpm", value: "tnpm" },
66
- { title: "yarn", value: "yarn" },
67
- { title: "pnpm", value: "pnpm" }
68
- ],
69
- initial: 4
70
- },
71
- {
72
- type: "select",
73
- name: "registry",
74
- message: "Pick Npm Registry",
75
- choices: [
76
- {
77
- title: "npm",
78
- value: "https://registry.npmjs.org/",
79
- selected: true
80
- },
81
- { title: "taobao", value: "https://registry.npmmirror.com" }
82
- ]
83
- }
84
- ], {
85
- onCancel() {
86
- process.exit(1);
87
+ onCancel() {
88
+ process.exit(1);
89
+ }
87
90
  }
88
- });
91
+ );
89
92
  npmClient = response.npmClient;
90
93
  registry = response.registry;
91
94
  appTemplate = response.appTemplate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-umi",
3
- "version": "4.0.43",
3
+ "version": "4.0.45",
4
4
  "description": "create-umi",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/create-umi#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -25,7 +25,7 @@
25
25
  "test": "umi-scripts jest-turbo"
26
26
  },
27
27
  "dependencies": {
28
- "@umijs/utils": "4.0.43"
28
+ "@umijs/utils": "4.0.45"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
@@ -14,7 +14,7 @@ const CreateForm: React.FC<PropsWithChildren<CreateFormProps>> = (props) => {
14
14
  destroyOnClose
15
15
  title="新建"
16
16
  width={420}
17
- visible={modalVisible}
17
+ open={modalVisible}
18
18
  onCancel={() => onCancel()}
19
19
  footer={null}
20
20
  >
@@ -36,7 +36,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => (
36
36
  bodyStyle={{ padding: '32px 40px 48px' }}
37
37
  destroyOnClose
38
38
  title="规则配置"
39
- visible={props.updateModalVisible}
39
+ open={props.updateModalVisible}
40
40
  footer={submitter}
41
41
  onCancel={() => props.onCancel()}
42
42
  >
@@ -243,7 +243,7 @@ const TableList: React.FC<unknown> = () => {
243
243
 
244
244
  <Drawer
245
245
  width={600}
246
- visible={!!row}
246
+ open={!!row}
247
247
  onClose={() => {
248
248
  setRow(undefined);
249
249
  }}