@expo/cli 0.25.1 → 0.25.2

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/bin/cli CHANGED
@@ -123,7 +123,7 @@ const args = (0, _arg().default)({
123
123
  });
124
124
  if (args['--version']) {
125
125
  // Version is added in the build script.
126
- console.log("0.25.1");
126
+ console.log("0.25.2");
127
127
  process.exit(0);
128
128
  }
129
129
  if (args['--non-interactive']) {
@@ -16,25 +16,6 @@ _export(exports, {
16
16
  return DevToolsPluginManager;
17
17
  }
18
18
  });
19
- function _path() {
20
- const data = /*#__PURE__*/ _interop_require_default(require("path"));
21
- _path = function() {
22
- return data;
23
- };
24
- return data;
25
- }
26
- function _resolvefrom() {
27
- const data = /*#__PURE__*/ _interop_require_default(require("resolve-from"));
28
- _resolvefrom = function() {
29
- return data;
30
- };
31
- return data;
32
- }
33
- function _interop_require_default(obj) {
34
- return obj && obj.__esModule ? obj : {
35
- default: obj
36
- };
37
- }
38
19
  const debug = require('debug')('expo:start:server:devtools');
39
20
  const DevToolsPluginEndpoint = '/_expo/plugins';
40
21
  class DevToolsPluginManager {
@@ -59,23 +40,14 @@ class DevToolsPluginManager {
59
40
  return (plugin == null ? void 0 : plugin.webpageRoot) ?? null;
60
41
  }
61
42
  async queryAutolinkedPluginsAsync(projectRoot) {
62
- const expoPackagePath = _resolvefrom().default.silent(projectRoot, 'expo/package.json');
63
- if (!expoPackagePath) {
64
- return [];
65
- }
66
- const resolvedPath = _resolvefrom().default.silent(_path().default.dirname(expoPackagePath), 'expo-modules-autolinking/exports');
67
- if (!resolvedPath) {
68
- return [];
69
- }
70
- const autolinkingModule = require(resolvedPath);
71
- if (!autolinkingModule.queryAutolinkingModulesFromProjectAsync) {
72
- throw new Error('Missing exported `queryAutolinkingModulesFromProjectAsync()` function from `expo-modules-autolinking`');
73
- }
74
- const plugins = await autolinkingModule.queryAutolinkingModulesFromProjectAsync(projectRoot, {
75
- platform: 'devtools',
76
- onlyProjectDeps: false
43
+ const autolinking = require('expo/internal/unstable-autolinking-exports');
44
+ const linker = autolinking.makeCachedDependenciesLinker({
45
+ projectRoot
77
46
  });
78
- debug('Found autolinked plugins', this.plugins);
47
+ const revisions = await autolinking.scanExpoModuleResolutionsForPlatform(linker, 'devtools');
48
+ const { resolveModuleAsync } = autolinking.getLinkingImplementationForPlatform('devtools');
49
+ const plugins = (await Promise.all(Object.values(revisions).map((revision)=>resolveModuleAsync(revision.name, revision)))).filter((maybePlugin)=>maybePlugin != null);
50
+ debug('Found autolinked plugins', plugins);
79
51
  return plugins;
80
52
  }
81
53
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/start/server/DevToolsPluginManager.ts"],"sourcesContent":["import type { ModuleDescriptorDevTools } from 'expo-modules-autolinking/exports';\nimport path from 'path';\nimport resolveFrom from 'resolve-from';\n\nconst debug = require('debug')('expo:start:server:devtools');\n\nexport const DevToolsPluginEndpoint = '/_expo/plugins';\n\ninterface AutolinkingPlugin {\n packageName: string;\n packageRoot: string;\n webpageRoot: string;\n}\n\nexport interface DevToolsPlugin extends AutolinkingPlugin {\n webpageEndpoint: string;\n}\n\nexport default class DevToolsPluginManager {\n private plugins: DevToolsPlugin[] | null = null;\n\n constructor(private projectRoot: string) {}\n\n public async queryPluginsAsync(): Promise<DevToolsPlugin[]> {\n if (this.plugins) {\n return this.plugins;\n }\n const plugins = (await this.queryAutolinkedPluginsAsync(this.projectRoot)).map((plugin) => ({\n ...plugin,\n webpageEndpoint: `${DevToolsPluginEndpoint}/${plugin.packageName}`,\n }));\n this.plugins = plugins;\n return this.plugins;\n }\n\n public async queryPluginWebpageRootAsync(pluginName: string): Promise<string | null> {\n const plugins = await this.queryPluginsAsync();\n const plugin = plugins.find((p) => p.packageName === pluginName);\n return plugin?.webpageRoot ?? null;\n }\n\n private async queryAutolinkedPluginsAsync(projectRoot: string): Promise<AutolinkingPlugin[]> {\n const expoPackagePath = resolveFrom.silent(projectRoot, 'expo/package.json');\n if (!expoPackagePath) {\n return [];\n }\n const resolvedPath = resolveFrom.silent(\n path.dirname(expoPackagePath),\n 'expo-modules-autolinking/exports'\n );\n if (!resolvedPath) {\n return [];\n }\n const autolinkingModule = require(\n resolvedPath\n ) as typeof import('expo-modules-autolinking/exports');\n if (!autolinkingModule.queryAutolinkingModulesFromProjectAsync) {\n throw new Error(\n 'Missing exported `queryAutolinkingModulesFromProjectAsync()` function from `expo-modules-autolinking`'\n );\n }\n const plugins = (await autolinkingModule.queryAutolinkingModulesFromProjectAsync(projectRoot, {\n platform: 'devtools',\n onlyProjectDeps: false,\n })) as ModuleDescriptorDevTools[];\n debug('Found autolinked plugins', this.plugins);\n return plugins;\n }\n}\n"],"names":["DevToolsPluginEndpoint","DevToolsPluginManager","debug","require","constructor","projectRoot","plugins","queryPluginsAsync","queryAutolinkedPluginsAsync","map","plugin","webpageEndpoint","packageName","queryPluginWebpageRootAsync","pluginName","find","p","webpageRoot","expoPackagePath","resolveFrom","silent","resolvedPath","path","dirname","autolinkingModule","queryAutolinkingModulesFromProjectAsync","Error","platform","onlyProjectDeps"],"mappings":";;;;;;;;;;;IAMaA,sBAAsB;eAAtBA;;IAYb,OAkDC;eAlDoBC;;;;gEAjBJ;;;;;;;gEACO;;;;;;;;;;;AAExB,MAAMC,QAAQC,QAAQ,SAAS;AAExB,MAAMH,yBAAyB;AAYvB,MAAMC;IAGnBG,YAAY,AAAQC,WAAmB,CAAE;aAArBA,cAAAA;aAFZC,UAAmC;IAED;IAE1C,MAAaC,oBAA+C;QAC1D,IAAI,IAAI,CAACD,OAAO,EAAE;YAChB,OAAO,IAAI,CAACA,OAAO;QACrB;QACA,MAAMA,UAAU,AAAC,CAAA,MAAM,IAAI,CAACE,2BAA2B,CAAC,IAAI,CAACH,WAAW,CAAA,EAAGI,GAAG,CAAC,CAACC,SAAY,CAAA;gBAC1F,GAAGA,MAAM;gBACTC,iBAAiB,GAAGX,uBAAuB,CAAC,EAAEU,OAAOE,WAAW,EAAE;YACpE,CAAA;QACA,IAAI,CAACN,OAAO,GAAGA;QACf,OAAO,IAAI,CAACA,OAAO;IACrB;IAEA,MAAaO,4BAA4BC,UAAkB,EAA0B;QACnF,MAAMR,UAAU,MAAM,IAAI,CAACC,iBAAiB;QAC5C,MAAMG,SAASJ,QAAQS,IAAI,CAAC,CAACC,IAAMA,EAAEJ,WAAW,KAAKE;QACrD,OAAOJ,CAAAA,0BAAAA,OAAQO,WAAW,KAAI;IAChC;IAEA,MAAcT,4BAA4BH,WAAmB,EAAgC;QAC3F,MAAMa,kBAAkBC,sBAAW,CAACC,MAAM,CAACf,aAAa;QACxD,IAAI,CAACa,iBAAiB;YACpB,OAAO,EAAE;QACX;QACA,MAAMG,eAAeF,sBAAW,CAACC,MAAM,CACrCE,eAAI,CAACC,OAAO,CAACL,kBACb;QAEF,IAAI,CAACG,cAAc;YACjB,OAAO,EAAE;QACX;QACA,MAAMG,oBAAoBrB,QACxBkB;QAEF,IAAI,CAACG,kBAAkBC,uCAAuC,EAAE;YAC9D,MAAM,IAAIC,MACR;QAEJ;QACA,MAAMpB,UAAW,MAAMkB,kBAAkBC,uCAAuC,CAACpB,aAAa;YAC5FsB,UAAU;YACVC,iBAAiB;QACnB;QACA1B,MAAM,4BAA4B,IAAI,CAACI,OAAO;QAC9C,OAAOA;IACT;AACF"}
1
+ {"version":3,"sources":["../../../../src/start/server/DevToolsPluginManager.ts"],"sourcesContent":["import type { ModuleDescriptorDevTools } from 'expo-modules-autolinking/exports';\n\nconst debug = require('debug')('expo:start:server:devtools');\n\nexport const DevToolsPluginEndpoint = '/_expo/plugins';\n\ninterface AutolinkingPlugin {\n packageName: string;\n packageRoot: string;\n webpageRoot: string;\n}\n\nexport interface DevToolsPlugin extends AutolinkingPlugin {\n webpageEndpoint: string;\n}\n\nexport default class DevToolsPluginManager {\n private plugins: DevToolsPlugin[] | null = null;\n\n constructor(private projectRoot: string) {}\n\n public async queryPluginsAsync(): Promise<DevToolsPlugin[]> {\n if (this.plugins) {\n return this.plugins;\n }\n const plugins = (await this.queryAutolinkedPluginsAsync(this.projectRoot)).map((plugin) => ({\n ...plugin,\n webpageEndpoint: `${DevToolsPluginEndpoint}/${plugin.packageName}`,\n }));\n this.plugins = plugins;\n return this.plugins;\n }\n\n public async queryPluginWebpageRootAsync(pluginName: string): Promise<string | null> {\n const plugins = await this.queryPluginsAsync();\n const plugin = plugins.find((p) => p.packageName === pluginName);\n return plugin?.webpageRoot ?? null;\n }\n\n private async queryAutolinkedPluginsAsync(projectRoot: string): Promise<AutolinkingPlugin[]> {\n const autolinking: typeof import('expo/internal/unstable-autolinking-exports') = require('expo/internal/unstable-autolinking-exports');\n const linker = autolinking.makeCachedDependenciesLinker({ projectRoot });\n const revisions = await autolinking.scanExpoModuleResolutionsForPlatform(linker, 'devtools');\n const { resolveModuleAsync } = autolinking.getLinkingImplementationForPlatform('devtools');\n const plugins: ModuleDescriptorDevTools[] = (\n await Promise.all(\n Object.values(revisions).map((revision) => resolveModuleAsync(revision.name, revision))\n )\n ).filter((maybePlugin) => maybePlugin != null);\n debug('Found autolinked plugins', plugins);\n return plugins;\n }\n}\n"],"names":["DevToolsPluginEndpoint","DevToolsPluginManager","debug","require","constructor","projectRoot","plugins","queryPluginsAsync","queryAutolinkedPluginsAsync","map","plugin","webpageEndpoint","packageName","queryPluginWebpageRootAsync","pluginName","find","p","webpageRoot","autolinking","linker","makeCachedDependenciesLinker","revisions","scanExpoModuleResolutionsForPlatform","resolveModuleAsync","getLinkingImplementationForPlatform","Promise","all","Object","values","revision","name","filter","maybePlugin"],"mappings":";;;;;;;;;;;IAIaA,sBAAsB;eAAtBA;;IAYb,OAoCC;eApCoBC;;;AAdrB,MAAMC,QAAQC,QAAQ,SAAS;AAExB,MAAMH,yBAAyB;AAYvB,MAAMC;IAGnBG,YAAY,AAAQC,WAAmB,CAAE;aAArBA,cAAAA;aAFZC,UAAmC;IAED;IAE1C,MAAaC,oBAA+C;QAC1D,IAAI,IAAI,CAACD,OAAO,EAAE;YAChB,OAAO,IAAI,CAACA,OAAO;QACrB;QACA,MAAMA,UAAU,AAAC,CAAA,MAAM,IAAI,CAACE,2BAA2B,CAAC,IAAI,CAACH,WAAW,CAAA,EAAGI,GAAG,CAAC,CAACC,SAAY,CAAA;gBAC1F,GAAGA,MAAM;gBACTC,iBAAiB,GAAGX,uBAAuB,CAAC,EAAEU,OAAOE,WAAW,EAAE;YACpE,CAAA;QACA,IAAI,CAACN,OAAO,GAAGA;QACf,OAAO,IAAI,CAACA,OAAO;IACrB;IAEA,MAAaO,4BAA4BC,UAAkB,EAA0B;QACnF,MAAMR,UAAU,MAAM,IAAI,CAACC,iBAAiB;QAC5C,MAAMG,SAASJ,QAAQS,IAAI,CAAC,CAACC,IAAMA,EAAEJ,WAAW,KAAKE;QACrD,OAAOJ,CAAAA,0BAAAA,OAAQO,WAAW,KAAI;IAChC;IAEA,MAAcT,4BAA4BH,WAAmB,EAAgC;QAC3F,MAAMa,cAA2Ef,QAAQ;QACzF,MAAMgB,SAASD,YAAYE,4BAA4B,CAAC;YAAEf;QAAY;QACtE,MAAMgB,YAAY,MAAMH,YAAYI,oCAAoC,CAACH,QAAQ;QACjF,MAAM,EAAEI,kBAAkB,EAAE,GAAGL,YAAYM,mCAAmC,CAAC;QAC/E,MAAMlB,UAAsC,AAC1C,CAAA,MAAMmB,QAAQC,GAAG,CACfC,OAAOC,MAAM,CAACP,WAAWZ,GAAG,CAAC,CAACoB,WAAaN,mBAAmBM,SAASC,IAAI,EAAED,WAC/E,EACAE,MAAM,CAAC,CAACC,cAAgBA,eAAe;QACzC9B,MAAM,4BAA4BI;QAClC,OAAOA;IACT;AACF"}
@@ -33,7 +33,7 @@ class FetchClient {
33
33
  this.headers = {
34
34
  accept: 'application/json',
35
35
  'content-type': 'application/json',
36
- 'user-agent': `expo-cli/${"0.25.1"}`,
36
+ 'user-agent': `expo-cli/${"0.25.2"}`,
37
37
  authorization: 'Basic ' + _nodebuffer().Buffer.from(`${target}:`).toString('base64')
38
38
  };
39
39
  }
@@ -83,7 +83,7 @@ function createContext() {
83
83
  cpu: summarizeCpuInfo(),
84
84
  app: {
85
85
  name: 'expo/cli',
86
- version: "0.25.1"
86
+ version: "0.25.2"
87
87
  },
88
88
  ci: _ciinfo().isCI ? {
89
89
  name: _ciinfo().name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/cli",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "The Expo CLI",
5
5
  "main": "build/bin/cli",
6
6
  "bin": {
@@ -43,20 +43,20 @@
43
43
  "@0no-co/graphql.web": "^1.0.8",
44
44
  "@babel/runtime": "^7.20.0",
45
45
  "@expo/code-signing-certificates": "^0.0.5",
46
- "@expo/config": "~12.0.1",
47
- "@expo/config-plugins": "~11.0.1",
46
+ "@expo/config": "~12.0.2",
47
+ "@expo/config-plugins": "~11.0.2",
48
48
  "@expo/devcert": "^1.1.2",
49
- "@expo/env": "~2.0.1",
50
- "@expo/image-utils": "^0.8.1",
51
- "@expo/json-file": "^10.0.1",
49
+ "@expo/env": "~2.0.2",
50
+ "@expo/image-utils": "^0.8.2",
51
+ "@expo/json-file": "^10.0.2",
52
52
  "@expo/metro": "~0.1.1",
53
- "@expo/metro-config": "~0.21.1",
54
- "@expo/osascript": "^2.3.1",
55
- "@expo/package-manager": "^1.9.1",
56
- "@expo/plist": "^0.4.1",
57
- "@expo/prebuild-config": "^10.0.1",
58
- "@expo/schema-utils": "^0.1.1",
59
- "@expo/server": "^0.7.1",
53
+ "@expo/metro-config": "~0.21.2",
54
+ "@expo/osascript": "^2.3.2",
55
+ "@expo/package-manager": "^1.9.2",
56
+ "@expo/plist": "^0.4.2",
57
+ "@expo/prebuild-config": "^10.0.2",
58
+ "@expo/schema-utils": "^0.1.2",
59
+ "@expo/server": "^0.7.2",
60
60
  "@expo/spawn-async": "^1.7.2",
61
61
  "@expo/ws-tunnel": "^1.0.1",
62
62
  "@expo/xcpretty": "^4.3.0",
@@ -155,7 +155,7 @@
155
155
  "@types/ws": "^8.5.4",
156
156
  "devtools-protocol": "^0.0.1113120",
157
157
  "expo-atlas": "^0.4.1",
158
- "expo-module-scripts": "^5.0.1",
158
+ "expo-module-scripts": "^5.0.2",
159
159
  "find-process": "^1.4.7",
160
160
  "jest-runner-tsd": "^6.0.0",
161
161
  "klaw-sync": "^6.0.0",
@@ -168,5 +168,5 @@
168
168
  "tree-kill": "^1.2.2",
169
169
  "tsd": "^0.28.1"
170
170
  },
171
- "gitHead": "2f7f90d0736af48cb542ccbc8addb836e330693a"
171
+ "gitHead": "eaa9b645058cf2233fbb27bb21a19bc605c90a88"
172
172
  }