xiaozuoassistant 0.1.43 → 0.1.44
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/bin/cli.js +8 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -409,6 +409,14 @@ if (command === 'start') {
|
|
|
409
409
|
}
|
|
410
410
|
} else if (command === 'doctor') {
|
|
411
411
|
console.log('Running doctor check...');
|
|
412
|
+
try {
|
|
413
|
+
const pkgPath = path.join(packageRoot, 'package.json');
|
|
414
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
|
|
415
|
+
console.log('Package Name:', pkg.name);
|
|
416
|
+
console.log('Package Version:', pkg.version);
|
|
417
|
+
} catch (e) {
|
|
418
|
+
console.log('Package Version: Unknown');
|
|
419
|
+
}
|
|
412
420
|
console.log('Package Root:', packageRoot);
|
|
413
421
|
console.log('Node Version:', process.version);
|
|
414
422
|
console.log('Doctor check complete.');
|
package/package.json
CHANGED