Commit graph

2 commits

Author SHA1 Message Date
jdx
e8a0f70f2f
fix: set ignoreTryCatch: false in rollup commonjs plugin for Windows
minimatch 3.x uses `try { return require('path') } catch (e) {}` to
get the path module, falling back to `{ sep: '/' }`. With rollup's
commonjs plugin, `ignoreTryCatch: true` (the default) leaves
require('path') unconverted inside try blocks. At runtime in the ESM
bundle, require() is unavailable, so the catch fires and minimatch
uses '/' as the path separator — breaking all glob matching on Windows
where paths use backslashes.

Setting ignoreTryCatch: false ensures require('path') is converted to
an ESM import, giving minimatch the correct path.sep ('\\' on Windows).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 17:35:23 +00:00
jdx
45d1740529
chore: migrate from ncc (CJS) to rollup (ESM)
Switch bundler from @vercel/ncc to rollup to support ESM-only
@actions/toolkit v3 packages. This upgrades all @actions/* dependencies
to their latest major versions and adds "type": "module" to package.json.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 17:35:08 +00:00