WORKSPACE_MISSING_CONFORMANCE_SCRIPT

All packages must define a conformance script that invokes the Conformance package.
Table of Contents

Conformance is available on Enterprise plans

Conformance requires a script to exist in every workspace in the repository. This makes sure that Conformance rules are running on all code. This test throws an error if a workspace does not define a conformance script in the package.json file.

A workspace contains a package.json file that looks like:

package.json
{
  "name": "test-workspace",
  "scripts": {
    "build": "tsc -b"
  }
}

It does not contain a conformance script, so this check will fail.

Install the @vercel-private/conformance package in this workspace and define a conformance script in the package.json file.

package.json
{
  "name": "test-workspace",
  "scripts": {
    "build": "tsc -b",
    "conformance": "vercel conformance"
  },
  "devDependencies": {
    "@vercel-private/conformance": "^1.0.0"
  }
}
Last updated on July 23, 2024