{
  "$schema": "https://json-schema.org/schema",
  "$id": "NxTypescriptLibrary",
  "cli": "nx",
  "title": "Convert a TSC library to SWC",
  "description": "Convert a TSC library to SWC.",
  "type": "object",
  "examples": [
    {
      "command": "nx g swc mylib",
      "description": "Convert `libs/myapp/mylib` to SWC."
    }
  ],
  "properties": {
    "project": {
      "type": "string",
      "description": "Library name.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the library?",
      "pattern": "^[a-zA-Z].*$"
    },
    "targets": {
      "type": "array",
      "description": "List of targets to convert.",
      "items": {
        "type": "string",
        "description": "Target to convert."
      },
      "default": ["build"]
    }
  },
  "required": ["project"]
}
