projax 1.3.12 → 1.3.14
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/dist/api/package.json +1 -1
- package/dist/index.js +43 -21
- package/package.json +9 -1
package/dist/api/package.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -211,32 +211,54 @@ program
|
|
|
211
211
|
.action(async () => {
|
|
212
212
|
try {
|
|
213
213
|
await ensureAPIServerRunning(true);
|
|
214
|
-
// Find the prxi
|
|
215
|
-
const
|
|
214
|
+
// Find the built prxi file - check multiple locations
|
|
215
|
+
const prxiBuiltNew = path.join(__dirname, '..', '..', 'prxi', 'dist', 'index.mjs');
|
|
216
|
+
const prxiBuiltOld = path.join(__dirname, 'prxi', 'dist', 'index.mjs');
|
|
216
217
|
const prxiSourceOld = path.join(__dirname, '..', 'src', 'prxi.tsx');
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
if (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
let prxiPath = null;
|
|
219
|
+
let useSource = false;
|
|
220
|
+
if (fs.existsSync(prxiBuiltNew)) {
|
|
221
|
+
prxiPath = prxiBuiltNew;
|
|
222
|
+
}
|
|
223
|
+
else if (fs.existsSync(prxiBuiltOld)) {
|
|
224
|
+
prxiPath = prxiBuiltOld;
|
|
225
|
+
}
|
|
226
|
+
else if (fs.existsSync(prxiSourceOld)) {
|
|
227
|
+
prxiPath = prxiSourceOld;
|
|
228
|
+
useSource = true;
|
|
226
229
|
}
|
|
227
|
-
if (!
|
|
228
|
-
console.error('Error:
|
|
230
|
+
if (!prxiPath) {
|
|
231
|
+
console.error('Error: prxi UI not found.');
|
|
232
|
+
console.error('Please rebuild the project: npm run build');
|
|
229
233
|
process.exit(1);
|
|
230
234
|
}
|
|
231
|
-
// Run prxi using tsx
|
|
232
235
|
const { spawn } = require('child_process');
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
if (useSource) {
|
|
237
|
+
// Fallback: Run source using tsx
|
|
238
|
+
const tsxBinRoot = path.join(__dirname, '..', '..', '..', 'node_modules', '.bin', 'tsx');
|
|
239
|
+
const tsxBinCli = path.join(__dirname, '..', 'node_modules', '.bin', 'tsx');
|
|
240
|
+
const tsxBin = fs.existsSync(tsxBinRoot) ? tsxBinRoot : tsxBinCli;
|
|
241
|
+
if (!fs.existsSync(tsxBin)) {
|
|
242
|
+
console.error('Error: tsx not found. Please install dependencies: npm install');
|
|
243
|
+
process.exit(1);
|
|
244
|
+
}
|
|
245
|
+
const child = spawn(tsxBin, [prxiPath], {
|
|
246
|
+
stdio: 'inherit',
|
|
247
|
+
cwd: path.dirname(prxiPath),
|
|
248
|
+
});
|
|
249
|
+
child.on('exit', (code) => {
|
|
250
|
+
process.exit(code || 0);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
// Run built version with node
|
|
255
|
+
const child = spawn(process.execPath, [prxiPath], {
|
|
256
|
+
stdio: 'inherit',
|
|
257
|
+
});
|
|
258
|
+
child.on('exit', (code) => {
|
|
259
|
+
process.exit(code || 0);
|
|
260
|
+
});
|
|
261
|
+
}
|
|
240
262
|
}
|
|
241
263
|
catch (error) {
|
|
242
264
|
console.error('Error launching prxi:', error instanceof Error ? error.message : error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projax",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"description": "Cross-platform project management dashboard for tracking local development projects. Features CLI, Terminal UI, Desktop app, REST API, and built-in tools for test detection, port management, and script execution.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -51,6 +51,14 @@
|
|
|
51
51
|
"rust",
|
|
52
52
|
"go"
|
|
53
53
|
],
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/josetwentyfour/projax.git"
|
|
57
|
+
},
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/josetwentyfour/projax/issues"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://josetwentyfour.github.io/projax/",
|
|
54
62
|
"author": "",
|
|
55
63
|
"license": "MIT"
|
|
56
64
|
}
|