Closed rafgraph closed 3 years ago
Thanks for the suggestion. I'm unfortunately going to pass on this. There are just so many tools like this and it's hard for me to pick which ones to include as they're all very opinionated in different ways. I also don't particularly agree with the solution here. I personally think packages should not use bundling (transpiling TS is fine though). You should also not use the main
and module
fields, but rather type
and exports
as those are standards.
By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖
⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆
Rollpkg - https://github.com/rafgraph/rollpkg Example package setup to use Rollpkg - https://github.com/rafgraph/rollpkg-example-package
Rollpkg is a zero config build tool to create packages with Rollup and TypeScript. It creates
esm
,cjs
andumd
builds for development and production, and fully supports tree shaking. Default configs are also provided for TypeScript, Prettier, ESLint, and Jest for a complete zero decision setup.