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