File: ts-node-transpile-only.1

package info (click to toggle)
ts-node 9.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,632 kB
  • sloc: javascript: 4,285; makefile: 14
file content (75 lines) | stat: -rw-r--r-- 2,090 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.TH TS-NODE "1" "November 2020" "ts-node v9.0.0" "User Commands"
.SH NAME
ts-node-transpile-only \- execute JavaScript and TypeScript code
.SH SYNOPSIS
\fBts\-node-transpile-only [\fIoptions] [\fB-e \fIscript] [arguments]

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