Skip to content

Commit bf23a8d

Browse files
committed
fix: StartTemplate type incorrectly referenced VANILLA_TEMPLATES array
1 parent ac28905 commit bf23a8d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/create/src/create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export async function create(args: CreateVanillaArgs, js: boolean, isStart: fals
55
export async function create(args: CreateStartArgs, js: boolean, isStart: true): Promise<void>;
66
export async function create(args: CreateVanillaArgs | CreateStartArgs, js: boolean, isStart: boolean) {
77
if (isStart) {
8-
return createStart(args, js);
8+
return createStart(args as CreateStartArgs, js);
99
} else {
10-
return createVanilla(args, js);
10+
return createVanilla(args as CreateVanillaArgs, js);
1111
}
1212
}

packages/create/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const START_TEMPLATES = [
7777
"with-vitest",
7878
"experiments",
7979
] as const;
80-
export type StartTemplate = (typeof VANILLA_TEMPLATES)[number];
80+
export type StartTemplate = (typeof START_TEMPLATES)[number];
8181

8282
export const getTemplatesList = async (isStart: boolean) => {
8383
if (isStart) {

0 commit comments

Comments
 (0)