monorepo-package.json
One package of a monorepo, invalidated by the root lockfile. Copy it to verifika.config.json in your project root, adjust the script names and globs, then check the result with npx vfk plan.
json
{
"$schema": "../schemas/verifika.schema.json",
"version": 1,
"changes": {
"base": "origin/main",
"invalidateAll": [
"package.json",
"tsconfig*.json",
"../../package-lock.json",
"../../tsconfig.base.json"
]
},
"checks": {
"lint": { "command": "npm run lint", "paths": ["src/**"] },
"test": { "command": "npm test", "paths": ["src/**", "test/**"] },
"build": { "command": "npm run build", "paths": ["src/**"] },
"audit": { "command": "npm audit --omit=dev --audit-level=high", "always": true }
}
}Every option is described in the configuration options.