@bleedingdev/modern-js-create 3.2.0-ultramodern.33 → 3.2.0-ultramodern.34
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/index.js +15 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1445,10 +1445,11 @@ const zephyrRspackPlugin = () => ({
|
|
|
1445
1445
|
const appId = '${app.id}';
|
|
1446
1446
|
const cloudflareWorkerName = '${createCloudflareWorkerName(scope, app)}';
|
|
1447
1447
|
const port = Number(process.env['${app.portEnv}'] ?? ${app.port});
|
|
1448
|
+
const configuredSiteUrl = process.env['MODERN_PUBLIC_SITE_URL']?.trim();
|
|
1449
|
+
const configuredCloudflareUrl =
|
|
1450
|
+
process.env['${createCloudflarePublicUrlEnv(app)}']?.trim();
|
|
1448
1451
|
const siteUrl =
|
|
1449
|
-
|
|
1450
|
-
process.env['${createCloudflarePublicUrlEnv(app)}'] ??
|
|
1451
|
-
\`http://localhost:\${port}\`;
|
|
1452
|
+
configuredSiteUrl || configuredCloudflareUrl || \`http://localhost:\${port}\`;
|
|
1452
1453
|
|
|
1453
1454
|
export default defineConfig(
|
|
1454
1455
|
presetUltramodern(
|
|
@@ -4047,7 +4048,17 @@ const generatedContract = fs.existsSync(generatedContractPath)
|
|
|
4047
4048
|
: undefined;
|
|
4048
4049
|
const defaultAppDirs = ${JSON.stringify(remotes.map((remote)=>remote.directory), null, 2)};
|
|
4049
4050
|
|
|
4050
|
-
const
|
|
4051
|
+
const args = process.argv.slice(2);
|
|
4052
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
4053
|
+
process.stdout.write(\`Usage:
|
|
4054
|
+
node scripts/assert-mf-types.mjs [app-dir...]
|
|
4055
|
+
|
|
4056
|
+
Checks that every Module Federation remote with exposed modules emitted a non-empty dist/@mf-types.zip archive and uses the workspace TypeScript compiler.
|
|
4057
|
+
\`);
|
|
4058
|
+
process.exit(0);
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
const candidateDirs = args;
|
|
4051
4062
|
const appDirs = candidateDirs.length
|
|
4052
4063
|
? candidateDirs
|
|
4053
4064
|
: fs.existsSync(path.join(root, 'module-federation.config.ts'))
|