From 7f2a3b603950459bd7a65c251e164eb62b0821c2 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 30 Oct 2026 22:21:00 +0100 Subject: [PATCH] planner: keep REFRESH_FIELDS inside its module; docker: leave shared/node_modules out of the build context A checkout where npm install ran once carried shared/node_modules into the image build, and its stale packages broke the client build with a vite that lacked vite/internal. --- .dockerignore | 1 + client/src/components/Planner/placeRefresh.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 72a0b6b6a..3be9434e6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,7 @@ node_modules client/node_modules server/node_modules +shared/node_modules client/dist shared/dist data diff --git a/client/src/components/Planner/placeRefresh.ts b/client/src/components/Planner/placeRefresh.ts index 0f99f1f6d..8510ae4e6 100644 --- a/client/src/components/Planner/placeRefresh.ts +++ b/client/src/components/Planner/placeRefresh.ts @@ -3,7 +3,7 @@ import type { PlaceFormData } from './PlaceFormModal.helpers'; import { cleanWeek, weekFromPeriods, writeWeek } from './placeHours'; /** The details a saved place can take over from a fresh lookup. */ -export const REFRESH_FIELDS = ['website', 'phone', 'email', 'opening_hours'] as const; +const REFRESH_FIELDS = ['website', 'phone', 'email', 'opening_hours'] as const; export type RefreshField = (typeof REFRESH_FIELDS)[number]; /** One field where the lookup says something else than the place holds now. */