forked from ybiquitous/npm-audit-fix-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
144 lines (144 loc) · 3.65 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
137
138
139
140
141
142
143
144
{
"private": true,
"name": "npm-audit-fix-action",
"version": "6.2.0",
"description": "A GitHub Action for `npm audit fix`",
"author": "Masafumi Koba",
"license": "MIT",
"keywords": [
"GitHub",
"Actions",
"JavaScript"
],
"repository": "ybiquitous/npm-audit-fix-action",
"engines": {
"node": "20",
"npm": "10"
},
"type": "module",
"main": "lib/index.js",
"scripts": {
"prepare": "husky",
"postprepare": "npm run build",
"build": "esbuild lib/index.js --outfile=dist/index.cjs --bundle --platform=node --packages=bundle",
"pretest": "npm run lint",
"test": "node --test",
"test:watch": "node --test --watch",
"test:coverage": "node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=test.lcov",
"lint": "npm-run-all --print-label --silent --parallel lint:*",
"lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"lint:types:watch": "npm run lint:types -- --watch",
"lint:commit": "commitlint --from HEAD~10",
"lint:styles": "npm run prettier -- --check",
"lint:styles:fix": "npm run prettier -- --write",
"prettier": "prettier --cache .",
"format": "npm-run-all --print-label --silent --parallel lint:*:fix",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"clean": "git clean -dx --force --exclude=node_modules --exclude=.husky"
},
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.0",
"hosted-git-info": "^8.0.2"
},
"devDependencies": {
"@tsconfig/strictest": "^2.0.5",
"@types/hosted-git-info": "^3.0.5",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"esbuild": "^0.24.2",
"eslint": "^8.57.0",
"eslint-config-ybiquitous": "^21.1.0",
"remark-preset-ybiquitous": "^0.4.4",
"typescript": "^5.7.2",
"ybiq": "^17.4.0"
},
"lint-staged": {
"!(dist)/**/*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
"!(dist/**|**/*.snap|.husky/**)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail"
},
"standard-version": {
"sign": false,
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
},
"remarkConfig": {
"plugins": [
"remark-preset-ybiquitous"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
1,
"always",
300
],
"header-max-length": [
1,
"always",
150
]
}
},
"eslintConfig": {
"root": true,
"extends": [
"ybiquitous/node"
],
"ignorePatterns": [
"coverage",
"dist",
"tmp"
],
"reportUnusedDisableDirectives": true,
"rules": {
"max-lines-per-function": "warn",
"max-statements": [
"warn",
20
],
"import/no-internal-modules": [
"error",
{
"allow": [
"**/utils/*",
"**/fixtures/*"
]
}
]
},
"overrides": [
{
"files": [
"**/*.ts"
],
"extends": [
"ybiquitous/typescript"
],
"parserOptions": {
"project": "tsconfig.json"
}
},
{
"files": [
"**/*.test.*"
],
"rules": {
"node/no-unpublished-import": "off"
}
}
]
}
}