generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
148 lines (148 loc) · 3.78 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
145
146
147
148
{
"private": true,
"name": "npm-audit-fix-action",
"version": "6.1.2",
"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_OPTIONS=--experimental-vm-modules jest --testTimeout 30000",
"test:watch": "npm --ignore-scripts test -- --watch",
"test:coverage": "npm --ignore-scripts test -- --coverage",
"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.10.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.0",
"hosted-git-info": "^7.0.2"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@tsconfig/strictest": "^2.0.5",
"@types/hosted-git-info": "^3.0.5",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"esbuild": "^0.23.1",
"eslint": "^8.57.0",
"eslint-config-ybiquitous": "^21.1.0",
"eslint-plugin-jest": "^28.8.3",
"jest": "^29.7.0",
"remark-preset-ybiquitous": "^0.4.4",
"typescript": "^5.6.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",
"plugin:jest/recommended"
],
"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"
}
}
]
}
}