-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
53 lines (53 loc) · 1.39 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
{
"name": "@hkdobrev/run-if-changed",
"version": "0.6.3",
"description": "Run a command if a file changes via Git hooks",
"bin": "run-if-changed.js",
"exports": "./run-if-changed.js",
"repository": "https://github.com/hkdobrev/run-if-changed",
"author": "Haralan Dobrev <[email protected]>",
"license": "MIT",
"private": false,
"type": "module",
"engines": {
"node": ">=18 <23"
},
"dependencies": {
"cosmiconfig": "^9.0.0",
"execa": "^9.5.2",
"listr2": "^8.2.5",
"micromatch": "^4.0.8",
"string-argv": "^0.3.2"
},
"devDependencies": {
"eslint": "^9.17.0",
"eslint-plugin-json": "^4.0.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0"
},
"scripts": {
"test": "eslint .",
"preversion": "npm run test",
"postversion": "git push --atomic && gh release create --generate-notes $npm_package_version",
"run-if-changed": "./run-if-changed.js",
"prepare": "husky"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"post-commit": "npm run run-if-changed",
"post-checkout": "npm run run-if-changed",
"post-merge": "npm run run-if-changed",
"post-rewrite": "npm run run-if-changed"
}
},
"run-if-changed": {
"package-lock.json": [
"npm install --prefer-offline --no-audit --no-fund"
]
},
"lint-staged": {
"*.{js,json}": "eslint --fix"
}
}