I have project where I have a both the frontend (Angular) and backend server code (NestJS).
In the folder I have separate folders for frontend and server and in both folders separate package.json and node_modules folders
If I go to the frontend folder which holds the Angular project and run "ng build" it clearly also tries to build the type script files which are in the server folder.
Why and how to define that it does not ? I have tried with different directory settings in angular.json and tsconfig.json (and tsconfig.app.json) but it seems it does not help.
This is the error I receive, this is because I have not run npm install in the server folder but I take it this is proof that it tries to compile those files as well.
Thanks, Jani
ERROR in ../../server/src/repository/file.storage.repository.ts:2:50 - error TS2307: Cannot find module 'dir-compare'