From 7689723a23419169d8efa1dc73d9d5261768a307 Mon Sep 17 00:00:00 2001 From: Michael Stramel Date: Mon, 5 Jun 2023 20:24:45 -0500 Subject: [PATCH] [v1] chore: update CI to use pnpm (#103) * chore: update ci to use pnpm * chore(lint): Prettier fix --------- Co-authored-by: Michael Stramel Co-authored-by: github-actions[bot] --- demo/src/content/config.ts | 30 +++++++++++++++--------------- packages/core/components.d.ts | 2 +- packages/core/integration.d.ts | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/demo/src/content/config.ts b/demo/src/content/config.ts index c249c656..4bc42abf 100644 --- a/demo/src/content/config.ts +++ b/demo/src/content/config.ts @@ -1,20 +1,20 @@ -import { defineCollection, z } from 'astro:content'; +import { defineCollection, z } from "astro:content"; const blog = defineCollection({ - // Type-check frontmatter using a schema - schema: z.object({ - title: z.string(), - description: z.string(), - // Transform string to Date object - pubDate: z - .string() - .or(z.date()) - .transform((val) => new Date(val)), - updatedDate: z - .string() - .optional() - .transform((str) => (str ? new Date(str) : undefined)), - }), + // Type-check frontmatter using a schema + schema: z.object({ + title: z.string(), + description: z.string(), + // Transform string to Date object + pubDate: z + .string() + .or(z.date()) + .transform((val) => new Date(val)), + updatedDate: z + .string() + .optional() + .transform((str) => (str ? new Date(str) : undefined)), + }), }); export const collections = { blog }; diff --git a/packages/core/components.d.ts b/packages/core/components.d.ts index a9881337..fd91d7a7 100644 --- a/packages/core/components.d.ts +++ b/packages/core/components.d.ts @@ -1 +1 @@ -export { default as Icon } from './lib/Icon.astro' +export { default as Icon } from "./lib/Icon.astro"; diff --git a/packages/core/integration.d.ts b/packages/core/integration.d.ts index d2dfbea4..5fc3ee58 100644 --- a/packages/core/integration.d.ts +++ b/packages/core/integration.d.ts @@ -1,7 +1,7 @@ -import { AstroIntegration } from 'astro'; +import { AstroIntegration } from "astro"; export interface AstroIconOptions { - include: Record + include: Record; } export type Icon = string;