expo-desktop 0.1.5 → 0.1.7
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/build/cli.js
CHANGED
|
File without changes
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { confirm, isCancel, text, log, select } from "@clack/prompts";
|
|
2
2
|
import { default as kleur } from "kleur";
|
|
3
3
|
import { green, grey } from "kleur/colors";
|
|
4
|
+
import { platform } from "node:process";
|
|
4
5
|
import { title } from "../common/clack.js";
|
|
5
|
-
import { createExpoDesktopApp } from "./create-expo-desktop-app.js";
|
|
6
|
+
import { createExpoDesktopApp, localDev } from "./create-expo-desktop-app.js";
|
|
6
7
|
import { previewFileTree } from "./preview-file-tree.js";
|
|
7
8
|
import { promptForVersion } from "./prompt-for-version.js";
|
|
8
9
|
export async function newExpoDesktopProject(args) {
|
|
9
10
|
// A dev-time switch for skipping the questions
|
|
10
|
-
const skip =
|
|
11
|
+
const skip = localDev;
|
|
11
12
|
if (skip) {
|
|
12
13
|
await createExpoDesktopApp({
|
|
13
14
|
name: {
|
|
@@ -40,7 +41,8 @@ export async function newExpoDesktopProject(args) {
|
|
|
40
41
|
{ value: "bun", label: "Bun (recommended)" },
|
|
41
42
|
{ value: "pnpm", label: "pnpm" },
|
|
42
43
|
],
|
|
43
|
-
|
|
44
|
+
// As far as I've found on ARM Windows, Bun just segfaults on install :(
|
|
45
|
+
initialValue: platform === "win32" ? "pnpm" : "bun",
|
|
44
46
|
});
|
|
45
47
|
if (isCancel(packageManager)) {
|
|
46
48
|
process.exit(0);
|
|
@@ -13,11 +13,12 @@ import { packageManagerExec } from "../common/npm.js";
|
|
|
13
13
|
/**
|
|
14
14
|
* A crude switch to use to help with local development.
|
|
15
15
|
*
|
|
16
|
+
* - Skips the questionnaire at the start.
|
|
16
17
|
* - Installs the local copy of expo-desktop-config-plugins rather than pinning
|
|
17
18
|
* to a published release.
|
|
18
19
|
* - Adds the apply-config-plugins.mjs script.
|
|
19
20
|
*/
|
|
20
|
-
const localDev = false;
|
|
21
|
+
export const localDev = false;
|
|
21
22
|
export async function createExpoDesktopApp({ name, packageManager, versions, }) {
|
|
22
23
|
const { projectPath } = await createExpoApp({ name, packageManager, versions });
|
|
23
24
|
await appendRootGitignoreSpawnDebugLogs(projectPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-desktop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Best-effort desktop support for Expo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -33,29 +33,22 @@
|
|
|
33
33
|
".": "./build/cli.js",
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build": "tsgo -p tsconfig.build.json",
|
|
38
|
-
"generate-config": "node scripts/generate-config.ts",
|
|
39
|
-
"schema": "node scripts/update-schema.ts",
|
|
40
|
-
"start": "node src/cli.ts",
|
|
41
|
-
"test": "bun test"
|
|
42
|
-
},
|
|
43
36
|
"dependencies": {
|
|
44
37
|
"@clack/prompts": "^1.2.0",
|
|
45
38
|
"arktype": "^2.2.0",
|
|
46
39
|
"citty": "^0.2.2",
|
|
47
|
-
"expo-desktop-config-plugins": "workspace:",
|
|
48
|
-
"expo-desktop-prebuild-config": "workspace:",
|
|
49
40
|
"kleur": "^4.1.5",
|
|
50
|
-
"toml": "^4.1.1"
|
|
41
|
+
"toml": "^4.1.1",
|
|
42
|
+
"expo-desktop-config-plugins": "1.1.16",
|
|
43
|
+
"expo-desktop-prebuild-config": "1.0.5"
|
|
51
44
|
},
|
|
52
45
|
"devDependencies": {
|
|
53
|
-
"@expo/config": "
|
|
54
|
-
"@expo/config-plugins": "
|
|
55
|
-
"@tsconfig/node24": "
|
|
56
|
-
"@types/
|
|
57
|
-
"@
|
|
58
|
-
"
|
|
46
|
+
"@expo/config": "^12.0.13",
|
|
47
|
+
"@expo/config-plugins": "^54.0.4",
|
|
48
|
+
"@tsconfig/node24": "^24.0.4",
|
|
49
|
+
"@types/node": "^24.12.2",
|
|
50
|
+
"@typescript/native-preview": "^7.0.0-dev.20260425.1",
|
|
51
|
+
"vitest": "^3.2.4"
|
|
59
52
|
},
|
|
60
53
|
"peerDependencies": {
|
|
61
54
|
"@expo/config": ">=12.0.0",
|
|
@@ -70,5 +63,12 @@
|
|
|
70
63
|
"node --run schema",
|
|
71
64
|
"oxfmt"
|
|
72
65
|
]
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsgo -p tsconfig.build.json",
|
|
69
|
+
"generate-config": "node scripts/generate-config.ts",
|
|
70
|
+
"schema": "node scripts/update-schema.ts",
|
|
71
|
+
"start": "node src/cli.ts",
|
|
72
|
+
"test": "vitest run"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|