#!/bin/sh set -eu DIST_DIR="dist" SRC="../../packages/core/src/modules/cv-template/templates" # tsup bundles src/main.ts to dist/main.js. The bundled cv-template.seed.ts # reads templates from `join(__dirname, "templates")` at module-init time, # so even though the worker never calls seed(), it crashes at boot if # dist/templates/*.hbs / *.css don't exist. Mirrors the equivalent step # in apps/api/scripts/post-build.sh. mkdir -p "${DIST_DIR}/templates" cp "$SRC"/* "${DIST_DIR}/templates/"