@assistkick/create 1.27.0 → 1.28.0
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/package.json
CHANGED
|
@@ -58,6 +58,9 @@ export class ProjectWorkspaceService {
|
|
|
58
58
|
/** Verify that git is installed and available on the system. Throws if not. */
|
|
59
59
|
verifyGitAvailable = async (): Promise<void> => {
|
|
60
60
|
try {
|
|
61
|
+
// Ensure workspacesDir exists before spawning — if the cwd doesn't exist,
|
|
62
|
+
// spawn fails with ENOENT which would be misreported as "git not installed".
|
|
63
|
+
await this.ensureDir(this.workspacesDir);
|
|
61
64
|
await this.claudeService.spawnCommand('git', ['--version'], this.workspacesDir);
|
|
62
65
|
} catch {
|
|
63
66
|
throw new Error('Git is required to create a project. Please install git and try again.');
|