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
|
-
|
|
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}
|
|
52
|
+
const pid = execSync(\`lsof -ti:\${port} \${NULL_DEV}\`).toString().trim();
|
|
52
53
|
if (pid) {
|
|
53
|
-
execSync(\`kill -9 \${pid.split('\\n').join(' ')}
|
|
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 + '
|
|
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
|
|