I want to develop a typescript nodejs solution split into 3 sub project like a csharp solution split into multiple libraries.
I want that each of them has its own pacakge.json
UI project
package.jsonInfrastructure
package.jsonDomain
package.json
Obviously, I want from one project to reference another, for example, ui can reference the infrastructure project
In the package.json I found to reference another package using the syntax file::
"dependencies": {
"infrastrucure": "file:../infrastructure"
},
The main drawbacks I found:
- Compile the dependant projects before running the
ui - The eslint show a warning
Cannot read file on
<solution root>\tsconfig.json
What I want to know is:
- This is the correct approach to split into multiple projects a solution or there are more not considered drawbacks?
- Why eslint looking for tsconfig.json into the root folder?