Skip to content

Commit

Permalink
🐞 fix (MUNify): use correct order for i18n generation in dockerfile
Browse files Browse the repository at this point in the history
branch: main
  • Loading branch information
m1212e committed Sep 4, 2024
1 parent e866f06 commit 026a2d1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Thumbs.db
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

prisma/generated
prisma/generated
src/lib/paraglide
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Thumbs.db
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

prisma/generated
prisma/generated
src/lib/paraglide
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ COPY ./prisma/schema.prisma ./prisma/schema.prisma
RUN bunx prisma generate

COPY . .
# we check for errors
RUN bun run check
# now we can build the app
# the build command generates a few things, such as i18n outputs
# therefore we need to run the build command BEFORE we check for correctness
RUN bun run build
RUN bun run check
# remove all dependencies which are unused
# TODO https://github.com/oven-sh/bun/issues/3605

Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@prisma/client": "^5.19.1",
"@sinclair/typebox": "^0.33.9",
"@sveltejs/kit": "^2.5.25",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.6",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.7",
"autoprefixer": "^10.4.20",
"concurrently": "^8.2.2",
"convert-iso-codes": "^1.0.9",
Expand Down

0 comments on commit 026a2d1

Please sign in to comment.