2024-05-02 16:38:23 +00:00
|
|
|
{
|
|
|
|
"name": "setup-hugo",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"description": "",
|
|
|
|
"private": true,
|
|
|
|
"keywords": [],
|
|
|
|
"author": "prskr",
|
|
|
|
"license": "MIT",
|
|
|
|
"engines": {
|
|
|
|
"node": ">=20"
|
|
|
|
},
|
|
|
|
"exports": {
|
|
|
|
".": "./dist/index.js"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"bundle": "npm run format:write && npm run package",
|
|
|
|
"ci-test": "npx jest",
|
|
|
|
"coverage": "npx make-coverage-badge --output-path ./badges/coverage.svg",
|
|
|
|
"format:write": "npx prettier --write .",
|
|
|
|
"format:check": "npx prettier --check .",
|
2024-05-03 13:09:23 +00:00
|
|
|
"lint": "npx eslint . -c ./.forgejo/linters/.eslintrc.yml",
|
2024-05-02 16:38:23 +00:00
|
|
|
"package": "npx ncc build src/index.ts -o dist --source-map --license licenses.txt",
|
|
|
|
"package:watch": "npm run package -- --watch",
|
|
|
|
"test": "npx jest",
|
2024-05-03 13:00:45 +00:00
|
|
|
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package",
|
|
|
|
"postinstall": "npx husky install"
|
2024-05-02 16:38:23 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"{src,__tests__}/**/*.ts": [
|
2024-05-03 14:17:32 +00:00
|
|
|
"npx prettier --check",
|
|
|
|
"npx eslint . -c ./.forgejo/linters/.eslintrc.yml"
|
2024-05-02 16:38:23 +00:00
|
|
|
],
|
|
|
|
"README.md": [
|
|
|
|
"npx doctoc@2.1.0 --github"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"preset": "ts-jest",
|
|
|
|
"verbose": true,
|
|
|
|
"clearMocks": true,
|
|
|
|
"testEnvironment": "node",
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"ts"
|
|
|
|
],
|
|
|
|
"testMatch": [
|
|
|
|
"**/*.test.ts"
|
|
|
|
],
|
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/dist/"
|
|
|
|
],
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.ts$": "ts-jest"
|
|
|
|
},
|
|
|
|
"coverageReporters": [
|
|
|
|
"json-summary",
|
|
|
|
"text",
|
|
|
|
"lcov"
|
|
|
|
],
|
|
|
|
"collectCoverage": true,
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"./src/**"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@actions/core": "^1.10.1",
|
|
|
|
"@actions/exec": "^1.1.1",
|
2024-05-03 12:12:12 +00:00
|
|
|
"@actions/github": "^6.0.0",
|
2024-05-02 16:38:23 +00:00
|
|
|
"@actions/io": "^1.1.3",
|
|
|
|
"@actions/tool-cache": "^2.0.1",
|
|
|
|
"octokit": "^3.2.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@jest/globals": "^29.7.0",
|
|
|
|
"@types/jest": "^29.5.12",
|
|
|
|
"@types/node": "^20.12.7",
|
2024-11-30 03:35:57 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
|
|
"@typescript-eslint/parser": "^8.0.0",
|
2024-05-02 16:38:23 +00:00
|
|
|
"@vercel/ncc": "^0.38.1",
|
|
|
|
"eslint": "^8.57.0",
|
|
|
|
"eslint-plugin-github": "^4.10.2",
|
|
|
|
"eslint-plugin-jest": "^28.3.0",
|
|
|
|
"eslint-plugin-jsonc": "^2.15.1",
|
|
|
|
"eslint-plugin-prettier": "^5.1.3",
|
2024-05-03 13:00:45 +00:00
|
|
|
"husky": "^9.0.11",
|
2024-05-02 16:38:23 +00:00
|
|
|
"jest": "^29.7.0",
|
2024-05-03 13:00:45 +00:00
|
|
|
"lint-staged": "^15.2.2",
|
2024-05-02 16:38:23 +00:00
|
|
|
"make-coverage-badge": "^1.2.0",
|
|
|
|
"nock": "^13.0.10",
|
|
|
|
"prettier": "^3.2.5",
|
|
|
|
"prettier-eslint": "^16.3.0",
|
|
|
|
"ts-jest": "^29.1.2",
|
|
|
|
"typescript": "^5.4.5"
|
|
|
|
}
|
|
|
|
}
|