{"library":"pkg-bundler","title":"pkg-bundler","description":"pkg-bundler is a zero-configuration Rollup bundler for npm packages, pre-configured with Babel, that automatically generates CommonJS and ES module bundles from a single entry point. Version 1.0.0-1 is the current stable release, with no active development observed. It differentiates from similar tools like microbundle or rollup-starter by enforcing a specific project structure (`.babelrc`, `main`/`module` fields) and providing a single CLI command with no configuration files required. However, its dependency on `rollup` and `babel` is opaque, and there is no support for TypeScript or modern bundling needs. Release cadence is low; the package is largely untended.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install pkg-bundler"],"cli":{"name":"pkg-bundler","version":null}},"imports":["Install as dev dependency and use via CLI: `pkg-bundler src/index.js`"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm i -D pkg-bundler\n# .babelrc\ncat > .babelrc << 'EOF'\n{\n  \"presets\": [\n    [\"env\", { \"modules\": false }],\n    \"react\"\n  ]\n}\nEOF\n# package.json (add fields)\ncat package.json | jq '. + {\"main\": \"dist/index.cjs.js\", \"module\": \"dist/index.es.js\", \"scripts\": {\"prepare\": \"pkg-bundler src/index.js\"}}' > package.json\n# src/index.js\nmkdir -p src\necho 'export default function hello() { return \"Hello World\"; }' > src/index.js\nnpm run prepare\n","lang":"javascript","description":"Installs pkg-bundler, configures Babel, sets up package.json fields, creates a minimal source file, and builds dist bundles.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}