Man page - ts-node-script(1)
Packages contains this manual
Manual
TS-NODE
NAMESYNOPSIS
DESCRIPTION
NAME
ts-node-script - execute JavaScript and TypeScript code
SYNOPSIS
ts-node-script [ options] [ -e script] [arguments]
DESCRIPTION
Runs the given
script, either in a file or inlined with the
-e
switch, using Node.js or TypeScript. It is equivalent to
running ts-node with the
--script-mode
switch.
-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