create-fleetbo-project 1.2.27 → 1.2.29

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.
@@ -44,23 +44,23 @@ if (GENERATOR_COMMANDS.includes(command)) {
44
44
  const UPDATE_NETWORK_URL = 'https://us-central1-myapp-259bf.cloudfunctions.net/updateDeveloperNetwork';
45
45
  const PORT = 3000;
46
46
 
47
- // Gestion des processus système (Mac/Linux)
47
+
48
+ const NULL_DEV = process.platform === 'win32' ? '>nul 2>&1' : '2>/dev/null';
48
49
  function killProcessOnPort(port) {
49
50
  try {
50
51
  if (process.platform !== 'win32') {
51
- const pid = execSync(\`lsof -ti:\${port} 2>/dev/null\`).toString().trim();
52
+ const pid = execSync(\`lsof -ti:\${port} \${NULL_DEV}\`).toString().trim();
52
53
  if (pid) {
53
- execSync(\`kill -9 \${pid.split('\\n').join(' ')} 2>/dev/null\`);
54
+ execSync(\`kill -9 \${pid.split('\\n').join(' ')} \${NULL_DEV}\`);
54
55
  }
55
56
  }
56
57
  } catch (e) {}
57
58
  }
58
59
 
59
- // Gestion du service réseau
60
60
  function killNetworkService() {
61
61
  try {
62
62
  const cmd = process.platform === 'win32' ? 'taskkill /IM cloudflared.exe /F' : 'pkill cloudflared';
63
- execSync(cmd + ' 2>/dev/null');
63
+ execSync(cmd + ' ' + NULL_DEV); // Utilisation de la variable adaptée
64
64
  } catch (e) {}
65
65
  }
66
66
 
@@ -117,6 +117,7 @@ async function runDevEnvironment() {
117
117
 
118
118
  const devServer = spawn(npmCmd, ['start'], {
119
119
  stdio: ['ignore', 'pipe', 'pipe'],
120
+ shell: true,
120
121
  env: { ...process.env, BROWSER: 'none', PORT: PORT.toString() }
121
122
  });
122
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {