I am currently using Webstorm to work on a larger project which is made up of smaller typescript projects.
The directory structure is something like this:
| ├-┬ src
| | └- MyModule.ts
| └-┬ dist
| ├- MyModule.js
| └- MyModule.d.ts
Core/src contains my module where Core/dist contains my build.
When I auto-import a module on Web/src/WebComponent.tsx it auto-imports as @myApp/dist/MyModule But if I alt+enter on the import it says it's going to import from @myApp/src/MyModule
This is what my TSConfig paths look like (in the clients folder):
I also tried this:
I'm assuming webstorm uses tsconfig for finding imports but I'm still unsure. When I compile using tsc it seems to resolve the imports correctly (If I manually change the automatic dist imports too src)
Any ideas on how to fix this auto import?