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>
This commit is contained in:
Copilot 2026-03-13 19:05:34 +09:00 committed by GitHub
parent 3e142bf422
commit 0702f7c3c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35457 additions and 44 deletions

35489
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -7,12 +7,12 @@ import typescript from "@rollup/plugin-typescript"
const config = {
input: "src/main.ts",
output: {
esModule: true,
exports: "auto",
file: "dist/index.js",
format: "es",
format: "cjs",
sourcemap: true,
},
plugins: [typescript({outDir: "dist"}), nodeResolve({preferBuiltins: true}), commonjs()],
plugins: [typescript(), nodeResolve({preferBuiltins: true}), commonjs()],
}
export default config

View file

@ -8,8 +8,8 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"lib": ["ES2022"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"newLine": "lf",
"noImplicitAny": true,
"noUnusedLocals": true,