-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v1] chore: update CI to use pnpm (#103)
* 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
1 parent
4c69f26
commit 0725cd1
Showing
5 changed files
with
4,883 additions
and
2,557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.