@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.
- package/dist/bin/cli.cjs +12 -27
- package/dist/experimental/sveltekit.cjs +11 -26
- package/dist/experimental/sveltekit.cjs.map +1 -1
- package/dist/experimental/sveltekit.js +11 -26
- package/dist/experimental/sveltekit.js.map +1 -1
- package/dist/experimental/vite.cjs +11 -26
- package/dist/experimental/vite.cjs.map +1 -1
- package/dist/experimental/vite.js +11 -26
- package/dist/experimental/vite.js.map +1 -1
- package/dist/microfrontends/server.cjs +11 -26
- package/dist/microfrontends/server.cjs.map +1 -1
- package/dist/microfrontends/server.js +11 -26
- package/dist/microfrontends/server.js.map +1 -1
- package/dist/next/config.cjs +11 -26
- package/dist/next/config.cjs.map +1 -1
- package/dist/next/config.js +11 -26
- package/dist/next/config.js.map +1 -1
- package/dist/utils/mfe-port.cjs +11 -26
- package/dist/utils/mfe-port.cjs.map +1 -1
- package/dist/utils/mfe-port.js +11 -26
- package/dist/utils/mfe-port.js.map +1 -1
- package/dist/validation.cjs +8 -26
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.js +8 -26
- package/dist/validation.js.map +1 -1
- package/package.json +1 -1
|
@@ -875,6 +875,9 @@ import fs from "node:fs";
|
|
|
875
875
|
import path from "node:path";
|
|
876
876
|
var GIT_DIRECTORY = ".git";
|
|
877
877
|
function findRepositoryRoot(startDir) {
|
|
878
|
+
if (process.env.NX_WORKSPACE_ROOT) {
|
|
879
|
+
return process.env.NX_WORKSPACE_ROOT;
|
|
880
|
+
}
|
|
878
881
|
let currentDir = startDir || process.cwd();
|
|
879
882
|
while (currentDir !== path.parse(currentDir).root) {
|
|
880
883
|
const gitPath = path.join(currentDir, GIT_DIRECTORY);
|
|
@@ -1163,9 +1166,7 @@ var schema_default = {
|
|
|
1163
1166
|
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"
|
|
1164
1167
|
}
|
|
1165
1168
|
},
|
|
1166
|
-
required: [
|
|
1167
|
-
"applications"
|
|
1168
|
-
],
|
|
1169
|
+
required: ["applications"],
|
|
1169
1170
|
additionalProperties: false
|
|
1170
1171
|
},
|
|
1171
1172
|
Options: {
|
|
@@ -1260,9 +1261,7 @@ var schema_default = {
|
|
|
1260
1261
|
description: "Vercel project ID"
|
|
1261
1262
|
}
|
|
1262
1263
|
},
|
|
1263
|
-
required: [
|
|
1264
|
-
"projectId"
|
|
1265
|
-
],
|
|
1264
|
+
required: ["projectId"],
|
|
1266
1265
|
additionalProperties: false
|
|
1267
1266
|
},
|
|
1268
1267
|
HostConfig: {
|
|
@@ -1270,10 +1269,7 @@ var schema_default = {
|
|
|
1270
1269
|
properties: {
|
|
1271
1270
|
protocol: {
|
|
1272
1271
|
type: "string",
|
|
1273
|
-
enum: [
|
|
1274
|
-
"http",
|
|
1275
|
-
"https"
|
|
1276
|
-
],
|
|
1272
|
+
enum: ["http", "https"],
|
|
1277
1273
|
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1278
1274
|
},
|
|
1279
1275
|
host: {
|
|
@@ -1285,9 +1281,7 @@ var schema_default = {
|
|
|
1285
1281
|
description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
|
|
1286
1282
|
}
|
|
1287
1283
|
},
|
|
1288
|
-
required: [
|
|
1289
|
-
"host"
|
|
1290
|
-
],
|
|
1284
|
+
required: ["host"],
|
|
1291
1285
|
additionalProperties: false
|
|
1292
1286
|
},
|
|
1293
1287
|
Development: {
|
|
@@ -1329,10 +1323,7 @@ var schema_default = {
|
|
|
1329
1323
|
},
|
|
1330
1324
|
protocol: {
|
|
1331
1325
|
type: "string",
|
|
1332
|
-
enum: [
|
|
1333
|
-
"http",
|
|
1334
|
-
"https"
|
|
1335
|
-
],
|
|
1326
|
+
enum: ["http", "https"],
|
|
1336
1327
|
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1337
1328
|
},
|
|
1338
1329
|
port: {
|
|
@@ -1364,9 +1355,7 @@ var schema_default = {
|
|
|
1364
1355
|
description: "Groups of path expressions that are routed to this application."
|
|
1365
1356
|
}
|
|
1366
1357
|
},
|
|
1367
|
-
required: [
|
|
1368
|
-
"routing"
|
|
1369
|
-
],
|
|
1358
|
+
required: ["routing"],
|
|
1370
1359
|
additionalProperties: false
|
|
1371
1360
|
},
|
|
1372
1361
|
Routing: {
|
|
@@ -1393,9 +1382,7 @@ var schema_default = {
|
|
|
1393
1382
|
}
|
|
1394
1383
|
}
|
|
1395
1384
|
},
|
|
1396
|
-
required: [
|
|
1397
|
-
"paths"
|
|
1398
|
-
],
|
|
1385
|
+
required: ["paths"],
|
|
1399
1386
|
additionalProperties: false
|
|
1400
1387
|
},
|
|
1401
1388
|
ChildConfig: {
|
|
@@ -1416,9 +1403,7 @@ var schema_default = {
|
|
|
1416
1403
|
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."
|
|
1417
1404
|
}
|
|
1418
1405
|
},
|
|
1419
|
-
required: [
|
|
1420
|
-
"partOf"
|
|
1421
|
-
],
|
|
1406
|
+
required: ["partOf"],
|
|
1422
1407
|
additionalProperties: false
|
|
1423
1408
|
}
|
|
1424
1409
|
}
|