Skip to content

Commit 211ba74

Browse files
committed
fix: code review
1 parent 5b834e8 commit 211ba74

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/cli/tests/__snapshots__/create-tutorial.test.ts.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ exports[`create and eject a project 1`] = `
206206
"src/components/LoginButton.tsx",
207207
"src/components/Logo.astro",
208208
"src/components/MainContainer.astro",
209+
"src/components/MetaTags.astro",
209210
"src/components/MobileContentToggle.astro",
210211
"src/components/NavCard.astro",
211212
"src/components/NavWrapper.tsx",
@@ -307,7 +308,9 @@ exports[`create and eject a project 1`] = `
307308
"src/utils/content/files-ref.ts",
308309
"src/utils/content/squash.ts",
309310
"src/utils/logger.ts",
311+
"src/utils/logo.ts",
310312
"src/utils/nav.ts",
313+
"src/utils/publicAsset.ts",
311314
"src/utils/routes.ts",
312315
"src/utils/url.ts",
313316
"src/utils/workspace.ts",

packages/types/src/schemas/common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ export type TerminalSchema = z.infer<typeof terminalSchema>;
208208
export type EditorSchema = z.infer<typeof editorSchema>;
209209

210210
export const webcontainerSchema = commandsSchema.extend({
211+
meta: metaTagsSchema.optional(),
212+
211213
previews: previewSchema
212214
.optional()
213215
.describe(
@@ -287,7 +289,6 @@ export const webcontainerSchema = commandsSchema.extend({
287289

288290
export const baseSchema = webcontainerSchema.extend({
289291
title: z.string().describe('The title of the part, chapter, or lesson.'),
290-
meta: metaTagsSchema.optional(),
291292
slug: z
292293
.string()
293294
.optional()

0 commit comments

Comments
 (0)