Refactor extension.sh to 3 scripts Update dependencies Minor fixes in cache.ts and tests Improve get_api_version in cache.sh Improve logs Use @actions/cache to cache dependencies Refactor linux.sh Refactor Node.js code Do not setup dependencies for old PHP Remove duplicate dependency extensions in linux Bump version to 1.6.0
57 lines
1.5 KiB
JSON
57 lines
1.5 KiB
JSON
{
|
|
"name": "cache-extensions",
|
|
"version": "1.6.0",
|
|
"private": false,
|
|
"description": "Cache PHP extensions in GitHub Actions",
|
|
"main": "lib/cache.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"lint": "eslint **/*.ts --cache",
|
|
"format": "prettier --write **/*.ts && git add .",
|
|
"format-check": "prettier --check **/*.ts",
|
|
"release": "ncc build -o dist && git add -f dist/",
|
|
"test": "jest"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/shivammathur/cache-extensions.git"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"php",
|
|
"extension",
|
|
"cache"
|
|
],
|
|
"author": "shivammathur",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/cache": "^1.0.7",
|
|
"@actions/core": "^1.4.0",
|
|
"@actions/exec": "^1.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^26.0.23",
|
|
"@types/node": "^15.14.0",
|
|
"@typescript-eslint/eslint-plugin": "^4.28.1",
|
|
"@typescript-eslint/parser": "^4.28.1",
|
|
"@vercel/ncc": "^0.28.6",
|
|
"eslint": "^7.29.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-import": "^2.23.4",
|
|
"eslint-plugin-jest": "^24.3.6",
|
|
"eslint-plugin-prettier": "^3.4.0",
|
|
"husky": "^4.3.8",
|
|
"jest": "^27.0.6",
|
|
"jest-circus": "^27.0.6",
|
|
"prettier": "^2.3.2",
|
|
"ts-jest": "^27.0.3",
|
|
"typescript": "^4.3.5"
|
|
},
|
|
"husky": {
|
|
"skipCI": true,
|
|
"hooks": {
|
|
"pre-commit": "npm run format && npm run lint && npm run test && npm run build && npm run release"
|
|
}
|
|
}
|
|
}
|