Skip to content

Commit

Permalink
fix: copy mail template file when pnpm build (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobDu authored Mar 22, 2024
1 parent 66d3f52 commit 6bb7afe
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 46 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ COPY --from=frontend /app/dist /app/public

COPY --from=backend /app/build /app/build

COPY --from=backend /app/src/utils/templates /app/build/utils/templates

EXPOSE 3002

CMD ["sh", "-c", "node --import tsx/esm ./build/index.js"]
6 changes: 4 additions & 2 deletions service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"dev": "tsx watch ./src/index.ts",
"prod": "node --import tsx/esm ./build/index.js",
"prod-node18": "node --loader tsx/esm ./build/index.js",
"build": "pnpm clean && tsc",
"build": "pnpm clean && tsc && pnpm copy",
"copy": "copyfiles -u 1 src/utils/templates/* build",
"clean": "rimraf build",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand Down Expand Up @@ -58,8 +59,9 @@
"@types/nodemailer": "^6.4.14",
"@types/request-ip": "^0.0.41",
"@types/speakeasy": "^2.0.10",
"copyfiles": "^2.4.1",
"eslint": "^8.56.0",
"rimraf": "^4.3.0",
"rimraf": "^5.0.5",
"typescript": "~5.3.3"
}
}
Loading

0 comments on commit 6bb7afe

Please sign in to comment.