expo-desktop 0.1.12 → 0.1.13
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.
|
@@ -37,12 +37,14 @@ export async function newExpoDesktopProject(args) {
|
|
|
37
37
|
const packageManager = await select({
|
|
38
38
|
message: "What package manager shall we install with?",
|
|
39
39
|
options: [
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
{
|
|
41
|
+
value: "npm",
|
|
42
|
+
label: `npm${platform !== "darwin" && platform !== "win32" ? " (recommended)" : ""}`,
|
|
43
|
+
},
|
|
44
|
+
{ value: "bun", label: `Bun${platform === "darwin" ? " (recommended)" : ""}` },
|
|
45
|
+
{ value: "pnpm", label: `pnpm${platform === "win32" ? " (recommended)" : ""}` },
|
|
43
46
|
],
|
|
44
|
-
|
|
45
|
-
initialValue: platform === "win32" ? "pnpm" : "bun",
|
|
47
|
+
initialValue: platform === "darwin" ? "bun" : platform === "win32" ? "pnpm" : "npm",
|
|
46
48
|
});
|
|
47
49
|
if (isCancel(packageManager)) {
|
|
48
50
|
process.exit(0);
|
|
@@ -3,6 +3,7 @@ import { type } from "arktype";
|
|
|
3
3
|
import { cyan, green, yellow } from "kleur/colors";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
|
+
import { platform } from "node:process";
|
|
6
7
|
import process from "node:process";
|
|
7
8
|
import { AppJson, PackageJson } from "../common/app-json.js";
|
|
8
9
|
import { applyConfigPlugins } from "../common/apply-config-plugins.js";
|
|
@@ -61,14 +62,16 @@ export async function createExpoDesktopApp({ name, packageManager, versions, })
|
|
|
61
62
|
await improveMacosGitignore({ projectPath });
|
|
62
63
|
title("Adding Expo support to the macOS Podfile…", { spacing: 1 });
|
|
63
64
|
await updatePodfile({ projectPath });
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
if (platform === "darwin") {
|
|
66
|
+
// Avoid having to wait a million years for Hermes to download when focusing
|
|
67
|
+
// on developing desktop
|
|
68
|
+
if (!localDev) {
|
|
69
|
+
title("Installing Cocoapods for the iOS app…", { spacing: 1 });
|
|
70
|
+
await podInstall({ projectPath, type: "ios" });
|
|
71
|
+
}
|
|
72
|
+
title("Installing Cocoapods for the macOS app…", { spacing: 1 });
|
|
73
|
+
await podInstall({ projectPath, type: "macos" });
|
|
74
|
+
}
|
|
72
75
|
title("Adding Expo support to the Metro config…", { spacing: 1 });
|
|
73
76
|
await improveMetroConfig({ projectPath });
|
|
74
77
|
title("Adding Expo support to the Babel config…", { spacing: 1 });
|