Skip to content

Commit

Permalink
chore(deps): upgrade to Astro 5
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Dec 15, 2024
1 parent 77dd5b7 commit feda777
Show file tree
Hide file tree
Showing 82 changed files with 557 additions and 443 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"fetch:mnb": "tsx ./src/content/quoteRecords/_scrape.ts",
"fetch:mnb": "tsx ./src/data/quoteRecords/_scrape.ts",
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
Expand All @@ -16,12 +16,12 @@
},
"dependencies": {
"@ariakit/react": "0.4.15",
"@astrojs/react": "3.6.3",
"@astrojs/starlight": "0.29.2",
"@astrojs/starlight-tailwind": "2.0.3",
"@astrojs/react": "4.1.0",
"@astrojs/starlight": "0.30.1",
"@astrojs/starlight-tailwind": "3.0.0",
"@astrojs/tailwind": "5.1.3",
"@leeoniya/ufuzzy": "1.0.14",
"astro": "4.16.17",
"astro": "5.0.5",
"clsx": "2.1.1",
"css-homogenizer": "4.1.3",
"react": "18.3.1",
Expand All @@ -32,7 +32,7 @@
},
"devDependencies": {
"@astrojs/check": "0.9.4",
"@types/node": "22.10.1",
"@types/node": "22.10.2",
"@types/react": "18.3.14",
"@types/react-dom": "18.3.2",
"prettier": "3.4.2",
Expand Down
979 changes: 546 additions & 433 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/content/config.ts → src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { docsSchema } from "@astrojs/starlight/schema";
import { glob } from "astro/loaders";
import { defineCollection, z } from "astro:content";

const docs = defineCollection({
type: "content",
loader:
// TODO: Use `docsLoader()` from "@astrojs/starlight/loaders"
glob({ pattern: "[^_]*.mdx", base: "./src/data/docs" }),
schema: docsSchema(),
});

const quoteRecords = defineCollection({
type: "data",
loader: glob({ pattern: "[^_]*.json", base: "./src/data/quoteRecords" }),
schema: z.record(z.string(), z.number()),
});

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/env.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"extends": "astro/tsconfigs/strict",
"exclude": ["dist/**/*"],
"compilerOptions": {
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true
Expand Down

0 comments on commit feda777

Please sign in to comment.