diff --git a/package.json b/package.json index 5f32efb..b6fcf98 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "files": ["README.md", "dist"], "scripts": { - "build": "bun --bun build.ts && bun run compile", + "build": "bun --bun build.ts", "compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/krusty", "compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64", "compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/krusty-linux-x64", @@ -45,13 +45,15 @@ "zip:windows-x64": "zip -j bin/krusty-windows-x64.zip bin/krusty-windows-x64.exe", "zip:darwin-x64": "zip -j bin/krusty-darwin-x64.zip bin/krusty-darwin-x64", "zip:darwin-arm64": "zip -j bin/krusty-darwin-arm64.zip bin/krusty-darwin-arm64", - "lint": "bunx --bun eslint .", - "lint:fix": "bunx --bun eslint . --fix", "fresh": "bunx rimraf node_modules/ bun.lock && bun i", - "changelog": "bunx changelogen --output CHANGELOG.md", "prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip", - "release": "bun run changelog && bunx bumpp package.json --all", "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", + "postinstall": "bunx git-hooks", "dev:docs": "bun --bun vitepress dev docs", "build:docs": "bun --bun vitepress build docs", "preview:docs": "bun --bun vitepress preview docs", @@ -59,22 +61,27 @@ "bench": "bun --bun benchmark/index.ts" }, "devDependencies": { + "@stacksjs/bumpx": "^0.1.17", "@stacksjs/docs": "^0.70.23", "@stacksjs/eslint-config": "^4.14.0-beta.3", + "@stacksjs/gitlint": "^0.1.5", + "@stacksjs/logsmith": "^0.1.8", "@types/bun": "^1.2.20", - "buddy-bot": "^0.8.7", - "bumpp": "^10.2.3", - "bun-plugin-dtsx": "0.9.5", + "buddy-bot": "^0.8.9", + "bun-git-hooks": "^0.2.19", + "bun-plugin-dtsx": "0.21.12", "bunfig": "^0.14.1", - "changelogen": "^0.6.2", - "lint-staged": "^16.1.5", - "simple-git-hooks": "^2.13.1", "typescript": "^5.9.2" }, "overrides": { "unconfig": "0.3.10" }, - "lint-staged": { - "*.{js,ts}": "bunx --bun eslint . --fix" + "git-hooks": { + "pre-commit": { + "staged-lint": { + "*.{js,ts,json,yaml,yml,md}": "bunx --bun eslint --fix" + } + }, + "commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG" } }