I am building an npm package.
When a user is using my package, I wish to for them to import the packages with the "@" like this:
import { Package } from "@initial/package"
I added this to my tsconfig.json:
"baseUrl": ".",
"paths": {
"@": ["src"],
"@/*": ["src/*"],
"@initial": ["src/components"]
}
but when I do an import:
import { Package } from "@initial/package";
It's throwing this error: Cannot find module '@initial' or its corresponding type declarations.
I have my src and tsconfig.json in the root.