I'm trying to set up a project where there is a need for an angular client with a minimal node server on the backend, using typescript.
Ideally I'd like to have a folder structure similar to
/
/dist : angular client (--prod) files
/server : node js files (created by typescript)
/tests : server-side test scripts
/src/client: angular typescript
/src/server: node typescript
/src/tests: node typescript test scripts
/src/common: common files shared between node & angular (interface defintions, utils etc)
I am really struggling with trying to create a tsconfig.json file for each "folder".
Errors I get include root issues, modules not found etc
The main problems I am getting are to do with the dreaded
"error TS6059: File 'common/interfaces/cell.ts' is not under 'rootDir' 'server/'. 'rootDir' is expected to contain all source files"
When building / compiling the server, is it possible to take the common folder and move it underneath the server folder, so it is found ?
I would have thought that this is a common requirement (and if it isn't, what is the best practice ? ;) )
I would appreciate your help in setting up the correct settings in the appropriate tsconfig.json files