9 lines
717 B
TypeScript
9 lines
717 B
TypeScript
import type { VerificationPolicy } from "@jbcode/pi-native-hooks/policy";
|
|
const manifests = new Set(["package.json", "bun.lock", "tsconfig.json"]);
|
|
const behavior = (path: string) => /^(extensions|scripts|services|skills|config)\//.test(path) || manifests.has(path);
|
|
const types = (path: string) => /\.tsx?$/.test(path) || manifests.has(path);
|
|
export default { kind: "verification", id: "harness-tools-verification", project: { matches: (project) => project.packageName === "harness-tools" }, requirements: [
|
|
{ id: "tests", command: "bun run test", cwd: "project-root", affects: behavior },
|
|
{ id: "typecheck", command: "bun run typecheck", cwd: "project-root", affects: types },
|
|
] } satisfies VerificationPolicy;
|