aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-07-28 15:07:57 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-07-28 15:07:57 +0200
commit04fabf115ccea31ac504b06cc51d78423b697f60 (patch)
tree26c21f8822ccd24fce3a80b7361382c8a87d0c96 /package.json
parent45cc0afb734a422ee7765dc5c60dccbcc6721367 (diff)
refactor: services layer, valibot validation, shared CSS utilities, aria labels, and drizzle migrate
- Extract groceries/categories/references services with db injection - Add valibot for form validation and safe numeric id parsing - Fix category delete FK behavior with onDelete: set null + migration - Replace custom migrate.js with drizzle-orm/libsql/migrator - Add shared CSS utility classes in app.css (forms, lists, buttons) - Add aria-pressed and aria-label on interactive elements - Remove redundant app.css imports and unused /stores import - Add integration tests for all services using drizzle migrate helper - Remove smoke test; add db:migrate and db:studio scripts
Diffstat (limited to 'package.json')
-rw-r--r--package.json7
1 files changed, 5 insertions, 2 deletions
diff --git a/package.json b/package.json
index 7c4eacd..03465d0 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,9 @@
"test": "vitest run",
"test:watch": "vitest",
"db:push": "drizzle-kit push",
- "db:generate": "drizzle-kit generate"
+ "db:generate": "drizzle-kit generate",
+ "db:migrate": "node scripts/migrate.js",
+ "db:studio": "drizzle-kit studio"
},
"devDependencies": {
"@sveltejs/adapter-node": "^5.2.12",
@@ -32,6 +34,7 @@
},
"dependencies": {
"@libsql/client": "^0.15.0",
- "drizzle-orm": "^0.44.0"
+ "drizzle-orm": "^0.44.0",
+ "valibot": "^1.4.2"
}
}