You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verified packages/auto-install/src/index.ts is ESM-only (import/export default) with no require/module.exports.
Refactored imports to node: specifiers; confirmed resolveId correctly filters installed from pkg.dependencies plus node:modulebuiltinModules.
Inlined RollupAutoInstallOptions in src/index.ts (with manager?: 'npm'|'yarn'|'pnpm' and test-only commands); removed legacy types/.
Updated packages/auto-install/package.json for ESM-only: "type": "module", exports to ./dist/index.js and ./dist/index.d.ts, engines.node: >=20.19.0, peerDependencies.rollup: >=4.0.0, and scripts using tsc/vitest.
Removed CJS-era build config by deleting rollup.config.mjs; pointed tsconfig.json at ../../.config/tsconfig.plugin.json.
Cleaned tests: verified Vitest config (../../.config/vitest.config.mts) and ESM fixtures (test/fixtures/input.js with import 'node-noop'); removed legacy AVA tests/snapshots.
Aligned TypeScript 5.9 workspace settings; tsc --project tsconfig.json succeeds with moduleResolution: "bundler" from the shared config.
Built ESM artifacts: dist/index.js uses node: imports and default-exports autoInstall; dist/index.d.ts exposes RollupAutoInstallOptions and autoInstall(opts?: RollupAutoInstallOptions): Plugin.
Ran Vitest twice via vitest --config ../../.config/vitest.config.mts run: 5 files, 6 tests passed (0 failures) with expected "installing node-noop..." stdout; noted a non-blocking TypeScript warning about missing ../../.config/tsconfig.base.json inherited by tsconfig.plugin.json.
@CharlieHelps I closed the previous pull request because it was using an older version of you. Please take another crack at this with a new branch and new PR. Don't look at the old branch.
Activity
charliecreates commentedon Oct 29, 2025
Expand this to see my work.
packages/auto-install/src/index.tsis ESM-only (import/export default) with norequire/module.exports.node:specifiers; confirmedresolveIdcorrectly filtersinstalledfrompkg.dependenciesplusnode:modulebuiltinModules.RollupAutoInstallOptionsinsrc/index.ts(withmanager?: 'npm'|'yarn'|'pnpm'and test-onlycommands); removed legacytypes/.packages/auto-install/package.jsonfor ESM-only:"type": "module",exportsto./dist/index.jsand./dist/index.d.ts,engines.node: >=20.19.0,peerDependencies.rollup: >=4.0.0, and scripts usingtsc/vitest.rollup.config.mjs; pointedtsconfig.jsonat../../.config/tsconfig.plugin.json.../../.config/vitest.config.mts) and ESM fixtures (test/fixtures/input.jswithimport 'node-noop'); removed legacy AVA tests/snapshots.tsc --project tsconfig.jsonsucceeds withmoduleResolution: "bundler"from the shared config.dist/index.jsusesnode:imports and default-exportsautoInstall;dist/index.d.tsexposesRollupAutoInstallOptionsandautoInstall(opts?: RollupAutoInstallOptions): Plugin.vitest --config ../../.config/vitest.config.mts run: 5 files, 6 tests passed (0 failures) with expected "installing node-noop..." stdout; noted a non-blocking TypeScript warning about missing../../.config/tsconfig.base.jsoninherited bytsconfig.plugin.json.charliecreates commentedon Oct 29, 2025
Opened PR #1936 to migrate @rollup/plugin-auto-install to ESM-only and align it with the repo’s new pattern.
Changes
Package metadata
TypeScript config
Source (src/index.ts)
Tests
Cleanup
Verification
This is a breaking change (CJS removed); the PR title is marked accordingly. Closes #1935.
shellscape commentedon Feb 16, 2026
@CharlieHelps I closed the previous pull request because it was using an older version of you. Please take another crack at this with a new branch and new PR. Don't look at the old branch.
charliecreates commentedon Feb 16, 2026
Opened PR: #1964
Highlights:
@rollup/plugin-auto-installto ESM-only (v4.0.0) with updatedexports/type: module+tsc-builtdist.