My package.json includes the main
option to set the default file for importing like
import 'my-index' from 'my-module'
However, I would like to break up my-module
into separate files so developers can include them individually with statements like
import 'my-index/another-file' from 'my-module'
.
I'm considering placing another-file.js
in src/another-file.js instead of at the root level of the my-module
repository.
Can this be specified in the package.json configuration?