Repository navigation
v1.3.2 — measurementUnit now optional (non-breaking)
Bug fix
Root cause: measurementUnit was introduced in v1.3.0 as a required field in SiteConfig. Downstream installations running pnpm update-site received the new type definition but their existing content/config.ts (which update-site never touches) lacked the field, causing a TS2741 type error and aborting the update.
Fix:
lib/config/types.ts—measurementUnitis now optional (measurementUnit?: "metric" | "imperial")lib/utils/units.ts—resolveMeasurementUnitfalls back to"metric"when the field is absent
No action required for downstream sellers — pnpm update-site will now complete successfully without any changes to content/config.ts. Sellers who want a unit system other than the default "metric" can still set measurementUnit: "imperial" in their config.