create-umi 4.6.66 → 4.6.68
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.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/template.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -41,5 +41,5 @@ interface IGeneratorOpts {
|
|
|
41
41
|
args: IArgs;
|
|
42
42
|
defaultData?: IDefaultData;
|
|
43
43
|
}
|
|
44
|
-
declare const _default: ({ cwd, args, defaultData, }: IGeneratorOpts) => Promise<void>;
|
|
45
44
|
export default _default;
|
|
45
|
+
declare function _default({ cwd, args, defaultData, }: IGeneratorOpts): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -288,7 +288,8 @@ async function moveNpmrc(opts) {
|
|
|
288
288
|
async function initGit(opts) {
|
|
289
289
|
const { projectRoot } = opts;
|
|
290
290
|
const isGit = (0, import_fs.existsSync)((0, import_path.join)(projectRoot, ".git"));
|
|
291
|
-
if (isGit)
|
|
291
|
+
if (isGit)
|
|
292
|
+
return;
|
|
292
293
|
try {
|
|
293
294
|
await import_utils.execa.execa("git", ["init"], { cwd: projectRoot });
|
|
294
295
|
} catch {
|
package/dist/template.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare enum ERegistry {
|
|
|
2
2
|
npm = "https://registry.npmjs.com/",
|
|
3
3
|
taobao = "https://registry.npmmirror.com/"
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type UmiTemplate = `@umijs/${string}-template`;
|
|
6
6
|
interface IUnpackTemplateOpts {
|
|
7
7
|
template: UmiTemplate;
|
|
8
8
|
dest: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-umi",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.68",
|
|
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",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"templates"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@umijs/utils": "4.6.
|
|
22
|
+
"@umijs/utils": "4.6.68"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|