diff --git a/Cargo.lock b/Cargo.lock index 2ef18c3..b976e42 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -666,7 +666,7 @@ dependencies = [ [[package]] name = "mtsc" -version = "5.5.2" +version = "5.5.3" dependencies = [ "backtrace", "cc", diff --git a/Cargo.toml b/Cargo.toml index d9aa838..6ccbeb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mtsc" -version = "5.5.2" +version = "5.5.3" edition = "2018" authors = ["Trin Wasinger"] # license = "MIT" diff --git a/mtsc.1 b/mtsc.1 index dd1a04f..6756f0e 100644 --- a/mtsc.1 +++ b/mtsc.1 @@ -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:" @@ -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 @@ -38,7 +37,7 @@ Prints version information Prints verbose error messages .SS "OPTIONS:" .TP -\fB\-D\fR, \fB\-\-define\fR ... +\fB\-D\fR, \fB\-\-define\fR ... Define macros using the form 'MACRO(x)=definition' (Unused if preprocessor is not enabled) .TP @@ -47,7 +46,7 @@ Add additional include search paths (Unused if preprocessor is not enabled) .TP \fB\-x\fR, \fB\-\-jsx\fR 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 @@ -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 +\fB\-o\fR, \fB\-\-out\fR 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