Skip to content

Commit

Permalink
fix: always use . when bump a specific package #4
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Mar 22, 2023
1 parent 6874c3b commit 8f102de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run staged
2 changes: 1 addition & 1 deletion lint-staged.config.cjs → lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
'*.js': ['standard --fix']
}
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function lib ({
process.chdir(path)
// We've already cd'd into the directory, so just use . (cur directory)
// This is ultimately passed to `git log` which runs in cwd
commitsOnPath = bumpTo ? undefined : '.'
commitsOnPath = '.'
}

const tagPrefix = getPrefix(prefix)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"format": "standard --fix .",
"prepare": "husky install",
"staged": "lint-staged -c ./lint-staged.config.js",
"test": "vitest"
},
"dependencies": {
Expand Down

0 comments on commit 8f102de

Please sign in to comment.