diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dab7905..62ff12e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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') }} diff --git a/deps.yaml b/deps.yaml new file mode 100644 index 0000000..2d291bd --- /dev/null +++ b/deps.yaml @@ -0,0 +1,2 @@ +dependencies: + bun.sh: ^1.2.21 diff --git a/package.json b/package.json index f51ab57..6cfdb36 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "MIT", @@ -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", @@ -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", @@ -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/clarity": "^0.3.23", + "@stacksjs/bumpx": "^0.2.2", + "@stacksjs/clarity": "^0.3.24", "@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": { diff --git a/test/fixtures/project_with_auto_restage_disabled/package.json b/test/fixtures/project_with_auto_restage_disabled/package.json index bdd4d0d..18a9d8b 100644 --- a/test/fixtures/project_with_auto_restage_disabled/package.json +++ b/test/fixtures/project_with_auto_restage_disabled/package.json @@ -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": {