Skip to content

nx-monorepo.json ​

An Nx workspace using nx affected inside each check. 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": {
    "invalidateAll": ["package.json", "package-lock.json", "nx.json", "tsconfig*.json"]
  },
  "checks": {
    "format": {
      "command": "npx nx format:check"
    },
    "lint": {
      "command": "npx nx affected -t lint --base=origin/main",
      "paths": ["apps/**", "libs/**"]
    },
    "test": {
      "command": "npx nx affected -t test --base=origin/main",
      "paths": ["apps/**", "libs/**"]
    },
    "build": {
      "command": "npx nx affected -t build --base=origin/main",
      "paths": ["apps/**", "libs/**"]
    }
  }
}

Every option is described in the configuration options.