{"_id":"@ayan4m1/rollup-plugin-auto-external","_rev":"4-75e53a23ddba4003854bb457e07e7e34","name":"@ayan4m1/rollup-plugin-auto-external","dist-tags":{"latest":"2.3.2"},"versions":{"2.2.1":{"name":"@ayan4m1/rollup-plugin-auto-external","version":"2.2.1","keywords":["rollup","plugin","external","auto","dependencies","peerDependencies"],"author":{"name":"Steven Benisek","email":"steven.benisek@gmail.com"},"license":"MIT","_id":"@ayan4m1/rollup-plugin-auto-external@2.2.1","maintainers":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"homepage":"https://github.com/ayan4m1/rollup-plugin-auto-external","bugs":{"url":"https://github.com/ayan4m1/rollup-plugin-auto-external/issues"},"dist":{"shasum":"5109b4240b2c29d44452af0e9076299f4d9b4d2c","tarball":"https://registry.npmjs.org/@ayan4m1/rollup-plugin-auto-external/-/rollup-plugin-auto-external-2.2.1.tgz","fileCount":4,"integrity":"sha512-9FzX+RnNGUlKUbuP7N4t+k7VEi4N6cNu93y7C4SVUU7pQJUOxcN2uVtvXU55fcmQMiEL7zUSZpMO6xRECmgAVg==","signatures":[{"sig":"MEYCIQDIDaTyOWxgpc6ipN+FJHgeK0RKAzYbqkiMS3t9kdidugIhAP0FqXqv5zPSRGhdeS86bzM+6RlTOhBsr//d13+G4nck","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6603},"main":"index.js","config":{"commitizen":{"path":"@commitlint/cz-commitlint"}},"engines":{"node":">=18"},"gitHead":"44243cb6fc7d99282a52d941d37b73fa4d06c6bd","scripts":{"test":"npx jest --modulePaths=__fixtures__/node_modules","prepare":"husky"},"_npmUser":{"name":"ayan4m1","email":"andrew@bulletlogic.com"},"repository":{"url":"git+https://github.com/ayan4m1/rollup-plugin-auto-external.git","type":"git"},"_npmVersion":"10.9.3","description":"Rollup plugin to automatically exclude package.json dependencies and peerDependencies from your bundle","directories":{},"_nodeVersion":"22.18.0","dependencies":{"semver":"5.7.2","builtins":"^5.1.0","read-pkg":"^3.0.0","safe-resolve":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","husky":"^9.1.7","eslint":"^9.34.0","globals":"^16.3.0","prettier":"^3.6.2","@eslint/js":"^9.34.0","commitizen":"^4.3.1","commitlint":"^19.8.1","@babel/core":"^7.28.3","lint-staged":"^16.1.5","semantic-release":"^24.2.7","@babel/eslint-parser":"^7.28.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import-x":"^4.16.1","eslint-plugin-prettier":"^5.5.4","@commitlint/cz-commitlint":"^19.8.1","eslint-import-resolver-node":"^0.3.9","@commitlint/config-conventional":"^19.8.1"},"peerDependencies":{"rollup":"2.x || 3.x || 4.x"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-auto-external_2.2.1_1756302201057_0.8876947825969361","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@ayan4m1/rollup-plugin-auto-external","version":"2.3.0","keywords":["rollup","plugin","external","auto","dependencies","peerDependencies"],"author":{"name":"Steven Benisek","email":"steven.benisek@gmail.com"},"license":"MIT","_id":"@ayan4m1/rollup-plugin-auto-external@2.3.0","maintainers":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"contributors":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"homepage":"https://github.com/ayan4m1/rollup-plugin-auto-external","bugs":{"url":"https://github.com/ayan4m1/rollup-plugin-auto-external/issues"},"dist":{"shasum":"ce2222911501ae33a8f27a36a26d57b91afb1e64","tarball":"https://registry.npmjs.org/@ayan4m1/rollup-plugin-auto-external/-/rollup-plugin-auto-external-2.3.0.tgz","fileCount":4,"integrity":"sha512-Dz0bgj24ePg94fFyFTKe6mmwYakau2Tboir/bFTOmrolsiQQ/PezMHspwOm4YHcIY1rxKZVEg+HfbSXd8Ejs8w==","signatures":[{"sig":"MEYCIQC1svU9HDyZRz/QU3+Mdn4J77qzuUBPponEX8DhwGWTrAIhAJRN29yhawdX4SvrsapiS732E+VHFI9T3VF6uIfXd9ww","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6874},"type":"module","config":{"commitizen":{"path":"@commitlint/cz-commitlint"}},"module":"index.js","engines":{"node":">=18"},"gitHead":"617c530ec62dfc97e13c0315999dcf1c571f6bba","scripts":{"test":"npx jest --modulePaths=__fixtures__/node_modules","prepare":"husky"},"_npmUser":{"name":"ayan4m1","email":"andrew@bulletlogic.com"},"repository":{"url":"git+https://github.com/ayan4m1/rollup-plugin-auto-external.git","type":"git"},"_npmVersion":"10.9.3","description":"Rollup plugin to automatically exclude package.json dependencies and peerDependencies from your bundle","directories":{},"_nodeVersion":"22.19.0","dependencies":{"semver":"^7.7.2","builtins":"^5.1.0","inquirer":"9","read-pkg":"^9.0.1","safe-resolve":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"yarn@4.9.4","devDependencies":{"jest":"24.9.0","husky":"^9.1.7","eslint":"^9.34.0","globals":"^16.3.0","prettier":"^3.6.2","@eslint/js":"^9.34.0","commitizen":"^4.3.1","commitlint":"^19.8.1","@babel/core":"^7.28.3","lint-staged":"^16.1.6","semantic-release":"^24.2.7","@babel/eslint-parser":"^7.28.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import-x":"^4.16.1","eslint-plugin-prettier":"^5.5.4","@commitlint/cz-commitlint":"^19.8.1","eslint-import-resolver-node":"^0.3.9","@commitlint/config-conventional":"^19.8.1"},"peerDependencies":{"rollup":"2.x || 3.x || 4.x"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-auto-external_2.3.0_1757001104693_0.3719419037751617","host":"s3://npm-registry-packages-npm-production"}},"2.3.1":{"name":"@ayan4m1/rollup-plugin-auto-external","version":"2.3.1","keywords":["rollup","plugin","external","auto","dependencies","peerDependencies"],"author":{"name":"Steven Benisek","email":"steven.benisek@gmail.com"},"license":"MIT","_id":"@ayan4m1/rollup-plugin-auto-external@2.3.1","maintainers":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"contributors":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"homepage":"https://github.com/ayan4m1/rollup-plugin-auto-external","bugs":{"url":"https://github.com/ayan4m1/rollup-plugin-auto-external/issues"},"dist":{"shasum":"54faeec45de6a45dc9393fd2ffe37fbe8563f2b3","tarball":"https://registry.npmjs.org/@ayan4m1/rollup-plugin-auto-external/-/rollup-plugin-auto-external-2.3.1.tgz","fileCount":4,"integrity":"sha512-6u/ef9ouFNL/fkvYz+M96hWsgfKSpYiQca4CMhGPFHtLbAiEbSFsbYE3P7zH7E2FXUl02J1z6m1Y/aR6qRtssg==","signatures":[{"sig":"MEUCIQC+TumKymn2AZxAxUJai28b78SVtt2uTeJ8wahca66WpAIgUQe5J4IIBT/BFbmir5uvz4lO0DErJ6UtZ322CepmhK4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6864},"main":"index.js","config":{"commitizen":{"path":"@commitlint/cz-commitlint"}},"engines":{"node":">=18"},"gitHead":"ea3a45bb7248125be1a579d4c2393dd049ce2fc9","scripts":{"test":"npx jest --modulePaths=__fixtures__/node_modules","prepare":"husky"},"_npmUser":{"name":"ayan4m1","email":"andrew@bulletlogic.com"},"repository":{"url":"git+https://github.com/ayan4m1/rollup-plugin-auto-external.git","type":"git"},"_npmVersion":"10.9.3","description":"Rollup plugin to automatically exclude package.json dependencies and peerDependencies from your bundle","directories":{},"_nodeVersion":"22.19.0","dependencies":{"semver":"^7.7.2","builtins":"^5.1.0","inquirer":"9","read-pkg":"^9.0.1","safe-resolve":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"yarn@4.9.4","devDependencies":{"jest":"24.9.0","husky":"^9.1.7","eslint":"^9.34.0","globals":"^16.3.0","prettier":"^3.6.2","@eslint/js":"^9.34.0","commitizen":"^4.3.1","commitlint":"^19.8.1","@babel/core":"^7.28.3","lint-staged":"^16.1.6","semantic-release":"^24.2.7","@babel/eslint-parser":"^7.28.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import-x":"^4.16.1","eslint-plugin-prettier":"^5.5.4","@commitlint/cz-commitlint":"^19.8.1","eslint-import-resolver-node":"^0.3.9","@commitlint/config-conventional":"^19.8.1"},"peerDependencies":{"rollup":"2.x || 3.x || 4.x"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-auto-external_2.3.1_1757001319211_0.7665958533505091","host":"s3://npm-registry-packages-npm-production"}},"2.3.2":{"name":"@ayan4m1/rollup-plugin-auto-external","version":"2.3.2","description":"Rollup plugin to automatically exclude package.json dependencies and peerDependencies from your bundle","main":"index.js","scripts":{"prepare":"husky","test":"npx jest --modulePaths=__fixtures__/node_modules"},"config":{"commitizen":{"path":"@commitlint/cz-commitlint"}},"keywords":["rollup","plugin","external","auto","dependencies","peerDependencies"],"author":{"name":"Steven Benisek","email":"steven.benisek@gmail.com"},"contributors":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"homepage":"https://github.com/ayan4m1/rollup-plugin-auto-external","repository":{"type":"git","url":"git+https://github.com/ayan4m1/rollup-plugin-auto-external.git"},"license":"MIT","engines":{"node":">=18"},"devDependencies":{"@babel/core":"^7.28.3","@babel/eslint-parser":"^7.28.0","@commitlint/config-conventional":"^19.8.1","@commitlint/cz-commitlint":"^19.8.1","@eslint/js":"^9.34.0","commitizen":"^4.3.1","commitlint":"^19.8.1","eslint":"^9.34.0","eslint-config-prettier":"^10.1.8","eslint-import-resolver-node":"^0.3.9","eslint-plugin-import-x":"^4.16.1","eslint-plugin-prettier":"^5.5.4","globals":"^16.3.0","husky":"^9.1.7","jest":"24.9.0","lint-staged":"^16.1.6","prettier":"^3.6.2","semantic-release":"^24.2.7"},"peerDependencies":{"rollup":"2.x || 3.x || 4.x"},"publishConfig":{"access":"public"},"dependencies":{"builtins":"^5.1.0","inquirer":"9","read-pkg":"^9.0.1","safe-resolve":"^1.0.0","semver":"^7.7.2"},"packageManager":"yarn@4.9.4","_id":"@ayan4m1/rollup-plugin-auto-external@2.3.2","gitHead":"7dab8967079522e70a2be80a9c659a5d14e4e797","bugs":{"url":"https://github.com/ayan4m1/rollup-plugin-auto-external/issues"},"_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-KT30JYuSe0xS4fYJ7QxFbpVa8x8ohXuQCaVgzqJSn2Kd8cgXTIHC44OsQF5eXGQ6KMvEnZvNHbXL38ikowTHDw==","shasum":"e323fcb8bd3698933ae4489604f96806840b7634","tarball":"https://registry.npmjs.org/@ayan4m1/rollup-plugin-auto-external/-/rollup-plugin-auto-external-2.3.2.tgz","fileCount":4,"unpackedSize":6879,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHZ4Socp0oM5sr9snqxcd6GXbrvJ06CBhhoJaWFRaO4jAiEAoIGEsjKg1zHN1nr5eKIis2ZJaSFw2C6LUFJLQhkGr6M="}]},"_npmUser":{"name":"ayan4m1","email":"andrew@bulletlogic.com"},"directories":{},"maintainers":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rollup-plugin-auto-external_2.3.2_1757001449561_0.7898573176659018"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-27T13:43:20.980Z","modified":"2025-09-04T15:57:29.903Z","2.2.1":"2025-08-27T13:43:21.286Z","2.3.0":"2025-09-04T15:51:44.873Z","2.3.1":"2025-09-04T15:55:19.384Z","2.3.2":"2025-09-04T15:57:29.748Z"},"bugs":{"url":"https://github.com/ayan4m1/rollup-plugin-auto-external/issues"},"author":{"name":"Steven Benisek","email":"steven.benisek@gmail.com"},"license":"MIT","homepage":"https://github.com/ayan4m1/rollup-plugin-auto-external","keywords":["rollup","plugin","external","auto","dependencies","peerDependencies"],"repository":{"type":"git","url":"git+https://github.com/ayan4m1/rollup-plugin-auto-external.git"},"description":"Rollup plugin to automatically exclude package.json dependencies and peerDependencies from your bundle","contributors":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"maintainers":[{"name":"ayan4m1","email":"andrew@bulletlogic.com"}],"readme":"# @ayan4m1/rollup-plugin-auto-external\n\n> [Rollup](https://rollupjs.org/) plugin to automatically exclude package.json dependencies and peerDependencies from your bundle.\n\n## Install\n\n```bash\nnpm install --save-dev @ayan4m1/rollup-plugin-auto-external\n```\n\n## Usage\n\n### Example `rollup.config.js`\n\n```js\nimport autoExternal from '@ayan4m1/rollup-plugin-auto-external';\n\nexport default {\n  input: 'index.js',\n  plugins: [autoExternal()]\n};\n```\n\n### Example `rollup.config.js` with options\n\n```js\nimport path from 'path';\nimport autoExternal from '@ayan4m1/rollup-plugin-auto-external';\n\nexport default {\n  input: 'index.js',\n  plugins: [\n    autoExternal({\n      builtins: false,\n      dependencies: true,\n      packagePath: path.resolve('./packages/module/package.json'),\n      peerDependencies: false\n    })\n  ]\n};\n```\n\n### Example `rollup.config.js` with [external](https://github.com/rollup/rollup/wiki/JavaScript-API#external)\n\n`rollup-plugin-auto-external` does not overwrite the [external](https://github.com/rollup/rollup/wiki/JavaScript-API#external) option. The two can happily coexist.\n\n```js\nimport autoExternal from '@ayan4m1/rollup-plugin-auto-external';\n\nexport default {\n  input: 'index.js',\n  external: (id) => id.includes('babel-runtime'),\n  plugins: [autoExternal()]\n};\n```\n\n### Example `rollup.config.js` with per format options\n\n```js\nimport autoExternal from '@ayan4m1/rollup-plugin-auto-external';\n\nexport default ['es', 'umd'].map((format) => ({\n  input: 'index.js',\n  plugins: [\n    autoExternal({\n      dependencies: format === 'es'\n    })\n  ]\n}));\n```\n\n## Options\n\n### `builtins`\n\n`boolean`|`string`: defaults to `true`. Add all Node.js builtin modules (in the running version) as externals. Specify a `string` value (e.g., `'6.0.0'`) to add all builtin modules for a _specific version_ of Node.js.\n\nRollup will complain if `builtins` is present, and the build target is a browser. You may want [rollup-plugin-node-builtins](https://npm.im/package/rollup-plugin-node-builtins).\n\n### `dependencies`\n\n`boolean`: defaults to `true`.\n\n### `packagePath`\n\n`string`: defaults to `process.cwd()`. Path to a package.json file or its directory.\n\n### `peerDependencies`\n\n`boolean`: defaults to `true`.\n","readmeFilename":"README.md"}