babel-starter-kit
babel-starter-kit copied to clipboard
`package.json` has wrong path for `index.js` at `main`
The template for package.json
defines main
as index.js
, when there's no index.js
file on the root of the project. It's either on src/
or dist/
.
In the tools/build.js file, the package.json file gets rewritten to the dist directory, which I think is the point for distributing the package to npm, and the pointer then is correct at that point ... But yeah, wouldn't work if you're just working with it locally. Optionally, could just do what you have done here, and then change the build.js file to do a replace on dist/index back to 'index' ... I think that's what's going on.
I set in project.json
"main": "dist/index.js"