id = "tsx" name = "tsx" description = "Node.js enhanced to run TypeScript and ESM files." homepage = "https://tsx.is" executables = ["tsx"] [commands] format = 1 label = "Run TypeScript" description = "Run a TypeScript file with tsx. Watch mode lives in its own form." quality = "ai-draft" base = "fig:tsx" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tsx.ts" license = "MIT" [[commands.field]] id = "script" label = "Script" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "tsconfig" label = "tsconfig.json path" type = "path" option = ["--tsconfig"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "no_cache" label = "Disable cache" type = "boolean" option = ["--no-cache"] sources = ["fig"] [[commands.task]] id = "run" label = "Run script" fields = ["script", "tsconfig", "no_cache"] required = ["script"] [[commands.group]] id = "basic" label = "Basic" fields = ["script"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["tsconfig", "no_cache"] [[commands.subcommand]] path = ["watch"] label = "Run and watch" description = "Rerun the script when its imports change." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tsx.ts" license = "MIT" [[commands.subcommand.field]] id = "script" label = "Script" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.task]] id = "watch" label = "Watch script" fields = ["script"] required = ["script"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["script"]