expo-desktop 0.1.8 → 0.1.10
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.
|
@@ -76,15 +76,13 @@ export async function createExpoDesktopApp({ name, packageManager, versions, })
|
|
|
76
76
|
// TODO: Set up Windows app.cpp entrypoint
|
|
77
77
|
}
|
|
78
78
|
async function createExpoApp({ name, packageManager, versions, }) {
|
|
79
|
-
|
|
80
|
-
//
|
|
81
|
-
|
|
82
|
-
// a bogus positional arg (create-expo-app then fails inside `npm pack`).
|
|
79
|
+
// `npm create` drops flags meant for create-expo-app unless you add `--`; use
|
|
80
|
+
// `npx --yes` instead to forward args correctly and skip prompts.
|
|
81
|
+
const command = packageManager === "npm" ? "npx" : packageManager;
|
|
83
82
|
const args = [
|
|
84
|
-
"create",
|
|
85
|
-
"expo-app",
|
|
83
|
+
...(packageManager === "npm" ? ["--yes", "create-expo-app"] : ["create", "expo-app"]),
|
|
86
84
|
name.filesafeName,
|
|
87
|
-
|
|
85
|
+
"--yes",
|
|
88
86
|
"--template",
|
|
89
87
|
`blank-typescript@${versions.expoBlankTypeScript}`,
|
|
90
88
|
"--no-install",
|
|
@@ -97,7 +95,11 @@ async function createExpoApp({ name, packageManager, versions, }) {
|
|
|
97
95
|
title: "create-expo-app",
|
|
98
96
|
command,
|
|
99
97
|
args,
|
|
100
|
-
options: {
|
|
98
|
+
options: {
|
|
99
|
+
stdio: "inherit",
|
|
100
|
+
// Suppresses npx/npm exec "Ok to proceed?" and similar yes/no prompts.
|
|
101
|
+
env: { npm_config_yes: "true" },
|
|
102
|
+
},
|
|
101
103
|
debugLogDir: projectPath,
|
|
102
104
|
}),
|
|
103
105
|
]);
|
|
@@ -323,8 +323,8 @@ function getExpoBlankTypeScriptForRNVersion({ major, minor }) {
|
|
|
323
323
|
.map((patch) => parseInt(patch))
|
|
324
324
|
.sort((a, b) => b - a)
|
|
325
325
|
.at(0);
|
|
326
|
-
if (
|
|
326
|
+
if (typeof highestPatch !== "number") {
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return patches[highestPatch];
|
|
330
330
|
}
|