{
  "$schema": "http://json-schema.org/schema",
  "id": "NxWorkspaceNew",
  "title": "Create an empty workspace",
  "type": "object",
  "properties": {
    "name": {
      "description": "The name of the workspace.",
      "type": "string",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the workspace?"
    },
    "style": {
      "description": "The file extension to be used for style files.",
      "type": "string",
      "default": "css"
    },
    "directory": {
      "type": "string",
      "format": "path",
      "description": "The directory name to create the workspace in.",
      "default": ""
    },
    "npmScope": {
      "type": "string",
      "description": "Npm scope for importing libs."
    },
    "defaultBase": {
      "type": "string",
      "description": "Default base branch for affected.",
      "default": "master"
    },
    "skipInstall": {
      "description": "Skip installing dependency packages.",
      "type": "boolean",
      "default": false
    },
    "skipGit": {
      "description": "Skip initializing a git repository.",
      "type": "boolean",
      "default": false,
      "alias": "g"
    },
    "commit": {
      "description": "Initial repository commit information.",
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "email": {
              "type": "string",
              "format": "email"
            },
            "message": {
              "type": "string"
            }
          },
          "required": ["name", "email"]
        }
      ],
      "default": true
    },
    "preset": {
      "description": "What to create in the new workspace",
      "type": "string"
    },
    "appName": {
      "type": "string",
      "description": "Application name."
    },
    "nxCloud": {
      "description": "Connect the workspace to the free tier of the distributed cache provided by Nx Cloud",
      "type": "boolean",
      "default": false
    },
    "nxWorkspaceRoot": {
      "type": "string",
      "description": "Root directory.",
      "hidden": true
    },
    "linter": {
      "description": "The tool to use for running lint checks.",
      "type": "string",
      "enum": ["tslint", "eslint"],
      "default": "eslint"
    },
    "packageManager": {
      "description": "The package manager used to install dependencies.",
      "type": "string",
      "enum": ["npm", "yarn", "pnpm"]
    }
  }
}
