Skip to content

Commit

Permalink
Update TS
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBeeblebrox committed Jul 5, 2024
1 parent 4a89c61 commit 791e4bc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mtsc"
version = "5.5.2"
version = "5.5.3"
edition = "2018"
authors = ["Trin Wasinger"] # <[email protected]>
license = "MIT"
Expand Down
23 changes: 11 additions & 12 deletions mtsc.1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.1.
.TH MTSC "1" "June 2024" "MTSC 5.5.2" "User Commands"
.TH MTSC "1" "July 2024" "MTSC 5.5.3" "User Commands"
.SH NAME
MTSC \- manual page for MTSC 5.5.2
MTSC \- manual page for MTSC 5.5.3
.SH DESCRIPTION
MTSC 5.5.2
MTSC 5.5.3
Trin Wasinger
A standalone TypeScript compiler with support for JSX, HTML script tags, preprocessing, and minification
.SS "USAGE:"
Expand All @@ -16,20 +16,19 @@ Prints help information
.TP
\fB\-H\fR, \fB\-\-html\fR
Treat the input as an HTML file and transpile any script tags with the type attribute set to
\&'text/typescript', 'application/typescript', 'tsmodule', or 'module/typescript' (Enabled by
default for .html files)
\&'text/typescript' or 'tsmodule' (Enabled by default for '.html' files)
.TP
\fB\-M\fR, \fB\-\-minify\fR
Enables minification using Terser (both compression and mangling) of output code (Except for
HTML files, '.min' is prepend to the output file extension)
.TP
\fB\-m\fR, \fB\-\-module\fR
Treat the input as a modern ES module (Enabled by default for .mts files and HTML script tags
with type 'tsmodule' or 'module/typescript')
Treat the input as a modern ES module (Enabled by default for '.mts' files and HTML script
tags with type 'tsmodule')
.TP
\fB\-p\fR, \fB\-\-preprocessor\fR
Enables comment preprocessor (looks for directives within single\-line triple\-slash comments,
e.g. '///#define')
Enables comment preprocessor (Looks for directives within single\-line triple\-slash comments,
e.g. '///#define'; enabled by default for '.p.*' files)
.TP
\fB\-v\fR, \fB\-\-version\fR
Prints version information
Expand All @@ -38,7 +37,7 @@ Prints version information
Prints verbose error messages
.SS "OPTIONS:"
.TP
\fB\-D\fR, \fB\-\-define\fR <MACROS>...
\fB\-D\fR, \fB\-\-define\fR <MACRO>...
Define macros using the form 'MACRO(x)=definition' (Unused if preprocessor is
not enabled)
.TP
Expand All @@ -47,7 +46,7 @@ Add additional include search paths (Unused if preprocessor is not enabled)
.TP
\fB\-x\fR, \fB\-\-jsx\fR <JSX\-FACTORY>
Sets the JSX factory for compiled code (When this option is set but blank or
when the file extension is .tsx, JSX is preserved as is; otherwise, it is
when the file extension is '.tsx', JSX is preserved as is; otherwise, it is
interpreted as standard code)
.TP
\fB\-\-jsx\-fragment\fR <JSX\-FRAGMENT>
Expand All @@ -59,7 +58,7 @@ Sets the file name and extension when not available via the main arg (Such as
reading from stdin or file descriptors; this can be used by the preprocessor
and to infer other options)
.TP
\fB\-o\fR, \fB\-\-out\fR <OUTPUT>
\fB\-o\fR, \fB\-\-out\fR <PATH>
Sets the output file to write transpiled code to instead of using the input
file's name with the extension updated (When set to '\-' or set but blank,
output is written to stdout; if set to a directory and an input file is
Expand Down

0 comments on commit 791e4bc

Please sign in to comment.