From e6a191838cc4e565bab4a21b7138d94c85117b63 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Mon, 24 Nov 2025 17:07:18 +0100 Subject: [PATCH] core: copy email templates into build --- core/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/package.json b/core/package.json index e56a57f43..93c7431ad 100644 --- a/core/package.json +++ b/core/package.json @@ -15,7 +15,7 @@ "license": "Apache-2.0", "private": true, "scripts": { - "build": "bun esbuild.config.ts", + "build": "bun esbuild.config.ts && mkdirp build/templates/ && ncp src/emails/templates build/templates", "build:bun": "bun build src/index.ts --outdir=build --target=bun --packages=external", "test": "bun test", "test:debug": "bun test --inspect-brk", @@ -53,6 +53,8 @@ "dotenv": "^10.0.0", "graphql-request": "5.0.0", "jest": "27.2.4", + "mkdirp": "^3.0.1", + "ncp": "^2.0.0", "type-graphql": "^1.1.1", "typescript": "^4.9.5" },