mirror of
https://github.com/actions/stale.git
synced 2026-08-22 00:23:12 +01:00
- Changed import statements across multiple files to use the .js extension for ES module compatibility. - Refactored test files to utilize jest's unstable_mockModule for mocking core actions. - Removed unnecessary spy instances in tests, replacing them with direct mocked function calls. - Updated TypeScript configuration to target ES2022 and use NodeNext module resolution. - Removed the tsconfig.spec.json file and adjusted the main tsconfig.json to exclude test files.
74 lines
2.4 KiB
JSON
74 lines
2.4 KiB
JSON
{
|
|
"name": "stale-action",
|
|
"version": "11.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Marks old issues and PRs as stale",
|
|
"main": "lib/main.js",
|
|
"scripts": {
|
|
"build": "tsc --project tsconfig.app.json && ncc build lib/main.js",
|
|
"format": "prettier --no-error-on-unmatched-pattern --write \"**/*.{ts,yml,yaml}\"",
|
|
"format-check": "prettier --no-error-on-unmatched-pattern --check \"**/*.{ts,yml,yaml}\"",
|
|
"lint": "eslint \"**/*.ts\"",
|
|
"lint:fix": "eslint \"**/*.ts\" --fix",
|
|
"lint:all": "npm run format-check && npm run lint",
|
|
"lint:all:fix": "npm run format && npm run lint:fix",
|
|
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --runInBand",
|
|
"test:only-errors": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --reporters jest-silent-reporter --silent",
|
|
"test:watch": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --watch --notify --expand",
|
|
"all": "npm run format && npm run lint && npm run build && npm test",
|
|
"all:ci": "npm run format && npm run lint && npm run build && npm run test:only-errors",
|
|
"prerelease": "npm run build",
|
|
"release": "standard-version",
|
|
"release:dry-run": "standard-version --dry-run"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/actions/stale.git"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"node",
|
|
"stale"
|
|
],
|
|
"engines": {
|
|
"node": "24",
|
|
"npm": ">=7.0.0"
|
|
},
|
|
"author": "GitHub",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/cache": "^6.1.0",
|
|
"@actions/core": "^3.0.1",
|
|
"@actions/github": "^9.1.1",
|
|
"@octokit/core": "^7.0.6",
|
|
"@octokit/plugin-retry": "^8.1.0",
|
|
"lodash.deburr": "^4.1.0"
|
|
},
|
|
"overrides": {
|
|
"undici": "6.27.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@jest/globals": "^30.4.1",
|
|
"@types/lodash.deburr": "^4.1.6",
|
|
"@types/node": "^24.13.3",
|
|
"@typescript-eslint/eslint-plugin": "^8.62.1",
|
|
"@typescript-eslint/parser": "^8.62.1",
|
|
"@vercel/ncc": "^0.44.1",
|
|
"ansi-styles": "^6.2.3",
|
|
"eslint": "^10.7.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-jest": "^29.15.4",
|
|
"eslint-plugin-n": "^18.2.1",
|
|
"globals": "^17.7.0",
|
|
"jest": "^30.4.2",
|
|
"jest-silent-reporter": "^0.6.0",
|
|
"prettier": "^3.9.4",
|
|
"standard-version": "^9.5.0",
|
|
"terminal-link": "^5.0.0",
|
|
"ts-jest": "^29.4.11",
|
|
"typescript": "^6.0.3"
|
|
}
|
|
}
|