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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ts-node.ts" license = "MIT" [[commands.field]] id = "script" label = "Script" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "eval" label = "Evaluate code" type = "string" option = ["--eval", "-e"] sources = ["fig"] [[commands.field]] id = "print" label = "Print result" type = "boolean" option = ["--print", "-p"] sources = ["fig"] [[commands.field]] id = "transpile_only" label = "Transpile only (skip type check)" type = "boolean" option = ["--transpile-only", "-T"] sources = ["fig"] [[commands.field]] id = "project" label = "tsconfig project" type = "path" option = ["--project", "-P"] path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "require" label = "Require module first" type = "string" option = ["--require", "-r"] sources = ["fig"] [[commands.field]] id = "interactive" label = "Open REPL" type = "boolean" option = ["--interactive", "-i"] sources = ["fig"] [[commands.field]] id = "show_config" label = "Show resolved config" type = "boolean" option = ["--show-config"] sources = ["fig"] [[commands.field]] id = "esm_skip" label = "Skip tsconfig" type = "boolean" option = ["--skip-project"] sources = ["fig"] [[commands.task]] id = "run" label = "Run script" fields = ["script", "transpile_only", "project"] required = ["script"] [[commands.task]] id = "eval" label = "Evaluate expression" fields = ["eval", "print"] required = ["eval"] [[commands.group]] id = "basic" label = "Basic" fields = ["script", "eval", "print", "transpile_only", "project"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["require", "interactive", "show_config", "esm_skip"]