I am trying to publish a npm module. Which has a following folder structure.
[![enter image description here](https://i.stack.imgur.com/HUyr6.png)](https://i.stack.imgur.com/HUyr6.png) 

In my `package.json` it has `"main": "./dist/"` I understand this resolve for `index.js`. But in the dist folder I have individual files named as `string.js`, `class.js`, `dom.js` I am planning to import them as
`import { isValidZipCode } from '@scope/utils/string';` but right now I have to import them as `import { isValidZipCode } from '@scope/utils/dist/string';`

Is there a way I can resolve a folder when I import a module from `node_modules`?

EDIT: Main idea is to import the files as `import { isValidZipCode } from '@scope/utils/string'` when I keep individual files for individual exports.