Hi, I am working on a npm package where I need to use exports to create an import from sub folder.
This is how my package.json looks and I removed main, types key from the json as I am using the exports.
For some reason my exports is not working and when I import any component from the package I see Cannot find module 'uikit' or its corresponding type declarations.
Do I need to make any adjustments in my ts config to make the exports work?
{
"name": "uikit",
"version": "0.4.4",
"description": "",
"homepage": "https://github.com/JohnVersus/nimbleuikit",
"files": [
"build"
],
"exports": {
".": {
"import": "./build/index.js",
"require": "./build/index.js",
"types": "./build/index.d.ts"
},
"./utils": {
"import": "./build/utils/index.js",
"require": "./build/utils/index.js",
"types": "./build/utils/index.d.ts"
}
},
...
}