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.
This commit is contained in:
Maurice
2026-10-30 22:21:00 +01:00
parent 3e860dd9ca
commit 7f2a3b6039
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
node_modules
client/node_modules
server/node_modules
shared/node_modules
client/dist
shared/dist
data
@@ -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. */