From 5027d466edccfece02cfaf915db1586d228bfa9d Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Tue, 21 May 2024 15:07:43 -0700 Subject: [PATCH] chore(email): fix build (#2215) * chore(email): fix build * update --- Makefile | 7 ++----- ee/tabby-email/package.json | 5 ++--- turbo.json | 7 ++++++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index db3d39556..2c75a5b07 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,9 @@ fix-ui: pnpm lint:fix update-ui: - cd ee/tabby-ui && pnpm build + pnpm build rm -rf ee/tabby-webserver/ui && cp -R ee/tabby-ui/out ee/tabby-webserver/ui + rm -rf ee/tabby-webserver/email_templates && cp -R ee/tabby-email/out ee/tabby-webserver/email_templates update-db-schema: sqlite3 ee/tabby-db/schema.sqlite ".schema --indent" > ee/tabby-db/schema/schema.sql @@ -16,10 +17,6 @@ update-db-schema: dot -Tsvg schema.dot > ee/tabby-db/schema/schema.svg rm schema.dot -update-email-templates: - cd ee/tabby-email && pnpm export - rm -rf ee/tabby-webserver/email_templates && cp -R ee/tabby-email/out ee/tabby-webserver/email_templates - caddy: caddy run --watch --config ee/tabby-webserver/development/Caddyfile diff --git a/ee/tabby-email/package.json b/ee/tabby-email/package.json index a2a2d23fa..d0c83c0f4 100644 --- a/ee/tabby-email/package.json +++ b/ee/tabby-email/package.json @@ -3,9 +3,8 @@ "version": "0.0.19", "private": true, "scripts": { - "build": "email build", - "dev": "email dev", - "export": "email export" + "build": "email build && email export", + "dev": "email dev" }, "devDependencies": { "react-email": "2.1.3", diff --git a/turbo.json b/turbo.json index f25929da9..6f99ef006 100644 --- a/turbo.json +++ b/turbo.json @@ -5,7 +5,12 @@ "dependsOn": [ "^build" ], - "outputs": ["dist/**", ".next/**", "!.next/cache/**", ".react-email/**", "!.react-email/.next/cache/**"] + "outputs": [ + "out/**", + "dist/**", + ".next/**", + "!.next/cache/**" + ] }, "lint": {}, "lint:fix": {},