create-fleetbo-project 1.2.28 → 1.2.30

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,10 +44,8 @@ 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
- // Définir la redirection nulle selon l'OS
48
- const NULL_DEV = process.platform === 'win32' ? '>nul 2>&1' : '2>/dev/null';
49
47
 
50
- // Gestion des processus système (Mac/Linux/Windows)
48
+ const NULL_DEV = process.platform === 'win32' ? '>nul 2>&1' : '2>/dev/null';
51
49
  function killProcessOnPort(port) {
52
50
  try {
53
51
  if (process.platform !== 'win32') {
@@ -56,12 +54,9 @@ function killProcessOnPort(port) {
56
54
  execSync(\`kill -9 \${pid.split('\\n').join(' ')} \${NULL_DEV}\`);
57
55
  }
58
56
  }
59
- // Pas de kill port spécifique Windows ici car géré par le kill global souvent,
60
- // ou nécessiterait netstat complexe. On laisse faire pour l'instant.
61
57
  } catch (e) {}
62
58
  }
63
59
 
64
- // Gestion du service réseau
65
60
  function killNetworkService() {
66
61
  try {
67
62
  const cmd = process.platform === 'win32' ? 'taskkill /IM cloudflared.exe /F' : 'pkill cloudflared';
@@ -140,7 +135,7 @@ async function runDevEnvironment() {
140
135
 
141
136
  // 3. DÉMARRAGE DE LA LIAISON (UPLINK)
142
137
  const npxCmd = process.platform === 'win32' ? 'npx.cmd' : 'npx';
143
- const uplink = spawn(npxCmd, ['cloudflared', 'tunnel', '--url', \`http://localhost:\${PORT}\`]);
138
+ const uplink = spawn(npxCmd, ['cloudflared', 'tunnel', '--url', \`http://localhost:\${PORT}\`], { shell: true });
144
139
 
145
140
  // Capture de l'URL (Silencieux)
146
141
  uplink.stderr.on('data', (chunk) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.28",
3
+ "version": "1.2.30",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {