Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
132 lines (132 loc) · 3.9 KB
/
Copy pathpackage.json
File metadata and controls
132 lines (132 loc) · 3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "github-actions-ctrf",
"version": "1.0.25",
"description": "View test results directly within your GitHub workflow summary and Pull Requests",
"main": "index.js",
"scripts": {
"bundle": "npm run format:write && npm run package",
"ci-test": "npx jest",
"test": "npx jest",
"coverage": "npx make-coverage-badge --output-path ./badges/coverage.svg",
"format:write": "npx prettier --write .",
"format:check": "npx prettier --check .",
"lint": "npx eslint . -c ./.github/linters/.eslintrc.yml",
"package": "npx ncc build src/index.ts -o dist --source-map --license licenses.txt && npm run copyfiles",
"copyfiles": "copyfiles -u 2 \"src/reports/*.hbs\" dist/reports && copyfiles -u 2 \"community-reports/**/*.hbs\" dist/community-reports",
"package:watch": "npm run package -- --watch",
"build:npm": "rm -rf dist && tsc && npm run copyfiles",
"all:npm": "npm run format:write && npm run lint && npm run test && npm run build:npm",
"all:action": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package",
"modify-reports": "ts-node scripts/modify-reports.ts"
},
"bin": {
"github-actions-ctrf": "./dist/core/cli.js"
},
"engines": {
"node": ">=20.19.0"
},
"files": [
"dist/",
"README.md"
],
"keywords": [],
"author": "Matthew Thomas",
"license": "MIT",
"jest": {
"preset": "ts-jest",
"verbose": true,
"clearMocks": true,
"testEnvironment": "node",
"moduleFileExtensions": [
"js",
"ts"
],
"testMatch": [
"**/*.test.ts"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/dist/"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"transformIgnorePatterns": [
"node_modules/(?!(ctrf|handlebars-helpers-ctrf|junit-to-ctrf|ai-ctrf|slack-ctrf|teams-ctrf)/)"
],
"moduleNameMapper": {
"^ctrf$": "<rootDir>/src/__mocks__/ctrf.ts",
"^handlebars-helpers-ctrf$": "<rootDir>/src/__mocks__/handlebars-helpers-ctrf.ts",
"^junit-to-ctrf$": "<rootDir>/src/__mocks__/junit-to-ctrf.ts"
},
"reporters": [
"default",
[
"jest-ctrf-json-reporter",
{}
]
],
"coverageReporters": [
"json-summary",
"text",
"lcov"
],
"collectCoverage": true,
"collectCoverageFrom": [
"./src/**",
"!./src/ctrf/core/**"
]
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/adm-zip": "^0.5.6",
"@types/jest": "^29.5.13",
"@types/node": "^20.12.7",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"@vercel/ncc": "^0.38.2",
"copyfiles": "^2.4.1",
"eslint": "^8.57.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"jest-ctrf-json-reporter": "^0.0.9",
"make-coverage-badge": "^1.2.0",
"prettier": "^3.3.3",
"prettier-eslint": "^16.3.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.3"
},
"overrides": {
"handlebars@>=4.0.0 <4.7.10": "^4.7.10",
"brace-expansion@>=4.0.0 <5.0.10": "^5.0.10",
"flatted": ">=3.4.2",
"lodash": ">=4.18.0",
"undici": "^6.28.0",
"uuid": "^11.1.1",
"minimatch@>=9.0.0 <9.0.7": "^9.0.7",
"js-yaml@<3.15.0": "^3.15.0",
"js-yaml@>=4.0.0 <4.3.0": "^4.3.0"
},
"dependencies": {
"@actions/artifact": "^4.0.0",
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.0",
"@octokit/plugin-retry": "^7.2.0",
"@octokit/rest": "^21.1.1",
"@types/adm-zip": "^0.5.7",
"adm-zip": "^0.6.0",
"ansi-to-html": "^0.7.2",
"handlebars": "^4.7.10",
"handlebars-helpers-ctrf": "^0.0.6",
"ai-ctrf": "^0.0.16",
"junit-to-ctrf": "^0.0.14",
"slack-ctrf": "0.0.24",
"teams-ctrf": "^0.0.6",
"yargs": "^17.7.2",
"glob": "^11.0.3"
}
}