diff --git a/.dockerignore b/.dockerignore index 28e2caa51..4a93b252f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -20,4 +20,4 @@ frontend/.env #backend backend/src/credentials/*.json backend/.env -backend/build +backend/dist diff --git a/.eslintignore b/.eslintignore index 37c1ee398..9ca212079 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,3 @@ -backend/build +backend/dist backend/__migration__ docker \ No newline at end of file diff --git a/backend/package.json b/backend/package.json index d4cf9884b..c53dcd8a2 100644 --- a/backend/package.json +++ b/backend/package.json @@ -9,7 +9,7 @@ "watch": "tsc --build --watch", "clean": "tsc --build --clean", "ts-check": "tsc --noEmit", - "start": "npm run build && node ./build/server.js", + "start": "npm run build && node ./dist/server.js", "test": "vitest run", "test-coverage": "vitest run --coverage", "dev": "concurrently \"tsx watch --clear-screen=false ./src/server.ts\" \"tsc --preserveWatchOutput --noEmit --watch\" \"npx eslint-watch \"./src/**/*.ts\"\"", diff --git a/backend/tsconfig.json b/backend/tsconfig.json index e38d278a5..45c6de452 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@monkeytype/typescript-config/base.json", "compilerOptions": { - "outDir": "build", + "outDir": "dist", "target": "ES6", "noImplicitAny": false, "strictFunctionTypes": false, diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index 312cb387a..7afae26dd 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -20,7 +20,7 @@ RUN npm run build RUN npm install --install-strategy=nested --omit=dev --workspace=backend --ignore-scripts ## to build directory -WORKDIR /app/backend/build +WORKDIR /app/backend/dist ## logs RUN mkdir logs diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index d34a8b0d8..95edb8ec6 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -43,7 +43,7 @@ services: # read_only: true - type: bind source: ./backend-configuration.json - target: /app/backend/build/backend-configuration.json + target: /app/backend/dist/backend-configuration.json read_only: true depends_on: monkeytype-redis: