qtex 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -1
- package/package.json +1 -1
- package/src/compiler.js +5 -0
package/index.js
CHANGED
|
@@ -19,7 +19,8 @@ const optionsSchema = {
|
|
|
19
19
|
server: { type: 'string', short: 's' },
|
|
20
20
|
help: { type: 'boolean', short: 'h' },
|
|
21
21
|
update: { type: 'boolean', short: 'u' },
|
|
22
|
-
version: { type: 'boolean', short: 'v' }
|
|
22
|
+
version: { type: 'boolean', short: 'v' },
|
|
23
|
+
verify: { type: 'boolean' }
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
async function main() {
|
|
@@ -45,6 +46,7 @@ ${colors.bold}OPTIONS:${colors.reset}
|
|
|
45
46
|
-s, --server <url> Specify Tachyon-Tex server URL
|
|
46
47
|
-u, --update Update to the latest version
|
|
47
48
|
-v, --version Show version information
|
|
49
|
+
--verify Only verify LaTeX without compiling
|
|
48
50
|
-h, --help Show this help message
|
|
49
51
|
`);
|
|
50
52
|
process.exit(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qtex",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "Ultra-fast cloud LaTeX compiler. Compile .tex documents in milliseconds without installing TeXLive or MikTeX. Zero config, sub-second builds, live watch mode.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
package/src/compiler.js
CHANGED
|
@@ -107,6 +107,11 @@ export async function compile(dir, options) {
|
|
|
107
107
|
// Validation service unavailable, proceed anyway
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
if (options.verify) {
|
|
111
|
+
spinner.succeed(`${colors.green}Validation complete!${colors.reset}`);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
|
|
110
115
|
// Phase 2: Compilation
|
|
111
116
|
spinner.update(`${colors.cyan}Compiling via Tachyon-Tex API...`);
|
|
112
117
|
|