expo-desktop 0.1.15 → 0.1.17

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.
@@ -1,7 +1,9 @@
1
1
  import { glob } from "glob";
2
2
  import fs from "node:fs";
3
+ import { createRequire } from "node:module";
3
4
  import path from "node:path";
4
- const { MacOSConfig: { XcodeUtils }, } = require("expo-desktop-config-plugins");
5
+ const require = createRequire(import.meta.url);
6
+ const { MacOSConfig } = require("expo-desktop-config-plugins");
5
7
  /**
6
8
  * Returns a list of files within a template matched by the resolved rename
7
9
  * config.
@@ -120,8 +122,8 @@ export async function renameTemplateAppNameAsync(cwd, { filesafeName, files, })
120
122
  try {
121
123
  const replacement = contents
122
124
  .replace(/Hello App Display Name/g, safeName)
123
- .replace(/HelloWorld/g, XcodeUtils.sanitizedName(safeName))
124
- .replace(/helloworld/g, XcodeUtils.sanitizedName(safeName.toLowerCase()));
125
+ .replace(/HelloWorld/g, MacOSConfig.XcodeUtils.sanitizedName(safeName))
126
+ .replace(/helloworld/g, MacOSConfig.XcodeUtils.sanitizedName(safeName.toLowerCase()));
125
127
  if (replacement === contents) {
126
128
  return;
127
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-desktop",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Best-effort desktop support for Expo",
5
5
  "keywords": [
6
6
  "android",