create-umi 4.0.3 → 4.0.6
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
|
@@ -17,6 +17,8 @@ exports.default = async ({ cwd, args, }) => {
|
|
|
17
17
|
let npmClient = 'pnpm';
|
|
18
18
|
let registry = 'https://registry.npmjs.org/';
|
|
19
19
|
let appTemplate = 'app';
|
|
20
|
+
const { username, email } = await (0, utils_1.getGitInfo)();
|
|
21
|
+
let author = email && username ? `${username} <${email}>` : '';
|
|
20
22
|
// test ignore prompts
|
|
21
23
|
if (!args.default) {
|
|
22
24
|
const response = await (0, utils_1.prompts)([
|
|
@@ -106,6 +108,7 @@ exports.default = async ({ cwd, args, }) => {
|
|
|
106
108
|
version: version.includes('-canary.') ? version : `^${version}`,
|
|
107
109
|
npmClient,
|
|
108
110
|
registry,
|
|
111
|
+
author,
|
|
109
112
|
},
|
|
110
113
|
questions: args.default ? [] : args.plugin ? pluginPrompts : [],
|
|
111
114
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-umi",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
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.
|
|
28
|
+
"@umijs/utils": "4.0.6"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|