@bleedingdev/modern-js-create 3.2.0-ultramodern.86 → 3.2.0-ultramodern.87

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 +3 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1179,6 +1179,7 @@ function createAppPackage(scope, app, packageSource, enableTailwind, remotes = [
1179
1179
  private: true,
1180
1180
  name: ultramodern_workspace_packageName(scope, app.packageSuffix),
1181
1181
  version: '0.1.0',
1182
+ type: 'module',
1182
1183
  scripts: {
1183
1184
  dev: 'modern dev',
1184
1185
  build: app.exposes ? `ULTRAMODERN_ZEPHYR=false modern build && node ${relativeRootFor(app.directory)}/scripts/assert-mf-types.mjs` : 'ULTRAMODERN_ZEPHYR=false modern build',
@@ -4907,6 +4908,7 @@ assert(
4907
4908
  JSON.stringify(expectedZephyrDependencies),
4908
4909
  'Shell Zephyr dependencies must reference every vertical package',
4909
4910
  );
4911
+ assert(shellPackage.type === 'module', 'Shell package must use ESM module mode');
4910
4912
  const shellContract = generatedContract.apps?.find(app => app.id === 'shell-super-app');
4911
4913
  assert(shellContract?.deploy?.cloudflare?.workerName === expectedWorkerName('shell-super-app'), 'Shell Cloudflare workerName is incorrect');
4912
4914
  assert(shellContract?.deploy?.cloudflare?.publicUrlEnv === 'ULTRAMODERN_PUBLIC_URL_SHELL_SUPER_APP', 'Shell Cloudflare public URL env is incorrect');
@@ -4933,6 +4935,7 @@ assert(!('effectServices' in topology), 'Default APIs must be vertical-owned, no
4933
4935
  for (const vertical of fullStackVerticals) {
4934
4936
  const packageJson = readJson(\`\${vertical.path}/package.json\`);
4935
4937
  assert(packageJson.name === vertical.packageName, \`\${vertical.id} package name is incorrect\`);
4938
+ assert(packageJson.type === 'module', \`\${vertical.id} package must use ESM module mode\`);
4936
4939
  assert(packageJson.scripts?.['cloudflare:deploy'] === 'ULTRAMODERN_CLOUDFLARE_REQUIRE_PUBLIC_URLS=true pnpm run cloudflare:build && wrangler deploy --config .output/wrangler.json', \`\${vertical.id} must expose cloudflare:deploy\`);
4937
4940
  assert(packageJson.scripts?.['cloudflare:proof']?.includes(\`--app \${vertical.id}\`), \`\${vertical.id} must expose cloudflare:proof\`);
4938
4941
  assert(packageJson.dependencies?.['@modern-js/plugin-bff'], \`\${vertical.id} must depend on plugin-bff\`);
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
24
- "version": "3.2.0-ultramodern.86",
24
+ "version": "3.2.0-ultramodern.87",
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.86"
44
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.87"
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.86"
57
+ "frameworkVersion": "3.2.0-ultramodern.87"
58
58
  }
59
59
  }