expo-desktop 0.1.26 → 0.1.28

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.
@@ -137,7 +137,7 @@ export function packageManagerExec(packageManager) {
137
137
  break;
138
138
  case "pnpm":
139
139
  command = "pnpm";
140
- args.push("dlx");
140
+ args.push("exec");
141
141
  }
142
142
  return { args, command };
143
143
  }
@@ -634,7 +634,6 @@ module.exports = function (api) {
634
634
  async function addApplyConfigPluginsScript({ projectPath }) {
635
635
  await fs.writeFile(path.resolve(projectPath, "apply-config-plugins.mjs"), `
636
636
  import { createRequire } from "node:module";
637
- import * as path from "node:path";
638
637
 
639
638
  const require = createRequire(import.meta.url);
640
639
  const { getPrebuildConfigAsync } = require("expo-desktop-prebuild-config");
@@ -671,9 +670,7 @@ async function applyConfigPlugins(options) {
671
670
  /** @type {typeof import("@expo/config")} */
672
671
  let expoConfigModule;
673
672
  try {
674
- expoConfigModule = await import(
675
- path.dirname(require.resolve("@expo/config/package.json", { paths: [projectRoot] }))
676
- );
673
+ expoConfigModule = require("@expo/config");
677
674
  } catch (cause) {
678
675
  throw new Error(
679
676
  \`Error importing "@expo/config" relative to projectRoot "\${projectRoot}". Make sure to install node modules before running any prebuilds, and make sure that the project depends on the package named "expo".\`,
@@ -685,9 +682,7 @@ async function applyConfigPlugins(options) {
685
682
  /** @type {typeof import("@expo/config-plugins")} */
686
683
  let expoConfigPluginsModule;
687
684
  try {
688
- expoConfigPluginsModule = await import(
689
- path.dirname(require.resolve("@expo/config-plugins/package.json", { paths: [projectRoot] }))
690
- );
685
+ expoConfigPluginsModule = require("@expo/config-plugins");
691
686
  } catch (cause) {
692
687
  throw new Error(
693
688
  \`Error importing "@expo/config-plugins" relative to projectRoot "\${projectRoot}". Make sure to install node modules before running any prebuilds, and make sure that the project depends on the package named "expo".\`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-desktop",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "Best-effort desktop support for Expo",
5
5
  "keywords": [
6
6
  "android",
@@ -37,8 +37,8 @@
37
37
  "@clack/prompts": "^1.2.0",
38
38
  "arktype": "^2.2.0",
39
39
  "citty": "^0.2.2",
40
- "expo-desktop-config-plugins": "^1.1.23",
41
- "expo-desktop-prebuild-config": "^1.0.11",
40
+ "expo-desktop-config-plugins": "^1.1.25",
41
+ "expo-desktop-prebuild-config": "^1.0.12",
42
42
  "glob": "^10.5.0",
43
43
  "kleur": "^4.1.5",
44
44
  "mustache": "^4.2.0",