Two follow-up fixes from the Task 5 code-quality review: - scripts/generate-plant-hours-template.ts uses fileURLToPath(import.meta.url) instead of __dirname. The project's tsconfig has module: esnext, so the moment the package flips to ESM the original would throw ReferenceError: __dirname is not defined. - src/lib/plant-hours-template.ts documents that the frozen header row is a best-effort request — SheetJS Community Edition silently drops the !freeze property (only Pro emits frozen-pane XML). The function still produces the canonical 13-column workbook, but the doc comment no longer claims a behaviour that doesn't happen. |
||
|---|---|---|
| .. | ||
| migrations | ||
| build-og-image.mjs | ||
| generate-plant-hours-template.ts | ||
| migrate-delivery-notes-ocr.py | ||
| patch-next-dev-blocker.cjs | ||
| pb-bootstrap-schema.py | ||
| pb-relax-rules.py | ||