Skip to content

Commit eaa0afe

Browse files
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 configuration
1 parent c70f9aa commit eaa0afe

27 files changed

+5
-151
lines changed

dist/cli.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/cli.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/evaluator.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

dist/evaluator.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/github.d.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

dist/github.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
1+
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

44
/***/ 3191:
@@ -41123,5 +41123,4 @@ exports.VERSION = '5.9.2'; // x-release-please-version
4112341123
/******/ module.exports = __webpack_exports__;
4112441124
/******/
4112541125
/******/ })()
41126-
;
41127-
//# sourceMappingURL=index.js.map
41126+
;

dist/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)