Skip to content

Commit 8f102de

Browse files
committed
fix: always use . when bump a specific package #4
1 parent 6874c3b commit 8f102de

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
npm run staged
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
'*.js': ['standard --fix']
33
}

main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function lib ({
6969
process.chdir(path)
7070
// We've already cd'd into the directory, so just use . (cur directory)
7171
// This is ultimately passed to `git log` which runs in cwd
72-
commitsOnPath = bumpTo ? undefined : '.'
72+
commitsOnPath = '.'
7373
}
7474

7575
const tagPrefix = getPrefix(prefix)

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"format": "standard --fix .",
99
"prepare": "husky install",
10+
"staged": "lint-staged -c ./lint-staged.config.js",
1011
"test": "vitest"
1112
},
1213
"dependencies": {

0 commit comments

Comments
 (0)