@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.
@@ -911,6 +911,9 @@ var import_node_fs = __toESM(require("fs"), 1);
911
911
  var import_node_path = __toESM(require("path"), 1);
912
912
  var GIT_DIRECTORY = ".git";
913
913
  function findRepositoryRoot(startDir) {
914
+ if (process.env.NX_WORKSPACE_ROOT) {
915
+ return process.env.NX_WORKSPACE_ROOT;
916
+ }
914
917
  let currentDir = startDir || process.cwd();
915
918
  while (currentDir !== import_node_path.default.parse(currentDir).root) {
916
919
  const gitPath = import_node_path.default.join(currentDir, GIT_DIRECTORY);
@@ -1199,9 +1202,7 @@ var schema_default = {
1199
1202
  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"
1200
1203
  }
1201
1204
  },
1202
- required: [
1203
- "applications"
1204
- ],
1205
+ required: ["applications"],
1205
1206
  additionalProperties: false
1206
1207
  },
1207
1208
  Options: {
@@ -1296,9 +1297,7 @@ var schema_default = {
1296
1297
  description: "Vercel project ID"
1297
1298
  }
1298
1299
  },
1299
- required: [
1300
- "projectId"
1301
- ],
1300
+ required: ["projectId"],
1302
1301
  additionalProperties: false
1303
1302
  },
1304
1303
  HostConfig: {
@@ -1306,10 +1305,7 @@ var schema_default = {
1306
1305
  properties: {
1307
1306
  protocol: {
1308
1307
  type: "string",
1309
- enum: [
1310
- "http",
1311
- "https"
1312
- ],
1308
+ enum: ["http", "https"],
1313
1309
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1314
1310
  },
1315
1311
  host: {
@@ -1321,9 +1317,7 @@ var schema_default = {
1321
1317
  description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
1322
1318
  }
1323
1319
  },
1324
- required: [
1325
- "host"
1326
- ],
1320
+ required: ["host"],
1327
1321
  additionalProperties: false
1328
1322
  },
1329
1323
  Development: {
@@ -1365,10 +1359,7 @@ var schema_default = {
1365
1359
  },
1366
1360
  protocol: {
1367
1361
  type: "string",
1368
- enum: [
1369
- "http",
1370
- "https"
1371
- ],
1362
+ enum: ["http", "https"],
1372
1363
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1373
1364
  },
1374
1365
  port: {
@@ -1400,9 +1391,7 @@ var schema_default = {
1400
1391
  description: "Groups of path expressions that are routed to this application."
1401
1392
  }
1402
1393
  },
1403
- required: [
1404
- "routing"
1405
- ],
1394
+ required: ["routing"],
1406
1395
  additionalProperties: false
1407
1396
  },
1408
1397
  Routing: {
@@ -1429,9 +1418,7 @@ var schema_default = {
1429
1418
  }
1430
1419
  }
1431
1420
  },
1432
- required: [
1433
- "paths"
1434
- ],
1421
+ required: ["paths"],
1435
1422
  additionalProperties: false
1436
1423
  },
1437
1424
  ChildConfig: {
@@ -1452,9 +1439,7 @@ var schema_default = {
1452
1439
  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."
1453
1440
  }
1454
1441
  },
1455
- required: [
1456
- "partOf"
1457
- ],
1442
+ required: ["partOf"],
1458
1443
  additionalProperties: false
1459
1444
  }
1460
1445
  }