mirror of
https://github.com/pnpm/action-setup.git
synced 2026-03-17 07:46:13 +08:00
Remove the 9MB bundled pnpm.cjs/worker.js and instead use npm ci with committed package-lock.json files (~5KB) to install a bootstrap pnpm, which then installs the target version with integrity verification via the project's pnpm-lock.yaml. Also switch from ncc to esbuild and modernize to ESM. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
704 B
JSON
26 lines
704 B
JSON
{
|
|
"private": true,
|
|
"type": "module",
|
|
"packageManager": "pnpm@10.32.1",
|
|
"scripts": {
|
|
"build:bundle": "esbuild src/index.ts --bundle --platform=node --target=node24 --format=esm --minify --outfile=dist/index.js --loader:.json=json",
|
|
"build": "pnpm run build:bundle",
|
|
"start": "pnpm run build && sh ./run.sh"
|
|
},
|
|
"dependencies": {
|
|
"@actions/cache": "^4.1.0",
|
|
"@actions/core": "^1.10.1",
|
|
"@actions/exec": "^1.1.1",
|
|
"@actions/glob": "^0.5.0",
|
|
"@types/expand-tilde": "^2.0.2",
|
|
"@types/node": "^22.0.0",
|
|
"expand-tilde": "^2.0.2",
|
|
"yaml": "^2.3.4",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"esbuild": "^0.27.4",
|
|
"typescript": "^5.3.3"
|
|
}
|
|
}
|