I am currently working on a straightforward lerna project structure as shown below:
Project
|
+-- packages
| |
| +-- shared
| | |
| | +-- src
| | |
| | +-- index.ts
| | +-- someDir
| |
| +-- usesShared
|
+
In my index.ts file, I have exports like:
export * from "./someDir";
However, when importing a class from someDir in the "usesShared" class, I find myself having to include /src at the end of the import statement:
import {GreatClass} from "myShared/src";
As someone new to TypeScript, JavaScript, and lerna, this approach feels incorrect. It seems like it should be simpler:
import {GreatClass} from "myShared";
Could anyone offer guidance on how to address this issue? Is this related to lerna configuration or am I overlooking something in the package.json file?