openmagic 0.33.4 → 0.33.5
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
|
@@ -2652,7 +2652,8 @@ async function offerToStartDevServer(expectedPort) {
|
|
|
2652
2652
|
const depsInfo = checkDependenciesInstalled();
|
|
2653
2653
|
const runCmd = depsInfo.packageManager === "yarn" ? "yarn" : depsInfo.packageManager === "pnpm" ? "pnpm" : depsInfo.packageManager === "bun" ? "bun" : "npm";
|
|
2654
2654
|
const runArgs = runCmd === "npm" ? ["run", chosen.name] : [chosen.name];
|
|
2655
|
-
|
|
2655
|
+
const PORT_FLAG_FRAMEWORKS = /* @__PURE__ */ new Set(["Next.js", "Vite", "Angular", "Vue CLI", "Astro", "Remix", "SvelteKit", "Nuxt", "Create React App", "Gatsby", "Parcel", "Webpack"]);
|
|
2656
|
+
if (portChanged && PORT_FLAG_FRAMEWORKS.has(chosen.framework)) {
|
|
2656
2657
|
if (runCmd === "npm") {
|
|
2657
2658
|
runArgs.push("--", "--port", String(port));
|
|
2658
2659
|
} else {
|