TZK-2: pnpm store в .cache/ci, .pnpm-store и .cache вне Biome
На раннере pnpm клал store в рабочую копию, и lint проверял его файлы. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0fb696ce9f
commit
5c21853c9e
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ data/
|
|||||||
*.db-wal
|
*.db-wal
|
||||||
*.db-shm
|
*.db-shm
|
||||||
.cache/
|
.cache/
|
||||||
|
.pnpm-store/
|
||||||
|
|||||||
14
biome.json
14
biome.json
@ -1,7 +1,19 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://biomejs.dev/schemas/2.6.7/schema.json",
|
"$schema": "https://biomejs.dev/schemas/2.6.7/schema.json",
|
||||||
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
||||||
"files": { "includes": ["**", "!dist", "!data", "!openspec", "!.agents", "!.claude", "!.peppa"] },
|
"files": {
|
||||||
|
"includes": [
|
||||||
|
"**",
|
||||||
|
"!dist",
|
||||||
|
"!data",
|
||||||
|
"!openspec",
|
||||||
|
"!.agents",
|
||||||
|
"!.claude",
|
||||||
|
"!.peppa",
|
||||||
|
"!.cache",
|
||||||
|
"!.pnpm-store"
|
||||||
|
]
|
||||||
|
},
|
||||||
"formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineWidth": 100 },
|
"formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineWidth": 100 },
|
||||||
"linter": { "enabled": true, "rules": { "preset": "recommended" } },
|
"linter": { "enabled": true, "rules": { "preset": "recommended" } },
|
||||||
"assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } }
|
"assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } }
|
||||||
|
|||||||
@ -11,6 +11,8 @@ PNPM_VERSION=10.18.0
|
|||||||
root="$(cd "$(dirname "$0")/.." && pwd)"
|
root="$(cd "$(dirname "$0")/.." && pwd)"
|
||||||
cache="$root/.cache/ci"
|
cache="$root/.cache/ci"
|
||||||
export PATH="$cache/pnpm/bin:$cache/node/bin:$PATH"
|
export PATH="$cache/pnpm/bin:$cache/node/bin:$PATH"
|
||||||
|
# Store pnpm — в кэше, а не в рабочей копии (иначе его сканирует Biome).
|
||||||
|
export npm_config_store_dir="${npm_config_store_dir:-$cache/pnpm-store}"
|
||||||
|
|
||||||
node_ok() {
|
node_ok() {
|
||||||
command -v node >/dev/null 2>&1 &&
|
command -v node >/dev/null 2>&1 &&
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user