nativescript 9.0.6-rc.0 → 9.0.6-rc.1

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.
@@ -4,6 +4,7 @@ exports.DevtoolsHostService = void 0;
4
4
  const http = require("http");
5
5
  const path = require("path");
6
6
  const fs = require("fs");
7
+ const constants_1 = require("../constants");
7
8
  const yok_1 = require("../common/yok");
8
9
  const LOOPBACK_HOST = "127.0.0.1";
9
10
  const DEVTOOLS_ORIGIN = "https://chrome-devtools-frontend.appspot.com";
@@ -31,7 +32,13 @@ class DevtoolsHostService {
31
32
  return { platform: key, origin: this.formatOrigin(existing.port) };
32
33
  }
33
34
  const platformData = this.$platformsDataService.getPlatformData(platform, projectData);
34
- const rootDir = platformData === null || platformData === void 0 ? void 0 : platformData.appDestinationDirectoryPath;
35
+ // Webpack writes to <appDestinationDirectoryPath>/app on both iOS
36
+ // (platforms/ios/<appName>/app) and Android
37
+ // (platforms/android/app/src/main/assets/app). Match that exactly so
38
+ // requests for /bundle.mjs.map resolve to the actual emitted file.
39
+ const rootDir = (platformData === null || platformData === void 0 ? void 0 : platformData.appDestinationDirectoryPath)
40
+ ? path.join(platformData.appDestinationDirectoryPath, constants_1.APP_FOLDER_NAME)
41
+ : null;
35
42
  if (!rootDir) {
36
43
  this.$logger.warn(`DevTools host: unable to resolve output directory for ${platform}.`);
37
44
  return null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "main": "./lib/nativescript-cli-lib.js",
4
- "version": "9.0.6-rc.0",
4
+ "version": "9.0.6-rc.1",
5
5
  "author": "NativeScript <oss@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {