@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.
@@ -879,6 +879,9 @@ import fs from "node:fs";
879
879
  import path from "node:path";
880
880
  var GIT_DIRECTORY = ".git";
881
881
  function findRepositoryRoot(startDir) {
882
+ if (process.env.NX_WORKSPACE_ROOT) {
883
+ return process.env.NX_WORKSPACE_ROOT;
884
+ }
882
885
  let currentDir = startDir || process.cwd();
883
886
  while (currentDir !== path.parse(currentDir).root) {
884
887
  const gitPath = path.join(currentDir, GIT_DIRECTORY);
@@ -1167,9 +1170,7 @@ var schema_default = {
1167
1170
  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"
1168
1171
  }
1169
1172
  },
1170
- required: [
1171
- "applications"
1172
- ],
1173
+ required: ["applications"],
1173
1174
  additionalProperties: false
1174
1175
  },
1175
1176
  Options: {
@@ -1264,9 +1265,7 @@ var schema_default = {
1264
1265
  description: "Vercel project ID"
1265
1266
  }
1266
1267
  },
1267
- required: [
1268
- "projectId"
1269
- ],
1268
+ required: ["projectId"],
1270
1269
  additionalProperties: false
1271
1270
  },
1272
1271
  HostConfig: {
@@ -1274,10 +1273,7 @@ var schema_default = {
1274
1273
  properties: {
1275
1274
  protocol: {
1276
1275
  type: "string",
1277
- enum: [
1278
- "http",
1279
- "https"
1280
- ],
1276
+ enum: ["http", "https"],
1281
1277
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1282
1278
  },
1283
1279
  host: {
@@ -1289,9 +1285,7 @@ var schema_default = {
1289
1285
  description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
1290
1286
  }
1291
1287
  },
1292
- required: [
1293
- "host"
1294
- ],
1288
+ required: ["host"],
1295
1289
  additionalProperties: false
1296
1290
  },
1297
1291
  Development: {
@@ -1333,10 +1327,7 @@ var schema_default = {
1333
1327
  },
1334
1328
  protocol: {
1335
1329
  type: "string",
1336
- enum: [
1337
- "http",
1338
- "https"
1339
- ],
1330
+ enum: ["http", "https"],
1340
1331
  description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1341
1332
  },
1342
1333
  port: {
@@ -1368,9 +1359,7 @@ var schema_default = {
1368
1359
  description: "Groups of path expressions that are routed to this application."
1369
1360
  }
1370
1361
  },
1371
- required: [
1372
- "routing"
1373
- ],
1362
+ required: ["routing"],
1374
1363
  additionalProperties: false
1375
1364
  },
1376
1365
  Routing: {
@@ -1397,9 +1386,7 @@ var schema_default = {
1397
1386
  }
1398
1387
  }
1399
1388
  },
1400
- required: [
1401
- "paths"
1402
- ],
1389
+ required: ["paths"],
1403
1390
  additionalProperties: false
1404
1391
  },
1405
1392
  ChildConfig: {
@@ -1420,9 +1407,7 @@ var schema_default = {
1420
1407
  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."
1421
1408
  }
1422
1409
  },
1423
- required: [
1424
- "partOf"
1425
- ],
1410
+ required: ["partOf"],
1426
1411
  additionalProperties: false
1427
1412
  }
1428
1413
  }