setup-python/package.json
bexnoss 50cf258fbc Add "build-npm" script
This script can be used to build @actions/setup-python when it was
installed as a dependency in another action.

Add dependency:
`npm install actions/setup-python#v2`

Automatically build on install:
```
"scripts": {
  "postinstall": "npm run build-npm --prefix node_modules/setup-python"
}
```

Install depending action as usual:
`npm ci` or `npm install`

No further steps necessary, @actions/setup-python is built automatically
in the "postinstall" step of installation.
2022-04-11 14:21:36 +02:00

53 lines
1.5 KiB
JSON

{
"name": "setup-python",
"version": "3.1.0",
"private": true,
"description": "Setup python action",
"main": "dist/index.js",
"scripts": {
"build": "ncc build -o dist/setup src/setup-python.ts && ncc build -o dist/cache-save src/cache-save.ts",
"build-npm": "npm ci && node -e \"try{require('fs').rmdirSync('lib',{recursive:true})}catch(e){}\" && tsc --declaration --declarationMap",
"format": "prettier --write \"{,!(node_modules)/**/}*.ts\"",
"format-check": "prettier --check \"{,!(node_modules)/**/}*.ts\"",
"release": "ncc build -o dist/setup src/setup-python.ts && ncc build -o dist/cache-save src/cache-save.ts && git add -f dist/",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/actions/setup-python.git"
},
"keywords": [
"actions",
"node",
"setup"
],
"author": "GitHub",
"license": "MIT",
"dependencies": {
"@actions/cache": "^2.0.0",
"@actions/core": "^1.2.3",
"@actions/exec": "^1.1.0",
"@actions/glob": "^0.2.0",
"@actions/io": "^1.0.2",
"@actions/tool-cache": "^1.5.5",
"semver": "^7.1.3"
},
"devDependencies": {
"@types/jest": "^27.0.2",
"@types/node": "^16.11.25",
"@types/semver": "^7.1.0",
"@zeit/ncc": "^0.22.0",
"husky": "^7.0.2",
"jest": "^27.2.5",
"jest-circus": "^27.2.5",
"prettier": "^2.0.2",
"ts-jest": "^27.0.5",
"typescript": "^4.2.3"
},
"husky": {
"skipCI": true,
"hooks": {
"pre-commit": "npm run build && npm run format-check"
}
}
}