Skip to content

Commit ba2610b

Browse files
build: update deps to clean up yarn audit (#212)
* build: update deps to clean up yarn audit * build: configure latest husky
1 parent 5304aed commit ba2610b

File tree

4 files changed

+1291
-5024
lines changed

4 files changed

+1291
-5024
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- v1-dependencies-
2828
- run: yarn install
2929
- run: yarn build
30-
- run: npx semantic-release
30+
- run: npx semantic-release@17.4.5
3131
workflows:
3232
version: 2
3333
test_and_release:

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn lint-staged

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,26 @@
1111
"prettier:check": "prettier --list-different \"src/**/*.{ts,tsx}\"",
1212
"prettier:write": "prettier --write \"src/**/*.{ts,tsx}\"",
1313
"test": "yarn build && mocha",
14-
"prepack": "check-for-leaks",
15-
"prepush": "check-for-leaks",
16-
"semantic-release": "semantic-release"
14+
"semantic-release": "semantic-release",
15+
"prepare": "husky install"
1716
},
1817
"author": {
1918
"name": "Samuel Attard",
2019
"homepage": "https://www.samuelattard.com"
2120
},
2221
"license": "MIT",
2322
"devDependencies": {
24-
"@continuous-auth/semantic-release-npm": "2.0.0",
25-
"@electron/docs-parser": "^1.0.0",
23+
"@continuous-auth/semantic-release-npm": "^3.0.0",
24+
"@electron/docs-parser": "^1.0.1",
2625
"@types/debug": "^4.1.4",
2726
"@types/fs-extra": "^5.0.5",
2827
"@types/lodash": "^4.14.123",
2928
"@types/minimist": "^1.2.0",
3029
"chai": "^4.2.0",
31-
"check-for-leaks": "^1.2.0",
32-
"husky": "^2.1.0",
33-
"mocha": "^6.1.4",
30+
"husky": "^8.0.2",
31+
"lint-staged": "^13.0.4",
32+
"mocha": "^10.1.0",
3433
"prettier": "^1.17.0",
35-
"semantic-release": "^17.4.7",
3634
"typescript": "^3.4.5"
3735
},
3836
"dependencies": {
@@ -55,5 +53,8 @@
5553
"dist",
5654
"README.md",
5755
"base"
58-
]
56+
],
57+
"lint-staged": {
58+
"*.{js,ts}": "prettier --write"
59+
}
5960
}

0 commit comments

Comments
 (0)