My project structure very very roughly looks like this:
dist/
- helper.compiled.js
- entrypoint.compiled.js
src/
- helper.js
- entrypoint.js
I was reading the npm publishing guidelines and it says to provide a single index.js file. But is this really necessary? Afterall, my entrypoint.compiled.js can just require helper.compiled.js. What is the benefit of providing a single index.js file?
What is the recommended procedure for publishing a library to npm in this situation? I tried using npm pack, but I don't quite understand what it is doing.