@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.
@@ -884,6 +884,9 @@ import fs from "node:fs";
884
884
  import path from "node:path";
885
885
  var GIT_DIRECTORY = ".git";
886
886
  function findRepositoryRoot(startDir) {
887
+ if (process.env.NX_WORKSPACE_ROOT) {
888
+ return process.env.NX_WORKSPACE_ROOT;
889
+ }
887
890
  let currentDir = startDir || process.cwd();
888
891
  while (currentDir !== path.parse(currentDir).root) {
889
892
  const gitPath = path.join(currentDir, GIT_DIRECTORY);
@@ -1172,9 +1175,7 @@ var schema_default = {
1172
1175
  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"
1173
1176
  }
1174
1177
  },
1175
- required: [
1176
- "applications"
1177
- ],
1178
+ required: ["applications"],
1178
1179
  additionalProperties: false
1179
1180
  },
1180
1181
  Options: {
@@ -1269,9 +1270,7 @@ var schema_default = {
1269
1270
  description: "Vercel project ID"
1270
1271
  }
1271
1272
  },
1272
- required: [
1273
- "projectId"
1274
- ],
1273
+ required: ["projectId"],
1275
1274
  additionalProperties: false
1276
1275
  },
1277
1276
  HostConfig: {
@@ -1279,10 +1278,7 @@ var schema_default = {
1279
1278
  properties: {
1280
1279
  protocol: {
1281
1280
  type: "string",
1282
- enum: [
1283
- "http",
1284
- "https"
1285
- ],
1281
+ enum: ["http", "https"],
1286
1282
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1287
1283
  },
1288
1284
  host: {
@@ -1294,9 +1290,7 @@ var schema_default = {
1294
1290
  description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
1295
1291
  }
1296
1292
  },
1297
- required: [
1298
- "host"
1299
- ],
1293
+ required: ["host"],
1300
1294
  additionalProperties: false
1301
1295
  },
1302
1296
  Development: {
@@ -1338,10 +1332,7 @@ var schema_default = {
1338
1332
  },
1339
1333
  protocol: {
1340
1334
  type: "string",
1341
- enum: [
1342
- "http",
1343
- "https"
1344
- ],
1335
+ enum: ["http", "https"],
1345
1336
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1346
1337
  },
1347
1338
  port: {
@@ -1373,9 +1364,7 @@ var schema_default = {
1373
1364
  description: "Groups of path expressions that are routed to this application."
1374
1365
  }
1375
1366
  },
1376
- required: [
1377
- "routing"
1378
- ],
1367
+ required: ["routing"],
1379
1368
  additionalProperties: false
1380
1369
  },
1381
1370
  Routing: {
@@ -1402,9 +1391,7 @@ var schema_default = {
1402
1391
  }
1403
1392
  }
1404
1393
  },
1405
- required: [
1406
- "paths"
1407
- ],
1394
+ required: ["paths"],
1408
1395
  additionalProperties: false
1409
1396
  },
1410
1397
  ChildConfig: {
@@ -1425,9 +1412,7 @@ var schema_default = {
1425
1412
  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."
1426
1413
  }
1427
1414
  },
1428
- required: [
1429
- "partOf"
1430
- ],
1415
+ required: ["partOf"],
1431
1416
  additionalProperties: false
1432
1417
  }
1433
1418
  }