diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-06 13:40:04 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-06 13:40:04 +0900 |
| commit | ee08d3491b487dea16855eec17bb5e0a2dfecd25 (patch) | |
| tree | b8cf58139788b67840e661df07fa12a7781d024a /package.json | |
| parent | 2089b1b2c7ca65923f3ee70b75adf383723cfe0e (diff) | |
Astro 7へ更新し、画像をsrc/へ移行・重複を整理
- astro 6→7 / starlight 0.40→0.42 / sharp更新、markdown-remark導入
- markdownをunified()へ移行、compressHTML:trueで従来の空白を維持
- starlight日本語訳パッチを0.42.5向けに再生成
- 有益な画像をsrc/へ移行しpublic重複を削除、孤立画像を整理
- scripts/optimize-images.mjs を追加(prebuildで自動実行)
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/package.json b/package.json index d81a746..ddbe175 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,9 @@ "scripts": { "dev": "astro dev", "start": "astro dev", + "images:check": "node scripts/optimize-images.mjs", + "images:optimize": "node scripts/optimize-images.mjs --apply", + "prebuild": "node scripts/optimize-images.mjs --apply", "build": "astro build && py -c \"import shutil; shutil.copy('public/.htaccess', 'dist/.htaccess')\" && py removeNullCharacters.py && node scripts/generate-llms-full.mjs", "deploy": "sh deploy.sh", "preview": "astro preview", @@ -12,16 +15,17 @@ "astro": "astro" }, "dependencies": { - "@astrojs/sitemap": "^3.7.3", - "@astrojs/starlight": "^0.40.0", + "@astrojs/markdown-remark": "^7.3.0", + "@astrojs/sitemap": "^3.7.4", + "@astrojs/starlight": "^0.42.5", "@fontsource/noto-sans-jp": "^5.2.9", "@resvg/resvg-js": "^2.6.2", - "astro": "^6.4.6", + "astro": "^7.3.5", "mammoth": "^1.12.0", "playwright": "^1.60.0", "remark-mermaidjs": "^7.0.0", "satori": "^0.26.0", - "sharp": "^0.33.0" + "sharp": "^0.35.5" }, "devDependencies": { "@astrojs/check": "^0.9.9", |
