qtex 1.1.4 → 1.1.5
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 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { compile } from './src/compiler.js';
|
|
|
8
8
|
import { startServer } from './src/server.js';
|
|
9
9
|
import { autoUpdate, selfUpdate } from './src/updater.js';
|
|
10
10
|
import { exec } from 'node:child_process';
|
|
11
|
-
import packageJson from './package.json'
|
|
11
|
+
import packageJson from './package.json' with { type: 'json' };
|
|
12
12
|
|
|
13
13
|
// --- Entry Point ---
|
|
14
14
|
const args = process.argv.slice(2);
|
|
@@ -73,7 +73,7 @@ ${colors.bold}OPTIONS:${colors.reset}
|
|
|
73
73
|
await wsClient.sendProject();
|
|
74
74
|
|
|
75
75
|
// Auto-open browser
|
|
76
|
-
const openCmd = process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'start' : 'xdg-open';
|
|
76
|
+
const openCmd = process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'start ""' : 'xdg-open';
|
|
77
77
|
exec(`${openCmd} "${viewUrl}"`);
|
|
78
78
|
|
|
79
79
|
watch(directory, { recursive: true }, async (event, filename) => {
|
|
@@ -96,7 +96,7 @@ ${colors.bold}OPTIONS:${colors.reset}
|
|
|
96
96
|
// Auto-open generated PDF in the system browser
|
|
97
97
|
const outputFileName = values.output || 'output.pdf';
|
|
98
98
|
const outputPath = resolve(process.cwd(), directory, outputFileName);
|
|
99
|
-
const openCmd = process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'start' : 'xdg-open';
|
|
99
|
+
const openCmd = process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'start ""' : 'xdg-open';
|
|
100
100
|
exec(`${openCmd} "${outputPath}"`);
|
|
101
101
|
}
|
|
102
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qtex",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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": {
|