build: cover shared runtime files in format gate

This commit is contained in:
ejclaw
2026-04-11 05:16:15 +09:00
parent f5c3393c32
commit 9237173e43
2 changed files with 4 additions and 8 deletions

View File

@@ -17,8 +17,8 @@
"test": "vitest run",
"typecheck": "tsc --noEmit",
"typecheck:all": "bun run install:runners && bunx tsc --noEmit -p tsconfig.check.json && bunx tsc --noEmit -p runners/shared/tsconfig.json && bunx tsc --noEmit -p runners/agent-runner/tsconfig.json && bunx tsc --noEmit -p runners/codex-runner/tsconfig.json",
"format:fix": "prettier --write \"{src,setup,test,scripts}/**/*.{ts,js}\" \"runners/**/*.{ts,js}\" \"vitest*.ts\"",
"format:check": "prettier --check \"{src,setup,test,scripts}/**/*.{ts,js}\" \"runners/**/*.{ts,js}\" \"vitest*.ts\"",
"format:fix": "prettier --write \"{src,setup,shared,test,scripts}/**/*.{ts,js}\" \"runners/**/*.{ts,js}\" \"vitest*.ts\"",
"format:check": "prettier --check \"{src,setup,shared,test,scripts}/**/*.{ts,js}\" \"runners/**/*.{ts,js}\" \"vitest*.ts\"",
"check": "bun run format:check && bun run typecheck:all && bun run test && bun run build:all",
"prepare": "husky",
"setup": "bun setup/index.ts"

View File

@@ -2,9 +2,7 @@ import { createHash } from 'crypto';
import fs from 'fs';
import path from 'path';
export const VERIFICATION_SNAPSHOT_EXCLUDE_NAMES = new Set([
'node_modules',
]);
export const VERIFICATION_SNAPSHOT_EXCLUDE_NAMES = new Set(['node_modules']);
const VERIFICATION_SNAPSHOT_ROOT_EXCLUDE_NAMES = new Set([
'.git',
@@ -16,9 +14,7 @@ const VERIFICATION_SNAPSHOT_ROOT_EXCLUDE_NAMES = new Set([
'.ejclaw-reviewer-runtime',
]);
const VERIFICATION_SNAPSHOT_ROOT_EXCLUDE_PREFIXES = [
'store.local-backup-',
];
const VERIFICATION_SNAPSHOT_ROOT_EXCLUDE_PREFIXES = ['store.local-backup-'];
export function isVerificationSnapshotExcludedName(name) {
return VERIFICATION_SNAPSHOT_EXCLUDE_NAMES.has(name);