{"repo":"privatenumber/pkgroll","free":true,"listed":false,"github":"https://github.com/privatenumber/pkgroll","clone":"git clone https://github.com/privatenumber/pkgroll.git","description":"📦 Zero-config package bundler for Node.js + TypeScript","language":"TypeScript","stars":1563,"topics":["javascript","bundler","typescript","commonjs","rollup","dts","exports","esm","cjs","declaration"],"license":null,"category":"cli-tools","readme_excerpt":"pkgroll pkgroll is a JavaScript package bundler powered by Rollup that automatically builds your package from entry-points defined in package.json . No config necessary! Write your code in TypeScript/ESM and run pkgroll to get ESM/CommonJS/.d.ts outputs! Features - ✅ package.json#exports to define entry-points - ✅ Dependency externalization - ✅ Minification - ✅ TypeScript support + .d.ts bundling - ✅ Watch mode - ✅ CLI outputs (auto hashbang insertion) Already a sponsor? Join the discussion in the Development repo ! Install Quick setup 1. Setup your project with source files in src and output in dist (configurable). 2. Define package entry-files in package.json . These configurations are for Node.js to determine how to import the package. Pkgroll leverages the same configuration to determine how to build the package. Paths that start with ./dist/ are automatically mapped to files in the ./src/ directory. [!TIP] In addition to package.json , pkgroll also supports pnpm's package.yaml %20and%20package.yaml%20(via%20js%2Dyaml).). 3. Package roll! Usage Entry-points Pkgroll parses package entry-points from package.json by reading properties main , module , types , and exports . The paths in ./dist are mapped to paths in ./src (configurable with the --srcdist flag) to determine bundle entry-points. Wildcard exports Pkgroll supports wildcard patterns in package.json#exports for exporting multiple modules with a single pattern: This automatically bundles all matching source files. Fo","default_branch":null,"files":null,"tree":[],"storefront":"/r/privatenumber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/privatenumber/pkgroll/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}