Skip to content

Upgrade prod direct deps to latest versions, and migrate bundler from ncc to tsup#384

Draft
DilumAluthge-LLM wants to merge 3 commits intojulia-actions:masterfrom
DilumAluthge-LLM:codex/refresh-deps-and-migrate-tsup
Draft

Upgrade prod direct deps to latest versions, and migrate bundler from ncc to tsup#384
DilumAluthge-LLM wants to merge 3 commits intojulia-actions:masterfrom
DilumAluthge-LLM:codex/refresh-deps-and-migrate-tsup

Conversation

@DilumAluthge-LLM
Copy link
Copy Markdown

@DilumAluthge-LLM DilumAluthge-LLM commented Apr 3, 2026

The main changes in this PR are:

  1. Update every production direct dep to its latest major version.
  2. Update the dep versions in the NPM lockfile (package-lock.json).
  3. Migrate our bundler from ncc to tsup.
  4. Make sure that we correctly bundle runtime dependencies into dist/index.js even if the dependency is ESM-only1.

The chain of logic for this PR looks something like this:

  1. We depend on several @actions/* packages. We currently are not using the latest major versions of these packages. I'd like to upgrade to the latest major version of every @actions/* dep. In fact, as far as I can tell, upgrading these @actions/* deps is required to resolve several Dependabot vulnerability alerts.
  2. The latest major versions of several @actions/* deps are ESM-only1.
  3. Our current bundler (ncc) doesn't work very well with ESM-only packages. Therefore, we need to migrate to a bundler that supports ESM-only packages. I selected tsup based on Codex's suggestion and my positive experience with tsup in a previous project.

Other stuff

One other minor change: We previously had @actions/io listed as a production dep, but it turns out we only use it in the tests, so this PR switches @actions/io from a production dep to a dev dep.

Also, this PR adds an AGENTs.md file.

🤖 Generated by OpenAI Codex.

Footnotes

  1. ESM = ECMAScript Modules. 2

@DilumAluthge DilumAluthge force-pushed the codex/refresh-deps-and-migrate-tsup branch 2 times, most recently from b3ac323 to a7e4f17 Compare April 3, 2026 21:37
@DilumAluthge-LLM DilumAluthge-LLM changed the title [codex] Refresh deps and migrate bundling to tsup [codex] Refresh deps, migrate bundling, and override undici Apr 3, 2026
@DilumAluthge-LLM DilumAluthge-LLM changed the title [codex] Refresh deps, migrate bundling, and override undici Upgrade all production direct deps to their latest major versions, migrate our bundler from ncc to tsup, correctly bundle runtime dependencies into dist/index.js even if the dependency is ESM-only, and override undici (a production indirect dep) to its latest major version Apr 3, 2026
@DilumAluthge DilumAluthge force-pushed the codex/refresh-deps-and-migrate-tsup branch 3 times, most recently from eb9be27 to 8b703ab Compare April 3, 2026 22:46
@DilumAluthge DilumAluthge changed the title Upgrade all production direct deps to their latest major versions, migrate our bundler from ncc to tsup, correctly bundle runtime dependencies into dist/index.js even if the dependency is ESM-only, and override undici (a production indirect dep) to its latest major version Upgrade all production direct deps to their latest major versions, migrate our bundler from ncc to tsup, and override undici (a production indirect dep) to its latest major version Apr 3, 2026
@DilumAluthge DilumAluthge changed the title Upgrade all production direct deps to their latest major versions, migrate our bundler from ncc to tsup, and override undici (a production indirect dep) to its latest major version Upgrade prod direct deps to latest versions, migrate bundler from ncc to tsup, and override undici (a prod indirect dep) to latest major version Apr 3, 2026
@DilumAluthge DilumAluthge force-pushed the codex/refresh-deps-and-migrate-tsup branch from 6440d23 to 7573961 Compare April 4, 2026 00:13
@DilumAluthge
Copy link
Copy Markdown
Member

I have cherry-picked the "override undici to 8.0.0" commit out to #385, and I've removed it from this PR.

@DilumAluthge DilumAluthge changed the title Upgrade prod direct deps to latest versions, migrate bundler from ncc to tsup, and override undici (a prod indirect dep) to latest major version Upgrade prod direct deps to latest versions and migrate bundler from ncc to tsup Apr 4, 2026
@DilumAluthge DilumAluthge changed the title Upgrade prod direct deps to latest versions and migrate bundler from ncc to tsup Upgrade prod direct deps to latest versions,x and migrate bundler from ncc to tsup Apr 4, 2026
@DilumAluthge DilumAluthge changed the title Upgrade prod direct deps to latest versions,x and migrate bundler from ncc to tsup Upgrade prod direct deps to latest versions, and migrate bundler from ncc to tsup Apr 4, 2026
DilumAluthge-LLM and others added 3 commits April 16, 2026 21:34
…grate our bundler from `ncc` to `tsup`, and correctly bundle runtime dependencies into `dist/index.js` even if the dependency is ESM-only

- replace ncc with tsup for the checked-in action bundle
- move @actions/io to devDependencies and update runtime deps to latest
- update Jest ESM handling for the latest @actions packages
- Add repo-specific AGENTS.md guidance
- Bundle runtime dependencies into the action artifact. The latest @actions packages are ESM-only, so leaving them as runtime requires in dist/index.js breaks the CommonJS action entrypoint in CI. Force tsup to inline runtime dependencies so dist/index.js remains a single self-contained CommonJS bundle.

Co-authored-by: OpenAI Codex [GPT-5] <codex@openai.com>
@DilumAluthge DilumAluthge force-pushed the codex/refresh-deps-and-migrate-tsup branch from aa11a61 to 04cd3da Compare April 17, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants