fix: remove redundant prebuild script (#37)

syncChangelogs() in vite.config.ts already handles copying changelogs
to public/ on dev/build start. The prebuild npm script was redundant
and introduced a platform dependency (cp command).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
medic-bot 2026-03-11 12:03:48 -04:00
parent 4b6b4d96ef
commit 9afe23180f
2 changed files with 1 additions and 2 deletions

View file

@ -141,7 +141,7 @@ La documentation technique est centralisée dans `docs/` :
- `CHANGELOG.fr.md` (français) — traduction
- Catégories : Added/Ajouté, Changed/Modifié, Fixed/Corrigé, Removed/Supprimé
- Format [Keep a Changelog](https://keepachangelog.com/). Le contenu est extrait automatiquement par le CI pour les release notes et affiché dans l'app selon la langue de l'utilisateur.
- The `public/` copies are synced automatically: Vite copies them on `dev`/`build` start (`vite.config.ts`), and the `prebuild` npm script handles standalone builds. No manual sync needed.
- The `public/` copies are synced automatically: Vite copies them on `dev`/`build` start via `syncChangelogs()` in `vite.config.ts`. No manual sync needed.
---

View file

@ -7,7 +7,6 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"prebuild": "cp CHANGELOG.md public/CHANGELOG.md && cp CHANGELOG.fr.md public/CHANGELOG.fr.md",
"preview": "vite preview",
"tauri": "tauri",
"test": "vitest run",