openmagic 0.43.0 → 0.43.1
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/dist/cli.js
CHANGED
|
@@ -2862,7 +2862,7 @@ function checkDependenciesInstalled(cwd = process.cwd()) {
|
|
|
2862
2862
|
// src/cli.ts
|
|
2863
2863
|
import { createRequire as createRequire2 } from "module";
|
|
2864
2864
|
try {
|
|
2865
|
-
execSync2("ulimit -n 65536", { shell:
|
|
2865
|
+
execSync2("ulimit -n 65536", { shell: "/bin/sh", stdio: "ignore" });
|
|
2866
2866
|
} catch {
|
|
2867
2867
|
}
|
|
2868
2868
|
var origEmitWarning = process.emitWarning;
|
|
@@ -2973,13 +2973,13 @@ process.on("uncaughtException", (err) => {
|
|
|
2973
2973
|
process.exit(1);
|
|
2974
2974
|
});
|
|
2975
2975
|
try {
|
|
2976
|
-
const fdLimit = parseInt(execSync2("ulimit -n", { encoding: "utf-8", shell:
|
|
2976
|
+
const fdLimit = parseInt(execSync2("ulimit -n", { encoding: "utf-8", shell: "/bin/sh" }).trim(), 10);
|
|
2977
2977
|
if (fdLimit > 0 && fdLimit < 4096) {
|
|
2978
2978
|
try {
|
|
2979
|
-
execSync2("ulimit -n 65536", { shell:
|
|
2979
|
+
execSync2("ulimit -n 65536", { shell: "/bin/sh", stdio: "ignore" });
|
|
2980
2980
|
} catch {
|
|
2981
2981
|
}
|
|
2982
|
-
const newLimit = parseInt(execSync2("ulimit -n", { encoding: "utf-8", shell:
|
|
2982
|
+
const newLimit = parseInt(execSync2("ulimit -n", { encoding: "utf-8", shell: "/bin/sh" }).trim(), 10);
|
|
2983
2983
|
if (newLimit < 4096) {
|
|
2984
2984
|
writeLine();
|
|
2985
2985
|
printWarning(`File descriptor limit is ${fdLimit} (need 4096+).`);
|
|
@@ -3087,7 +3087,7 @@ function runCommand(cmd, args, cwd = process.cwd()) {
|
|
|
3087
3087
|
const child = spawn5(cmd, args, {
|
|
3088
3088
|
cwd,
|
|
3089
3089
|
stdio: ["ignore", "pipe", "pipe"],
|
|
3090
|
-
shell:
|
|
3090
|
+
shell: "/bin/sh"
|
|
3091
3091
|
});
|
|
3092
3092
|
child.stdout?.on("data", (data) => {
|
|
3093
3093
|
const lines = data.toString().trim().split("\n");
|
|
@@ -3595,7 +3595,7 @@ async function offerToStartDevServer(expectedPort) {
|
|
|
3595
3595
|
const compat = checkNodeCompatibility(chosen.framework);
|
|
3596
3596
|
if (!compat.ok) {
|
|
3597
3597
|
writeLine();
|
|
3598
|
-
printError(compat.message);
|
|
3598
|
+
printError(compat.message || "Node.js version incompatible");
|
|
3599
3599
|
writeLine();
|
|
3600
3600
|
printInfo("Switch Node.js before running:");
|
|
3601
3601
|
printCommand("nvm use 20");
|
|
@@ -3712,7 +3712,7 @@ async function offerToStartDevServer(expectedPort) {
|
|
|
3712
3712
|
if (chosen?.framework) {
|
|
3713
3713
|
const compat2 = checkNodeCompatibility(chosen.framework);
|
|
3714
3714
|
if (!compat2.ok) {
|
|
3715
|
-
printWarning(compat2.message);
|
|
3715
|
+
printWarning(compat2.message || "Node.js version may be incompatible");
|
|
3716
3716
|
printDetail("Switch with:");
|
|
3717
3717
|
printCommand("nvm use 20");
|
|
3718
3718
|
writeLine();
|