create-umi 4.0.0-rc.14 → 4.0.0-rc.15
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 +4 -13
- package/package.json +2 -2
- package/templates/app/tsconfig.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
const utils_1 = require("@umijs/utils");
|
|
13
4
|
const path_1 = require("path");
|
|
@@ -21,13 +12,13 @@ const testData = {
|
|
|
21
12
|
npmClient: 'pnpm',
|
|
22
13
|
registry: 'https://registry.npmjs.org/',
|
|
23
14
|
};
|
|
24
|
-
exports.default = ({ cwd, args, }) =>
|
|
15
|
+
exports.default = async ({ cwd, args, }) => {
|
|
25
16
|
const [name] = args._;
|
|
26
17
|
let npmClient = 'pnpm';
|
|
27
18
|
let registry = 'https://registry.npmjs.org/';
|
|
28
19
|
// test ignore prompts
|
|
29
20
|
if (!args.default) {
|
|
30
|
-
const response =
|
|
21
|
+
const response = await (0, utils_1.prompts)([
|
|
31
22
|
{
|
|
32
23
|
type: 'select',
|
|
33
24
|
name: 'npmClient',
|
|
@@ -99,9 +90,9 @@ exports.default = ({ cwd, args, }) => __awaiter(void 0, void 0, void 0, function
|
|
|
99
90
|
},
|
|
100
91
|
questions: args.default ? [] : args.plugin ? pluginPrompts : [],
|
|
101
92
|
});
|
|
102
|
-
|
|
93
|
+
await generator.run();
|
|
103
94
|
if (!args.default) {
|
|
104
95
|
// install
|
|
105
96
|
(0, utils_1.installWithNpmClient)({ npmClient, cwd: target });
|
|
106
97
|
}
|
|
107
|
-
}
|
|
98
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-umi",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.15",
|
|
4
4
|
"description": "create-umi",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/create-umi#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "umi-scripts jest-turbo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@umijs/utils": "4.0.0-rc.
|
|
28
|
+
"@umijs/utils": "4.0.0-rc.15"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|