Convert to ESM.

Context: https://github.com/actions/typescript-action/pull/969
This commit is contained in:
Fabio Niephaus
2025-09-16 13:20:56 +02:00
committed by Fabio Niephaus
parent 59f089d81e
commit b4c67abb33
35 changed files with 118600 additions and 129021 deletions

View File

@@ -3,6 +3,7 @@
"author": "GraalVM Community",
"description": "GitHub Action for GraalVM",
"version": "1.3.7",
"type": "module",
"private": true,
"repository": {
"type": "git",
@@ -17,6 +18,9 @@
"actions",
"setup"
],
"exports": {
".": "./dist/index.js"
},
"engines": {
"node": ">=20"
},
@@ -26,9 +30,9 @@
"format:check": "npx prettier --check .",
"lint": "npx eslint .",
"package": "npm run package:main && npm run package:cleanup",
"package:main": "npx ncc build src/main.ts -o dist/main",
"package:cleanup": "npx ncc build src/cleanup.ts -o dist/cleanup",
"test": "npx jest",
"package:main": "npx rollup --config rollup.main.config.ts --configPlugin @rollup/plugin-typescript",
"package:cleanup": "npx rollup --config rollup.cleanup.config.ts --configPlugin @rollup/plugin-typescript",
"test": "NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
"all": "npm run format:write && npm run lint && npm run test && npm run package"
},
"license": "UPL",
@@ -48,13 +52,16 @@
},
"devDependencies": {
"@eslint/compat": "^1.3.2",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-typescript": "^12.1.4",
"@types/jest": "^30.0.0",
"@types/node": "^24.4.0",
"@types/semver": "^7.7.1",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.43.0",
"@typescript-eslint/parser": "^8.31.1",
"@vercel/ncc": "^0.38.3",
"eslint": "^9.35.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
@@ -67,8 +74,13 @@
"js-yaml": "^4.1.0",
"prettier": "^3.6.2",
"prettier-eslint": "^16.4.2",
"rollup": "^4.50.2",
"ts-jest": "^29.4.1",
"ts-jest-resolver": "^2.0.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.2"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "*"
}
}