{
  "id": "ts-node",
  "name": "ts-node",
  "description": "TypeScript execution engine and REPL for Node.js.",
  "homepage": "https://typestrong.org/ts-node/",
  "executables": [
    "ts-node"
  ],
  "commands": {
    "format": 1,
    "label": "Run TypeScript",
    "description": "Run a TypeScript script or evaluate code with ts-node. Compiler plumbing flags are left out.",
    "quality": "ai-draft",
    "base": "fig:ts-node",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/ts-node.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "script",
        "label": "Script",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "eval",
        "label": "Evaluate code",
        "type": "string",
        "option": [
          "--eval",
          "-e"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "print",
        "label": "Print result",
        "type": "boolean",
        "option": [
          "--print",
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "transpile_only",
        "label": "Transpile only (skip type check)",
        "type": "boolean",
        "option": [
          "--transpile-only",
          "-T"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "project",
        "label": "tsconfig project",
        "type": "path",
        "option": [
          "--project",
          "-P"
        ],
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "require",
        "label": "Require module first",
        "type": "string",
        "option": [
          "--require",
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "interactive",
        "label": "Open REPL",
        "type": "boolean",
        "option": [
          "--interactive",
          "-i"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "show_config",
        "label": "Show resolved config",
        "type": "boolean",
        "option": [
          "--show-config"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "esm_skip",
        "label": "Skip tsconfig",
        "type": "boolean",
        "option": [
          "--skip-project"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "run",
        "label": "Run script",
        "fields": [
          "script",
          "transpile_only",
          "project"
        ],
        "required": [
          "script"
        ]
      },
      {
        "id": "eval",
        "label": "Evaluate expression",
        "fields": [
          "eval",
          "print"
        ],
        "required": [
          "eval"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "script",
          "eval",
          "print",
          "transpile_only",
          "project"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "require",
          "interactive",
          "show_config",
          "esm_skip"
        ]
      }
    ]
  }
}
