Skip to content

Commit

Permalink
build(tsconfig): include only src when building the project (#823)
Browse files Browse the repository at this point in the history
* build: include only src when building the project

* exclude spec files

* fix build after dist folder structure change

---------

Co-authored-by: Jay Quan <[email protected]>
  • Loading branch information
martin-trajanovski and Junjiequan authored Oct 23, 2023
1 parent c687c0f commit 56a9df2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CI/MLZ/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ COPY ./package.json ./package.json

EXPOSE 3000

CMD ["node", "dist/src/main"]
CMD ["node", "dist/main"]
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ COPY ./package.json ./package.json

EXPOSE 3000

CMD ["node", "dist/src/main"]
CMD ["node", "dist/main"]
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
"include": ["src"],
"exclude": ["**/*spec.ts"]
}

0 comments on commit 56a9df2

Please sign in to comment.