@jeremyy_prt/cc-config 1.0.1 → 1.0.2
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/cli.js +3 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -145,7 +145,9 @@ function setup() {
|
|
|
145
145
|
|
|
146
146
|
// Vérifier que Claude Code est installé
|
|
147
147
|
try {
|
|
148
|
-
|
|
148
|
+
const isWindows = process.platform === 'win32';
|
|
149
|
+
const command = isWindows ? 'where claude' : 'which claude';
|
|
150
|
+
execSync(command, { stdio: 'ignore' });
|
|
149
151
|
} catch {
|
|
150
152
|
console.error('⚠️ Claude Code n\'est pas installé.');
|
|
151
153
|
console.error(' Installe-le d\'abord: https://claude.ai/download');
|