Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: account for `templates` directory in ARM images (#4992)

Akhil44607513892c
diff --git a/packages/hoppscotch-backend/package.json b/packages/hoppscotch-backend/package.json
index 2d66f311b..6e427efdc 100644
--- a/packages/hoppscotch-backend/package.json
+++ b/packages/hoppscotch-backend/package.json
@@ -7,11 +7,13 @@
"license": "UNLICENSED",
"files": [
"prisma",
- "dist"
+ "dist",
+ "src/mailer/templates"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
+ "postbuild": "mkdir -p dist/mailer && cp -r src/mailer/templates dist/mailer/templates",
"generate-gql-sdl": "cross-env GQL_SCHEMA_EMIT_LOCATION='../../../gql-gen/backend-schema.gql' GENERATE_GQL_SCHEMA=true WHITELISTED_ORIGINS='' nest start",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",