TS-NODE(1)

πŸ’– TS-NODE(1) πŸ’–

okay bestie, welcome to the ts-node-transpile-only manual page, straight out of User Commands, and no cap it's a whole vibe πŸ¦‹


✨ NAME ✨

ts-node-transpile-only β€” execute JavaScript and TypeScript code


🌸 SYNOPSIS 🌸

ts-node-transpile-only [options] [-e script] [arguments]

πŸ’… DESCRIPTION πŸ’…

So like, it runs the script you hand it β€” either an actual file on disk or a lil snippet you inline with the -e switch β€” and it does that through Node.js or TypeScript. And here's the tea: it's exactly equivalent to running ts-node with the --transpile-only switch. Same energy, shorter name, periodt. πŸ‘‘

Now the options, bestie, all of them, don't skip a single one:

  • -e, --eval [code] β€” Evaluate code ✨
  • -p, --print β€” Print result of --eval
  • -r, --require [path] β€” Require a node module before execution
  • -i, --interactive β€” Opens the REPL even if stdin does not appear to be a terminal
  • -h, --help β€” Print CLI usage
  • -v, --version β€” Print module version information
  • -s, --script-mode β€” Use cwd from <script.ts> instead of current directory
  • -T, --transpile-only β€” Use TypeScript's faster transpileModule ⚑
  • -H, --compiler-host β€” Use TypeScript's compiler host API
  • -I, --ignore [pattern] β€” Override the path patterns to skip compilation
  • -P, --project [path] β€” Path to TypeScript JSON project file
  • -C, --compiler [name] β€” Specify a custom TypeScript compiler
  • -D, --ignore-diagnostics [code] β€” Ignore TypeScript warnings by diagnostic code
  • -O, --compiler-options [opts] β€” JSON object to merge with compiler options
  • --dir β€” Specify working directory for config resolution
  • --scope β€” Scope compiler to files within cwd only
  • --files β€” Load files, include and exclude from tsconfig.json on startup
  • --pretty β€” Use pretty diagnostic formatter (usually enabled by default) πŸ’–
  • --skip-project β€” Skip reading tsconfig.json
  • --skip-ignore β€” Skip --ignore checks
  • --prefer-ts-exts β€” Prefer importing TypeScript files over JavaScript files
  • --log-error β€” Logs TypeScript errors to stderr instead of throwing exceptions

and that's the whole page, bestie, we ate and left zero crumbs πŸ“βœ¨

little sign-off from the source, fr fr: this is ts-node v9.0.0, dated November 2020. iconic behavior honestly πŸ‘‘πŸ’œ