chore(ask): configure pnpm and commit hooks
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
22.19.0
|
||||||
+10
-3
@@ -58,7 +58,9 @@
|
|||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"includes": ["tests/**/*.ts"],
|
"includes": [
|
||||||
|
"tests/**/*.ts"
|
||||||
|
],
|
||||||
"linter": {
|
"linter": {
|
||||||
"rules": {
|
"rules": {
|
||||||
"complexity": {
|
"complexity": {
|
||||||
@@ -68,7 +70,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"includes": ["src/index.ts"],
|
"includes": [
|
||||||
|
"src/index.ts"
|
||||||
|
],
|
||||||
"linter": {
|
"linter": {
|
||||||
"rules": {
|
"rules": {
|
||||||
"style": {
|
"style": {
|
||||||
@@ -85,5 +89,8 @@
|
|||||||
"organizeImports": "on"
|
"organizeImports": "on"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"extends": [
|
||||||
|
"ultracite/biome/core"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
extends: ["@commitlint/config-conventional"],
|
||||||
|
};
|
||||||
@@ -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
@@ -6,8 +6,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.4.12",
|
"@biomejs/biome": "2.4.12",
|
||||||
|
"@commitlint/cli": "^19.8.1",
|
||||||
|
"@commitlint/config-conventional": "^19.8.1",
|
||||||
"@types/node": "25.6.0",
|
"@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",
|
"name": "pi-ask",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -15,18 +21,34 @@
|
|||||||
"typecheck": "tsc -p tsconfig.json",
|
"typecheck": "tsc -p tsconfig.json",
|
||||||
"format": "biome format --write .",
|
"format": "biome format --write .",
|
||||||
"lint": "biome lint --write .",
|
"lint": "biome lint --write .",
|
||||||
"check": "biome check --write .",
|
"check": "ultracite check",
|
||||||
"check:ci": "biome ci ."
|
"check:ci": "biome ci .",
|
||||||
|
"fix": "ultracite fix",
|
||||||
|
"prepare": "lefthook install",
|
||||||
|
"commit": "cz",
|
||||||
|
"commitlint": "commitlint"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"engines": {
|
||||||
|
"node": "22.19.x",
|
||||||
|
"pnpm": "10.33.0"
|
||||||
|
},
|
||||||
"packageManager": "pnpm@10.33.0",
|
"packageManager": "pnpm@10.33.0",
|
||||||
|
"config": {
|
||||||
|
"commitizen": {
|
||||||
|
"path": "./node_modules/cz-conventional-changelog"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@mariozechner/pi-agent-core": "0.67.3",
|
"@mariozechner/pi-agent-core": "0.67.3",
|
||||||
"@mariozechner/pi-ai": "0.67.3",
|
"@mariozechner/pi-ai": "0.67.3",
|
||||||
"@mariozechner/pi-tui": "0.67.3",
|
"@mariozechner/pi-tui": "0.67.3",
|
||||||
"@mariozechner/pi-coding-agent": "0.67.3"
|
"@mariozechner/pi-coding-agent": "0.67.3"
|
||||||
}
|
},
|
||||||
|
"ignoredBuiltDependencies": [
|
||||||
|
"lefthook"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+1640
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user