Skip to content

Commit

Permalink
User-service: Fix tsconfig build error
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCwy committed Nov 13, 2023
1 parent fa8dce8 commit f0e66df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion user-service/Dockerfile.userservice-backend
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:18
WORKDIR /userservice
COPY package*.json ./
RUN npm i
COPY tsconfig.json ./
COPY tsconfig.*json ./
WORKDIR /userservice/src
COPY src ./
EXPOSE 3000
Expand Down
3 changes: 1 addition & 2 deletions user-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "",
"main": "src/server.ts",
"scripts": {
"build": "npm run tsc",
"tsc": "tsc",
"build": "tsc --project tsconfig.build.json",
"start:prod": "node build/server.js",
"start:dev": "export NODE_ENV=development; nodemon",
"start:dev-w": "set NODE_ENV=development && nodemon",
Expand Down
8 changes: 8 additions & 0 deletions user-service/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"exclude": [
"**/*.spec.ts",
"**/*.test.ts",
"*.ts"
]
}

0 comments on commit f0e66df

Please sign in to comment.