projax 1.3.21 → 1.3.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/dist/api/package.json +1 -1
- package/dist/index.js +24 -8
- package/package.json +1 -1
package/dist/api/package.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -234,15 +234,31 @@ program
|
|
|
234
234
|
console.error('Error: tsx not found. Please install dependencies: npm install');
|
|
235
235
|
process.exit(1);
|
|
236
236
|
}
|
|
237
|
-
// Run prxi
|
|
237
|
+
// Run prxi using npm run dev
|
|
238
238
|
const { spawn } = require('child_process');
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
239
|
+
// Get the prxi package directory (prxi/src/index.tsx -> prxi)
|
|
240
|
+
const prxiPackageDir = path.dirname(path.dirname(prxiPath));
|
|
241
|
+
const prxiPackageJson = path.join(prxiPackageDir, 'package.json');
|
|
242
|
+
// If in workspace (package.json exists), use npm run dev for proper module resolution
|
|
243
|
+
if (fs.existsSync(prxiPackageJson)) {
|
|
244
|
+
const child = spawn('npm', ['run', 'dev'], {
|
|
245
|
+
stdio: 'inherit',
|
|
246
|
+
cwd: prxiPackageDir,
|
|
247
|
+
});
|
|
248
|
+
child.on('exit', (code) => {
|
|
249
|
+
process.exit(code || 0);
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
// Fallback to tsx for bundled/published version
|
|
254
|
+
const child = spawn(tsxBin, [prxiPath], {
|
|
255
|
+
stdio: 'inherit',
|
|
256
|
+
cwd: path.dirname(prxiPath),
|
|
257
|
+
});
|
|
258
|
+
child.on('exit', (code) => {
|
|
259
|
+
process.exit(code || 0);
|
|
260
|
+
});
|
|
261
|
+
}
|
|
246
262
|
}
|
|
247
263
|
catch (error) {
|
|
248
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.22",
|
|
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": {
|