generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
136 lines (136 loc) · 3.94 KB
/
package.json
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
133
134
135
136
{
"version": "0.1.2",
"name": "fta-github-action",
"description": "GitHub Action Fast TypeScript Analyzer (FTA) CLI",
"private": true,
"homepage": "https://github.com/exiguus/fta-github-action/",
"repository": {
"type": "git",
"url": "git+https://github.com/exiguus/fta-github-action/.git"
},
"bugs": {
"url": "https://github.com/exiguus/fta-github-action/issues"
},
"keywords": [
"actions",
"FTA",
"Fast TypeScript Analyzer",
"Analyzer",
"CLI",
"GitHub",
"GitHub Actions",
"TypeScript",
"Static Analysis",
"Static Code Analysis"
],
"exports": {
".": "./dist/index.js"
},
"engines": {
"node": ">=20"
},
"scripts": {
"dev": "npm run package:watch",
"bundle": "npm run package",
"ci-test": "npx jest",
"coverage": "npx make-coverage-badge --output-path ./badges/coverage.svg",
"format": "npm run format:write",
"format:write": "npx prettier . --write",
"format:check": "npx prettier . --check",
"lint:eslint": "npx eslint . -c ./.github/linters/.eslintrc.yml",
"lint:markdownlint": "npx markdownlint --config ./.github/linters/.markdown-lint.yml . --ignore-path ./.markdownlintignore",
"lint": "npm run lint:eslint && npm run lint:markdownlint",
"lint:fix:eslint": "npx eslint . -c ./.github/linters/.eslintrc.yml --fix",
"lint:fix:markdownlint": "npx markdownlint --config ./.github/linters/.markdown-lint.yml . --fix --ignore-path ./.markdownlintignore",
"lint:fix": "npm run lint:fix:eslint && npm run lint:fix:markdownlint",
"package": "npx ncc build src/index.ts --license licenses.txt",
"package:watch": "npm run package -- --watch",
"test": "export GITHUB_WORKSPACE=$(pwd) && npm run test:unit && npm run test:output",
"test:unit": "npx jest",
"test:output": "export GITHUB_WORKSPACE=$(pwd) && node dist/index.js >/dev/null && diff output.json __mocks__/output.json || exit 1 && echo 'test failed'",
"all": "npm run format && npm run lint && npm run test && npm run coverage && npm run package",
"prepare": "husky"
},
"author": {
"name": "Simon Gattner",
"url": "https://www.gattner.name/",
"mastodon": "https://toot.community/@exiguus"
},
"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"
},
"coverageReporters": [
"json-summary",
"text",
"lcov"
],
"collectCoverage": true,
"collectCoverageFrom": [
"./src/**"
]
},
"lint-staged": {
"*.@(ts|tsx|js|jsx|mjs|cjs)": [
"npm run lint:fix:eslint",
"npm run format:write"
],
"*.@(md|mdx|json|yml)": [
"npm run lint:fix:markdownlint",
"npm run format:write"
]
},
"dependencies": {
"@actions/core": "^1.10.1",
"fta-cli": "^2.0.0"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/prompt-cli": "^19.5.0",
"@types/jest": "^29.5.14",
"@types/node": "^20.14.9",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.3",
"eslint": "^8.57.1",
"eslint-plugin-github": "^5.1.4",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.1.7",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"lint-staged": "^15.2.11",
"make-coverage-badge": "^1.2.0",
"markdownlint-cli": "^0.43.0",
"prettier": "^3.4.2",
"prettier-eslint": "^16.3.0",
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
},
"overrides": {
"@eslint/compat": {
"eslint": "^8.57.1"
},
"eslint-plugin-github": {
"eslint": "^8.57.1"
}
}
}