expo-desktop 0.1.10 → 0.1.12

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.
@@ -29,4 +29,7 @@ export const PackageJson = type({
29
29
  "dependencies?": "Record<string, string>",
30
30
  "devDependencies?": "Record<string, string>",
31
31
  "peerDependencies?": "Record<string, string>",
32
+ // Not quite sure how to express arbitrarily recursive types in ArkType, so
33
+ // I'll just support two levels for now.
34
+ "overrides?": "Record<string, string | Record<string, string>>",
32
35
  });
@@ -132,8 +132,8 @@ export function packageManagerExec(packageManager) {
132
132
  command = "bunx";
133
133
  break;
134
134
  case "npm":
135
- command = "npm";
136
- args.push("dlx");
135
+ command = "npx";
136
+ args.push("--yes");
137
137
  break;
138
138
  case "pnpm":
139
139
  command = "pnpm";
@@ -251,6 +251,17 @@ async function updatePackageJson({ name, projectPath, task, versions, }) {
251
251
  packageJson.devDependencies["@react-native-community/cli"] = "latest";
252
252
  packageJson.devDependencies["@rnx-kit/metro-config"] = "latest";
253
253
  packageJson.devDependencies["@react-native/metro-config"] = `~0.${versions.minor}`;
254
+ if (!packageJson.overrides) {
255
+ packageJson.overrides = {};
256
+ }
257
+ // react-native-macos and react-native-windows may declare conflicting peer
258
+ // dependency ranges to what the Expo template provides.
259
+ if (packageJson.dependencies.react) {
260
+ packageJson.overrides.react = packageJson.dependencies.react;
261
+ }
262
+ if (packageJson.dependencies["react-native"]) {
263
+ packageJson.overrides["react-native"] = packageJson.dependencies["react-native"];
264
+ }
254
265
  }
255
266
  try {
256
267
  await fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2), "utf-8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-desktop",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Best-effort desktop support for Expo",
5
5
  "keywords": [
6
6
  "android",