I am working on creating an npm package that I want to use in another application. During development, I set a path in tsconfig for importing various modules instead of using a relative path. However, when I download my package into the test app, it is unable to resolve the module path.
I believe that changing to a relative path might solve the issue.
In my tsconfig file, I have defined a path like this:
"moduleOne": ["./moduleOne/src/index.ts"]
In the ts file where I need to import moduleOne, I write:
import {helper} from "moduleOne"
When I download the package into my other application, I receive the error message: Module not found: Error: Can't resolve 'moduleOne'