generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
129 lines (129 loc) · 3.26 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
{
"private": true,
"name": "npm-diff-action",
"version": "1.6.0",
"description": "`npm diff` Action",
"author": "Masafumi Koba",
"license": "MIT",
"repository": "ybiquitous/npm-diff-action",
"keywords": [
"github",
"actions",
"npm",
"diff",
"dependency"
],
"type": "module",
"engines": {
"node": "22",
"npm": ">=10"
},
"scripts": {
"prepare": "husky",
"pretest": "npm run lint",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"test:watch": "npm --ignore-scripts test -- --watch",
"test:coverage": "npm --ignore-scripts test -- --coverage",
"test:docker": "DOCKER_BUILDKIT=1 docker build -t npm-diff-action:dev . && docker run --rm npm-diff-action:dev && docker rmi npm-diff-action:dev",
"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:styles": "npm run prettier -- --check",
"lint:styles:fix": "npm run prettier -- --write",
"lint:commit": "commitlint --from HEAD~10",
"prettier": "prettier --cache .",
"format": "npm-run-all --print-label --silent --parallel lint:*:fix",
"clean": "git clean -dx --force --exclude=node_modules --exclude=.husky",
"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"
},
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.0"
},
"devDependencies": {
"@tsconfig/strictest": "^2.0.5",
"eslint": "^8.57.1",
"eslint-config-ybiquitous": "^21.1.0",
"eslint-plugin-jest": "^28.10.0",
"jest": "^29.7.0",
"remark-preset-ybiquitous": "^0.4.4",
"typescript": "^5.7.2",
"ybiq": "^17.4.0"
},
"lint-staged": {
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
"!(**/*.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
]
}
},
"eslintConfig": {
"root": true,
"extends": [
"ybiquitous/node",
"plugin:jest/recommended"
],
"ignorePatterns": [
"coverage",
"dist",
"tmp"
],
"reportUnusedDisableDirectives": true,
"rules": {
"dot-notation": [
"error",
{
"allowPattern": "NODE_ENV"
}
],
"max-lines-per-function": [
"error",
{
"max": 100
}
],
"max-statements": [
"error",
{
"max": 20
}
],
"import/no-internal-modules": [
"error",
{
"allow": [
"**/lib/*"
]
}
]
}
}
}