Commit eaa0afe
authored
fix: switch to @vercel/ncc for proper dependency bundling (#8)
## Summary
- Replace tsdown with @vercel/ncc to properly bundle all dependencies
- Fixes "Cannot find module '@actions/core'" error when action runs in
GitHub workflows
- Updates lint-staged configuration to work with ncc build process
## Problem
The previous bundler (tsdown) wasn't including node_modules dependencies
in the output, causing the action to fail with module resolution errors
when executed in GitHub Actions environments.
## Solution
Switched to @vercel/ncc which is the standard and recommended bundler
for GitHub Actions. It creates a self-contained JavaScript file with all
dependencies included.
## Test plan
- [x] All existing tests pass (`pnpm run validate`)
- [x] Bundle loads successfully when tested with Node.js
- [x] Bundle contains all required functions from @actions/core and
@actions/github
- [x] Lint-staged hooks work correctly with the new build configuration1 parent c70f9aa commit eaa0afe
File tree
27 files changed
+5
-151
lines changed- dist
- test
27 files changed
+5
-151
lines changedThis file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
41123 | 41123 | | |
41124 | 41124 | | |
41125 | 41125 | | |
41126 | | - | |
41127 | | - | |
| 41126 | + | |
This file was deleted.
0 commit comments