@bleedingdev/modern-js-create 3.2.0-ultramodern.33 → 3.2.0-ultramodern.35

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -4
  2. package/package.json +3 -3
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
- process.env['MODERN_PUBLIC_SITE_URL'] ??
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 candidateDirs = process.argv.slice(2);
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'))
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
24
- "version": "3.2.0-ultramodern.33",
24
+ "version": "3.2.0-ultramodern.35",
25
25
  "types": "./dist/types/index.d.ts",
26
26
  "main": "./dist/index.js",
27
27
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "@types/node": "^25.9.1",
42
42
  "@typescript/native-preview": "7.0.0-dev.20260527.2",
43
43
  "tsx": "^4.22.3",
44
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.31"
44
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.35"
45
45
  },
46
46
  "publishConfig": {
47
47
  "registry": "https://registry.npmjs.org/",
@@ -54,6 +54,6 @@
54
54
  "start": "node ./dist/index.js"
55
55
  },
56
56
  "ultramodern": {
57
- "frameworkVersion": "3.2.0-ultramodern.31"
57
+ "frameworkVersion": "3.2.0-ultramodern.35"
58
58
  }
59
59
  }