marocchino-sticky-pull-requ.../rollup.config.ts
marocchino aaf617804e
🔖 Version bump (#1658)
* Fix failed ncc build (#1657)

* Initial plan

* Replace @vercel/ncc with esbuild to support @actions/core@3.0.0 (ESM-only)

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

* 📦️ Build

* Replace esbuild with rimraf + rollup for packaging

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

* Remove rollup.config.js build artifact from git tracking

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

* Remove yarn, switch to npm

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
Co-authored-by: marocchino <marocchino@users.noreply.github.com>

* 🔖 Version bump

* 💚 Update condition

* 🔧 Update tsconfig

* Fix ERR_PACKAGE_PATH_NOT_EXPORTED with Node.js v24 and ESM-only @actions packages (#1659)

* Initial plan

* Initial plan for fixing ESM-only @actions packages build failure

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

* Fix build failure: update tsconfig and rollup config for ESM-only @actions packages

Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
2026-03-13 19:20:21 +09:00

18 lines
444 B
TypeScript

// See: https://rollupjs.org/introduction/
import commonjs from "@rollup/plugin-commonjs"
import nodeResolve from "@rollup/plugin-node-resolve"
import typescript from "@rollup/plugin-typescript"
const config = {
input: "src/main.ts",
output: {
exports: "auto",
file: "dist/index.js",
format: "cjs",
sourcemap: true,
},
plugins: [typescript(), nodeResolve({preferBuiltins: true}), commonjs()],
}
export default config