-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
47 lines (47 loc) · 1.41 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
{
"name": "@hubspot/webpack-cms-plugins",
"version": "6.2.1",
"description": "Webpack plugins for using with the HubSpot CMS",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/HubSpot/webpack-cms-plugins"
},
"engines": {
"node": ">=10"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@hubspot/local-dev-lib": "2.0.1"
},
"devDependencies": {
"eslint": "7.32.0",
"husky": "^1.3.1",
"lint-staged": "^10.5.4",
"prettier": "^1.19.1"
},
"scripts": {
"lint": "eslint . && prettier --list-different ./**/*.{js,json}",
"prettier:write": "prettier --write ./**/*.{js,json}",
"check-main": "branch=$(git rev-parse --abbrev-ref HEAD) && [ $branch = main ] || (echo 'Error: New release can only be published on main branch' && exit 1)",
"pub": "npm publish --tag latest",
"push": "git push --atomic origin main v$npm_package_version",
"release:major": "yarn check-main && yarn version --major && yarn pub && yarn push",
"release:minor": "yarn check-main && yarn version --minor && yarn pub && yarn push",
"release:patch": "yarn check-main && yarn version --patch && yarn pub && yarn push"
},
"lint-staged": {
"**/*.{js,scss,css}": [
"prettier -l",
"eslint"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}