@expo/cli 0.22.3 → 0.22.5

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
@@ -121,7 +121,7 @@ const args = (0, _arg().default)({
121
121
  });
122
122
  if (args["--version"]) {
123
123
  // Version is added in the build script.
124
- console.log("0.22.3");
124
+ console.log("0.22.5");
125
125
  process.exit(0);
126
126
  }
127
127
  if (args["--non-interactive"]) {
@@ -101,6 +101,7 @@ const _waitForMetroToObserveTypeScriptFile = require("./waitForMetroToObserveTyp
101
101
  const _log = require("../../../log");
102
102
  const _env1 = require("../../../utils/env");
103
103
  const _errors = require("../../../utils/errors");
104
+ const _filePath = require("../../../utils/filePath");
104
105
  const _port = require("../../../utils/port");
105
106
  const _bundlerDevServer = require("../BundlerDevServer");
106
107
  const _getStaticRenderFunctions = require("../getStaticRenderFunctions");
@@ -202,7 +203,7 @@ class MetroBundlerDevServer extends _bundlerDevServer.BundlerDevServer {
202
203
  });
203
204
  }
204
205
  for (const route of manifest.apiRoutes){
205
- const filepath = route.file.startsWith("/") ? route.file : _path().default.join(appDir, route.file);
206
+ const filepath = _path().default.isAbsolute(route.file) ? route.file : _path().default.join(appDir, route.file);
206
207
  const contents = await this.bundleApiRoute(filepath, {
207
208
  platform
208
209
  });
@@ -444,7 +445,7 @@ class MetroBundlerDevServer extends _bundlerDevServer.BundlerDevServer {
444
445
  transformOptions
445
446
  });
446
447
  // Use fully qualified URL with all options to represent the file path that's used for source maps and HMR. This prevents collisions.
447
- const filename = (0, _metroOptions.createBundleUrlPath)({
448
+ const filename = (0, _metroOptions.createBundleUrlOsPath)({
448
449
  ...opts,
449
450
  mainModuleName: resolvedEntryFilePath
450
451
  });
@@ -573,7 +574,8 @@ class MetroBundlerDevServer extends _bundlerDevServer.BundlerDevServer {
573
574
  bundle.artifacts.push(...cssModules);
574
575
  const serverRoot = (0, _paths().getMetroServerRoot)(this.projectRoot);
575
576
  // HACK: Maybe this should be done in the serializer.
576
- const clientBoundariesAsOpaqueIds = clientBoundaries.map((boundary)=>_path().default.relative(serverRoot, boundary));
577
+ const clientBoundariesAsOpaqueIds = clientBoundaries.map((boundary)=>// NOTE(cedric): relative module specifiers / IDs should always be POSIX formatted
578
+ (0, _filePath.toPosixPath)(_path().default.relative(serverRoot, boundary)));
577
579
  const moduleIdToSplitBundle = bundle.artifacts.map((artifact)=>{
578
580
  var ref;
579
581
  return (artifact == null ? void 0 : (ref = artifact.metadata) == null ? void 0 : ref.paths) && Object.values(artifact.metadata.paths);