sindresorhus / awesome-nodejs

:zap: Delightful Node.js packages and resources
https://node.cool
Creative Commons Zero v1.0 Universal
58.34k stars 5.83k forks source link

Add Rollpkg to Build Tools #1091

Closed rafgraph closed 3 years ago

rafgraph commented 3 years ago

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 and umd 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.

sindresorhus commented 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.