Skip to content

Commit

Permalink
[v1] chore: update CI to use pnpm (#103)
Browse files Browse the repository at this point in the history
* chore: update ci to use pnpm

* chore(lint): Prettier fix

---------

Co-authored-by: Michael Stramel <michael.stramel@koyfin.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and natemoo-re committed Dec 22, 2023
1 parent 5a1f08f commit 7689723
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions demo/src/content/config.ts
Original file line number Diff line number Diff line change
@@ -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 };
2 changes: 1 addition & 1 deletion packages/core/components.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as Icon } from './lib/Icon.astro'
export { default as Icon } from "./lib/Icon.astro";
4 changes: 2 additions & 2 deletions packages/core/integration.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AstroIntegration } from 'astro';
import { AstroIntegration } from "astro";

export interface AstroIconOptions {
include: Record<string, ['*'] | string[]>
include: Record<string, ["*"] | string[]>;
}

export type Icon = string;
Expand Down

0 comments on commit 7689723

Please sign in to comment.