Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
fetch-depth: 0

- name: Install Bun
uses: oven-sh/setup-bun@v2
uses: oven-sh/setup-bun@v2.0.2

- name: Use cached node_modules
uses: actions/cache@v4
uses: actions/cache@v4.3.0
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lock') }}
Expand Down
2 changes: 2 additions & 0 deletions deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dependencies:
bun.sh: ^1.2.21
31 changes: 16 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bun-git-hooks",
"type": "module",
"version": "0.2.19",
"version": "0.3.1",
"description": "A modern, zero dependency tool for managing git hooks in Bun projects.",
"author": "Chris Breuer <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -41,7 +41,11 @@
"git-hooks": "./dist/bin/cli.js",
"bun-git-hooks": "./dist/bin/cli.js"
},
"files": ["README.md", "dist"],
"files": [
"README.md",
"dist",
"scripts"
],
"scripts": {
"build": "bun build.ts && bun run compile",
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/git-hooks",
Expand All @@ -51,16 +55,16 @@
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/git-hooks-windows-x64.exe",
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/git-hooks-darwin-x64",
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/git-hooks-darwin-arm64",
"postinstall": "bunx git-hooks && bun ./scripts/postinstall.ts",
"postinstall": "bun ./scripts/postinstall.ts",
"uninstall": "bun ./scripts/uninstall.ts",
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
"prepublishOnly": "bun --bun run build && bun run compile:all",
"prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip",
"test": "bun test",
"lint": "bunx --bun eslint .",
"lint:fix": "bunx --bun eslint . --fix",
"changelog": "bunx logsmith --verbose",
"changelog:generate": "bunx logsmith --output CHANGELOG.md",
"release": "bun run changelog:generate && bunx bumpx prompt --recursive",
"release": "bunx bumpx prompt --recursive --all",
"dev:docs": "bun --bun vitepress dev docs",
"build:docs": "bun --bun vitepress build docs",
"preview:docs": "bun --bun vitepress preview docs",
Expand All @@ -74,21 +78,18 @@
"zip:darwin-arm64": "zip -j bin/git-hooks-darwin-arm64.zip bin/git-hooks-darwin-arm64"
},
"devDependencies": {
"@stacksjs/bumpx": "^0.1.84",
"@stacksjs/bumpx": "^0.2.1",
"@stacksjs/clarity": "^0.3.23",
"@stacksjs/docs": "^0.70.23",
"@stacksjs/eslint-config": "^4.10.2-beta.3",
"@stacksjs/eslint-config": "^4.14.0-beta.3",
"@stacksjs/gitlint": "^0.1.5",
"@stacksjs/logsmith": "^0.1.18",
"@types/bun": "^1.2.22",
"buddy-bot": "^0.8.9",
"bumpp": "^10.2.3",
"bun-git-hooks": "^0.2.19",
"bun-plugin-dtsx": "^0.21.12",
"bunfig": "^0.10.1",
"@types/bun": "^1.3.0",
"buddy-bot": "^0.9.8",
"bun-plugin-dtsx": "0.21.12",
"bunfig": "^0.15.0",
"cac": "^6.7.14",
"changelogen": "^0.6.2",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
},
"git-hooks": {
"pre-commit": {
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/project_with_auto_restage_disabled/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "test-auto-restage-disabled",
"version": "1.0.0",
"version": "0.3.1",
"devDependencies": {
"bun-git-hooks": "^0.1.0"
"bun-git-hooks": "^0.3.1"
},
"git-hooks": {
"pre-commit": {
Expand Down