chore(ask): configure pnpm and commit hooks

This commit is contained in:
Erik Kotsiuba
2026-04-18 21:14:20 +02:00
parent 28659c2dd7
commit 3ec7af2fd8
7 changed files with 1808 additions and 117 deletions
+1
View File
@@ -0,0 +1 @@
22.19.0
+1
View File
@@ -0,0 +1 @@
22.19.0
+10 -3
View File
@@ -58,7 +58,9 @@
},
"overrides": [
{
"includes": ["tests/**/*.ts"],
"includes": [
"tests/**/*.ts"
],
"linter": {
"rules": {
"complexity": {
@@ -68,7 +70,9 @@
}
},
{
"includes": ["src/index.ts"],
"includes": [
"src/index.ts"
],
"linter": {
"rules": {
"style": {
@@ -85,5 +89,8 @@
"organizeImports": "on"
}
}
}
},
"extends": [
"ultracite/biome/core"
]
}
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
};
+17
View File
@@ -0,0 +1,17 @@
pre-commit:
jobs:
- run: npx ultracite fix
stage_fixed: true
prepare-commit-msg:
commands:
commitzen:
interactive: true
run: pnpm exec cz --hook
env:
LEFTHOOK: "0"
commit-msg:
commands:
lint-commit-message:
run: pnpm exec commitlint --edit {1}
+26 -4
View File
@@ -6,8 +6,14 @@
},
"devDependencies": {
"@biomejs/biome": "2.4.12",
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@types/node": "25.6.0",
"typescript": "6.0.2"
"commitizen": "^4.3.1",
"cz-conventional-changelog": "^3.3.0",
"lefthook": "^2.1.6",
"typescript": "6.0.2",
"ultracite": "7.6.0"
},
"name": "pi-ask",
"scripts": {
@@ -15,18 +21,34 @@
"typecheck": "tsc -p tsconfig.json",
"format": "biome format --write .",
"lint": "biome lint --write .",
"check": "biome check --write .",
"check:ci": "biome ci ."
"check": "ultracite check",
"check:ci": "biome ci .",
"fix": "ultracite fix",
"prepare": "lefthook install",
"commit": "cz",
"commitlint": "commitlint"
},
"type": "module",
"private": true,
"engines": {
"node": "22.19.x",
"pnpm": "10.33.0"
},
"packageManager": "pnpm@10.33.0",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"pnpm": {
"overrides": {
"@mariozechner/pi-agent-core": "0.67.3",
"@mariozechner/pi-ai": "0.67.3",
"@mariozechner/pi-tui": "0.67.3",
"@mariozechner/pi-coding-agent": "0.67.3"
}
},
"ignoredBuiltDependencies": [
"lefthook"
]
}
}
+1640
View File
File diff suppressed because it is too large Load Diff