Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
Try running "prisma generate" explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinrany committed Mar 25, 2021
1 parent 09d7b99 commit 78e81ad
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 13 deletions.
4 changes: 2 additions & 2 deletions persistence/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN npx pnpm --prod --frozen-lockfile install

COPY prisma prisma/
COPY src src/

RUN npm build
RUN npx --no-install prisma generate
RUN npm run esbuild

VOLUME /config/config.json

Expand Down
2 changes: 1 addition & 1 deletion persistence/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"scripts": {
"build": "esbuild src/main.ts --bundle --outfile=dist/main.js --platform=node --target=node14 --minify",
"check": "tsc",
"esbuild": "esbuild src/main.ts --bundle --outfile=dist/main.js --platform=node --target=node14 --minify",
"start": "ts-node --transpile-only src/main.ts",
"test": "tap src/tests/*.ts"
},
Expand Down
6 changes: 3 additions & 3 deletions worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:14-alpine
WORKDIR /app

RUN npm i -g pnpm
COPY package.json pnpm-lock.yaml tsconfig.json ./
RUN pnpm --prod --frozen-lockfile install
RUN npx pnpm --prod --frozen-lockfile install

COPY src src/
RUN npm run esbuild

VOLUME /config/config.json

ENTRYPOINT ["pnpm", "start"]
ENTRYPOINT ["node", "dist/main.js"]
8 changes: 5 additions & 3 deletions worker/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"private": true,
"scripts": {
"start": "ts-node --transpile-only src/main.ts",
"check": "tsc",
"esbuild": "esbuild src/main.ts --bundle --outfile=dist/main.js --platform=node --target=node14 --minify",
"start": "ts-node --transpile-only src/main.ts",
"test": "tap src/tests/*.ts"
},
"dependencies": {
"esbuild": "^0.9.7",
"fastify": "^3.14.0",
"fastify-basic-auth": "^1.0.1",
"fastify-multipart": "^4.0.2",
Expand All @@ -17,7 +19,6 @@
"newtype-ts": "^0.3.4",
"pino-pretty": "^4.7.1",
"sharp": "^0.27.2",
"ts-node": "^9.1.1",
"tslib": "^2.1.0",
"typescript": "^4.2.3"
},
Expand All @@ -27,6 +28,7 @@
"@types/sharp": "^0.27.1",
"@types/tap": "^14.10.3",
"form-data": "^4.0.0",
"tap": "^14.11.0"
"tap": "^14.11.0",
"ts-node": "^9.1.1"
}
}
21 changes: 18 additions & 3 deletions worker/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion worker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"noEmit": true, /* Do not emit outputs. */
"importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
"isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
Expand Down

0 comments on commit 78e81ad

Please sign in to comment.