@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.
@@ -920,6 +920,9 @@ var import_node_fs = __toESM(require("fs"), 1);
920
920
  var import_node_path = __toESM(require("path"), 1);
921
921
  var GIT_DIRECTORY = ".git";
922
922
  function findRepositoryRoot(startDir) {
923
+ if (process.env.NX_WORKSPACE_ROOT) {
924
+ return process.env.NX_WORKSPACE_ROOT;
925
+ }
923
926
  let currentDir = startDir || process.cwd();
924
927
  while (currentDir !== import_node_path.default.parse(currentDir).root) {
925
928
  const gitPath = import_node_path.default.join(currentDir, GIT_DIRECTORY);
@@ -1208,9 +1211,7 @@ var schema_default = {
1208
1211
  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"
1209
1212
  }
1210
1213
  },
1211
- required: [
1212
- "applications"
1213
- ],
1214
+ required: ["applications"],
1214
1215
  additionalProperties: false
1215
1216
  },
1216
1217
  Options: {
@@ -1305,9 +1306,7 @@ var schema_default = {
1305
1306
  description: "Vercel project ID"
1306
1307
  }
1307
1308
  },
1308
- required: [
1309
- "projectId"
1310
- ],
1309
+ required: ["projectId"],
1311
1310
  additionalProperties: false
1312
1311
  },
1313
1312
  HostConfig: {
@@ -1315,10 +1314,7 @@ var schema_default = {
1315
1314
  properties: {
1316
1315
  protocol: {
1317
1316
  type: "string",
1318
- enum: [
1319
- "http",
1320
- "https"
1321
- ],
1317
+ enum: ["http", "https"],
1322
1318
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1323
1319
  },
1324
1320
  host: {
@@ -1330,9 +1326,7 @@ var schema_default = {
1330
1326
  description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
1331
1327
  }
1332
1328
  },
1333
- required: [
1334
- "host"
1335
- ],
1329
+ required: ["host"],
1336
1330
  additionalProperties: false
1337
1331
  },
1338
1332
  Development: {
@@ -1374,10 +1368,7 @@ var schema_default = {
1374
1368
  },
1375
1369
  protocol: {
1376
1370
  type: "string",
1377
- enum: [
1378
- "http",
1379
- "https"
1380
- ],
1371
+ enum: ["http", "https"],
1381
1372
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1382
1373
  },
1383
1374
  port: {
@@ -1409,9 +1400,7 @@ var schema_default = {
1409
1400
  description: "Groups of path expressions that are routed to this application."
1410
1401
  }
1411
1402
  },
1412
- required: [
1413
- "routing"
1414
- ],
1403
+ required: ["routing"],
1415
1404
  additionalProperties: false
1416
1405
  },
1417
1406
  Routing: {
@@ -1438,9 +1427,7 @@ var schema_default = {
1438
1427
  }
1439
1428
  }
1440
1429
  },
1441
- required: [
1442
- "paths"
1443
- ],
1430
+ required: ["paths"],
1444
1431
  additionalProperties: false
1445
1432
  },
1446
1433
  ChildConfig: {
@@ -1461,9 +1448,7 @@ var schema_default = {
1461
1448
  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."
1462
1449
  }
1463
1450
  },
1464
- required: [
1465
- "partOf"
1466
- ],
1451
+ required: ["partOf"],
1467
1452
  additionalProperties: false
1468
1453
  }
1469
1454
  }