batchCooking/packages/date-tools/src/index.ts
Nicolas b930453878 Nouveau package date-tools (Luxon) + contrat jours/repas partagé (step 1/4)
- packages/date-tools: parseDateOnly/formatDateOnly/toDateOnly,
  getWeekStart/addWeeks/buildCalendarMonth, sur Luxon DateTime (UTC)
- packages/shared: WEEK_DAYS/WeekDay, MEALS/Meal (contrat de valeurs
  documenté pour PlanningItemView.weekDay/.meal, pas encore enforcé
  en base), getPlanningByDateSchema (validation de forme de ?date=)
2026-08-17 14:17:21 +02:00

12 lines
616 B
TypeScript

// Public entry point of the date-handling utilities shared between apps/api
// and apps/web — every date computation in the monorepo (parsing/formatting
// `YYYY-MM-DD` values, week/calendar math) goes through Luxon `DateTime` via
// this package rather than hand-rolled `Date` arithmetic or a second,
// differently-behaved date library creeping into one side only.
export * from "./date-only.js";
export * from "./week.js";
// Re-exported so a consumer never needs its own direct `luxon` dependency
// just to type a `DateTime` value passed to/from this package's functions.
export { DateTime } from "luxon";