---
title: WORKSPACE_MISSING_CONFORMANCE_SCRIPT
product: vercel
url: /docs/conformance/rules/WORKSPACE_MISSING_CONFORMANCE_SCRIPT
type: conceptual
prerequisites:
  []
related:
  []
summary: All packages must define a conformance script that invokes the Conformance package.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# WORKSPACE_MISSING_CONFORMANCE_SCRIPT

> **🔒 Permissions Required**: Conformance

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.

## Example

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

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

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

## How to fix

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

```json filename="package.json"
{
  "name": "test-workspace",
  "scripts": {
    "build": "tsc -b",
    "conformance": "vercel conformance"
  },
  "devDependencies": {
    "@vercel-private/conformance": "^1.0.0"
  }
}
```


---

[View full sitemap](/docs/sitemap)
