claude-autopm 1.23.0 → 1.23.1
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/install/install.js +4 -4
- package/package.json +1 -1
package/install/install.js
CHANGED
|
@@ -364,7 +364,7 @@ ${this.colors.BOLD}Examples:${this.colors.NC}
|
|
|
364
364
|
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf-8');
|
|
365
365
|
this.printSuccess('Created package.json');
|
|
366
366
|
} else if (fs.existsSync(packageJsonPath)) {
|
|
367
|
-
this.
|
|
367
|
+
this.printStep('package.json already exists, skipping');
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -372,7 +372,7 @@ ${this.colors.BOLD}Examples:${this.colors.NC}
|
|
|
372
372
|
const packageJsonPath = path.join(this.targetDir, 'package.json');
|
|
373
373
|
|
|
374
374
|
if (!fs.existsSync(packageJsonPath)) {
|
|
375
|
-
this.
|
|
375
|
+
this.printStep('No package.json found, skipping dependency installation');
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
378
|
|
|
@@ -382,7 +382,7 @@ ${this.colors.BOLD}Examples:${this.colors.NC}
|
|
|
382
382
|
// Check if package.json has dependencies
|
|
383
383
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
384
384
|
if (!packageJson.dependencies || Object.keys(packageJson.dependencies).length === 0) {
|
|
385
|
-
this.
|
|
385
|
+
this.printStep('No dependencies to install');
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
388
|
|
|
@@ -396,7 +396,7 @@ ${this.colors.BOLD}Examples:${this.colors.NC}
|
|
|
396
396
|
this.printSuccess('Dependencies installed successfully');
|
|
397
397
|
} catch (error) {
|
|
398
398
|
this.printWarning(`Failed to install dependencies: ${error.message}`);
|
|
399
|
-
this.
|
|
399
|
+
this.printStep('You can manually run: npm install');
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
|