{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/omletrc.json",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "description": "The schema that the configuration file uses.",
      "const": "https://www.schemastore.org/omletrc.json"
    },
    "include": {
      "type": "array",
      "description": "Filenames or glob patterns that will be included in the scan.",
      "items": { "type": "string" },
      "minItems": 1
    },
    "ignore": {
      "type": "array",
      "description": "Filenames or glob patterns that will be excluded from the scan.",
      "items": { "type": "string" }
    },
    "tsconfigPath": { "$ref": "#/definitions/tsconfigPath" },
    "aliases": { "$ref": "#/definitions/aliases" },
    "exports": { "$ref": "#/definitions/exports" },
    "workspaces": {
      "type": "object",
      "description": "Package-specific configurations if you have a monorepo.",
      "additionalProperties": {
        "type": "object",
        "description": "Package-specific configuration.",
        "properties": {
          "tsconfigPath": { "$ref": "#/definitions/tsconfigPath" },
          "aliases": { "$ref": "#/definitions/aliases" },
          "exports": { "$ref": "#/definitions/exports" }
        },
        "additionalProperties": false
      }
    },
    "hookScript": { "type": "string" }
  },
  "additionalProperties": false,
  "definitions": {
    "tsconfigPath": {
      "type": "string",
      "description": "Path to your tsconfig file."
    },
    "aliases": {
      "type": "object",
      "additionalProperties": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "exports": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        }
      ]
    }
  }
}
