Skip to content

Commit df096b9

Browse files
committed
🎉 feat(app): 更新
1 parent ec3c3c4 commit df096b9

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/common.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,8 @@ export function pkgFromUserAgent(userAgent: string | undefined) {
128128
version: pkgSpecArr[1],
129129
};
130130
}
131+
132+
export interface TemplateOptions {
133+
projectName: string;
134+
framework: string;
135+
}

src/index.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,21 @@ import path from "node:path";
22
import { fileURLToPath } from "node:url";
33

44
import type { CAC } from "cac";
5-
import {
6-
ACTIVATION,
7-
fileIgnore,
8-
FRAMEWORKS,
9-
loggerInfo,
10-
TemplateOptions,
11-
} from "code-genius";
5+
import { ACTIVATION, fileIgnore, loggerInfo } from "code-genius";
126
import enquirer from "enquirer";
137
import fs from "fs-extra";
148

159
import {
1610
emptyDir,
11+
FRAMEWORKS,
1712
generateRandom,
1813
getVariantByFramework,
1914
isEmptyDir,
2015
isValidFramework,
2116
isValidPackageName,
2217
isValidVariant,
2318
pkgFromUserAgent,
19+
TemplateOptions,
2420
toValidPackageName,
2521
} from "./common";
2622

0 commit comments

Comments
 (0)