From ade0a33dec238794aa7ba32fa3d3b09933d49bb4 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 14 Jun 2026 21:17:07 +0200 Subject: [PATCH] chore: fix demo --- demo/astro.config.mjs | 2 +- demo/package.json | 9 ++++++--- demo/src/pages/index.astro | 8 ++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/demo/astro.config.mjs b/demo/astro.config.mjs index 79ad99e..105a56a 100644 --- a/demo/astro.config.mjs +++ b/demo/astro.config.mjs @@ -3,6 +3,6 @@ import { defineConfig } from 'astro/config' // https://astro.build/config export default defineConfig({ image: { - // domains: ['github-readme-stats.vercel.app'], + domains: ['github-readme-stats.vercel.app'], }, }) diff --git a/demo/package.json b/demo/package.json index 7012216..fae6a8f 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,5 +1,5 @@ { - "name": "@example/minimal", + "name": "demo", "type": "module", "version": "0.0.1", "private": true, @@ -11,11 +11,14 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.0.6" + "astro": "^6", + "astro-github-stats": "workspace:*" }, "description": "``` npm create astro@latest -- --template minimal ```", "main": "index.js", - "devDependencies": {}, + "devDependencies": { + "sharp": "^0.35.1" + }, "repository": { "type": "git", "url": "git+https://github.com/ayoayco/astro-github-stats.git" diff --git a/demo/src/pages/index.astro b/demo/src/pages/index.astro index 7d75423..437a44e 100644 --- a/demo/src/pages/index.astro +++ b/demo/src/pages/index.astro @@ -1,5 +1,5 @@ --- -import GithubStats from '../../../' +import GithubStats from 'astro-github-stats' --- @@ -14,13 +14,13 @@ import GithubStats from '../../../'

Astro Github Stats

Account Stats

- +

Account Stats

- +

Account Top Languages

- +

Repository Card