@vercel/microfrontends 1.0.1-canary.4 → 1.1.0

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.
@@ -909,6 +909,9 @@ var import_node_fs = __toESM(require("fs"), 1);
909
909
  var import_node_path = __toESM(require("path"), 1);
910
910
  var GIT_DIRECTORY = ".git";
911
911
  function findRepositoryRoot(startDir) {
912
+ if (process.env.NX_WORKSPACE_ROOT) {
913
+ return process.env.NX_WORKSPACE_ROOT;
914
+ }
912
915
  let currentDir = startDir || process.cwd();
913
916
  while (currentDir !== import_node_path.default.parse(currentDir).root) {
914
917
  const gitPath = import_node_path.default.join(currentDir, GIT_DIRECTORY);
@@ -1197,9 +1200,7 @@ var schema_default = {
1197
1200
  description: "Mapping of application names to the routes that they host. Only needs to be defined in the application that owns the primary microfrontend domain"
1198
1201
  }
1199
1202
  },
1200
- required: [
1201
- "applications"
1202
- ],
1203
+ required: ["applications"],
1203
1204
  additionalProperties: false
1204
1205
  },
1205
1206
  Options: {
@@ -1294,9 +1295,7 @@ var schema_default = {
1294
1295
  description: "Vercel project ID"
1295
1296
  }
1296
1297
  },
1297
- required: [
1298
- "projectId"
1299
- ],
1298
+ required: ["projectId"],
1300
1299
  additionalProperties: false
1301
1300
  },
1302
1301
  HostConfig: {
@@ -1304,10 +1303,7 @@ var schema_default = {
1304
1303
  properties: {
1305
1304
  protocol: {
1306
1305
  type: "string",
1307
- enum: [
1308
- "http",
1309
- "https"
1310
- ],
1306
+ enum: ["http", "https"],
1311
1307
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1312
1308
  },
1313
1309
  host: {
@@ -1319,9 +1315,7 @@ var schema_default = {
1319
1315
  description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
1320
1316
  }
1321
1317
  },
1322
- required: [
1323
- "host"
1324
- ],
1318
+ required: ["host"],
1325
1319
  additionalProperties: false
1326
1320
  },
1327
1321
  Development: {
@@ -1363,10 +1357,7 @@ var schema_default = {
1363
1357
  },
1364
1358
  protocol: {
1365
1359
  type: "string",
1366
- enum: [
1367
- "http",
1368
- "https"
1369
- ],
1360
+ enum: ["http", "https"],
1370
1361
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1371
1362
  },
1372
1363
  port: {
@@ -1398,9 +1389,7 @@ var schema_default = {
1398
1389
  description: "Groups of path expressions that are routed to this application."
1399
1390
  }
1400
1391
  },
1401
- required: [
1402
- "routing"
1403
- ],
1392
+ required: ["routing"],
1404
1393
  additionalProperties: false
1405
1394
  },
1406
1395
  Routing: {
@@ -1427,9 +1416,7 @@ var schema_default = {
1427
1416
  }
1428
1417
  }
1429
1418
  },
1430
- required: [
1431
- "paths"
1432
- ],
1419
+ required: ["paths"],
1433
1420
  additionalProperties: false
1434
1421
  },
1435
1422
  ChildConfig: {
@@ -1450,9 +1437,7 @@ var schema_default = {
1450
1437
  description: "Applications that only serve a subset of the microfrontend routes only need to reference the name of the primary application that owns the full microfrontends configuration."
1451
1438
  }
1452
1439
  },
1453
- required: [
1454
- "partOf"
1455
- ],
1440
+ required: ["partOf"],
1456
1441
  additionalProperties: false
1457
1442
  }
1458
1443
  }