@expo/cli 57.0.9 → 57.0.11

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
@@ -139,7 +139,7 @@ const args = (0, _arg().default)({
139
139
  });
140
140
  if (args['--version']) {
141
141
  // Version is added in the build script.
142
- console.log("57.0.9");
142
+ console.log("57.0.11");
143
143
  process.exit(0);
144
144
  }
145
145
  if (args['--non-interactive']) {
@@ -76,7 +76,7 @@ function getInitMetadata() {
76
76
  return {
77
77
  format: 'v0-jsonl',
78
78
  // Version is added in the build script.
79
- version: "57.0.9" ?? 'UNVERSIONED'
79
+ version: "57.0.11" ?? 'UNVERSIONED'
80
80
  };
81
81
  }
82
82
  function getWellKnownTemporaryLogFile(projectRoot, command) {
@@ -196,7 +196,8 @@ class MetroBundlerDevServer extends _BundlerDevServer.BundlerDevServer {
196
196
  // https://github.com/expo/expo/blob/0dffdb15/packages/%40expo/metro-config/src/serializer/serializeChunks.ts#L422-L439
197
197
  // Alternatively, check whether `sourcesRoot` helps here
198
198
  const artifactBasename = encodeURIComponent(_path().default.basename(artifactFilename) + '.map');
199
- src = src.replace(/\/\/# sourceMappingURL=.*/g, `//# sourceMappingURL=${artifactBasename}`);
199
+ // Match only the trailing sourcemap directive
200
+ src = src.replace(/(?<=^|\n)\/\/# sourceMappingURL=[^\n]*(?=\s*$)/, `//# sourceMappingURL=${artifactBasename}`);
200
201
  const parsedMap = typeof contents.map === 'string' ? JSON.parse(contents.map) : contents.map;
201
202
  const mapData = {
202
203
  ...descriptor,