NPM package doesn't work since `dist` folder is ignored

and `main` was changed to the `dist` folder