@bleedingdev/modern-js-create 3.5.0-ultramodern.35 → 3.5.0-ultramodern.37

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 (198) hide show
  1. package/README.md +11 -14
  2. package/dist/cjs/cli/flags.cjs +0 -31
  3. package/dist/cjs/cli/help.cjs +0 -1
  4. package/dist/cjs/cli/package-source.cjs +0 -3
  5. package/dist/cjs/cli/prompts.cjs +2 -20
  6. package/dist/cjs/index.cjs +0 -5
  7. package/dist/cjs/locale/en.cjs +2 -6
  8. package/dist/cjs/locale/zh.cjs +2 -6
  9. package/dist/cjs/ultramodern-package-source.cjs +0 -32
  10. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/declaration-patches.cjs +1 -0
  11. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-build-identity.cjs +1 -1
  12. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-modern-configs.cjs +1 -1
  13. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/package-cohort.cjs +5 -3
  14. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/pnpm-policy.cjs +3 -0
  15. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.cjs +2 -8
  16. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.cjs +8 -0
  17. package/dist/cjs/ultramodern-workspace/add-vertical/plan.cjs +0 -12
  18. package/dist/cjs/ultramodern-workspace/add-vertical/preflight.cjs +2 -26
  19. package/dist/cjs/ultramodern-workspace/add-vertical/shell-files.cjs +1 -1
  20. package/dist/cjs/ultramodern-workspace/add-vertical/topology.cjs +6 -4
  21. package/dist/cjs/ultramodern-workspace/app-files.cjs +2 -23
  22. package/dist/cjs/ultramodern-workspace/contracts.cjs +25 -16
  23. package/dist/cjs/ultramodern-workspace/delivery-unit-sync.cjs +1 -1
  24. package/dist/cjs/ultramodern-workspace/demo-components.cjs +0 -3
  25. package/dist/cjs/ultramodern-workspace/fs-io.cjs +0 -33
  26. package/dist/cjs/ultramodern-workspace/locales.cjs +1 -14
  27. package/dist/cjs/ultramodern-workspace/mf-validation/inspect.cjs +2 -10
  28. package/dist/cjs/ultramodern-workspace/mf-validation/object-literal.cjs +2 -17
  29. package/dist/cjs/ultramodern-workspace/mf-validation/path-utils.cjs +0 -6
  30. package/dist/cjs/ultramodern-workspace/mf-validation/syntax.cjs +2 -29
  31. package/dist/cjs/ultramodern-workspace/mf-validation/validate.cjs +1 -1
  32. package/dist/cjs/ultramodern-workspace/module-federation/config.cjs +19 -8
  33. package/dist/cjs/ultramodern-workspace/module-federation/reexport-module.cjs +3 -2
  34. package/dist/cjs/ultramodern-workspace/naming.cjs +0 -6
  35. package/dist/cjs/ultramodern-workspace/package-json.cjs +5 -14
  36. package/dist/cjs/ultramodern-workspace/policy.cjs +0 -21
  37. package/dist/cjs/ultramodern-workspace/public-surface.cjs +0 -21
  38. package/dist/cjs/ultramodern-workspace/routes.cjs +0 -15
  39. package/dist/cjs/ultramodern-workspace/shared-patches.cjs +4 -3
  40. package/dist/cjs/ultramodern-workspace/tooling-command-catalog.cjs +2 -8
  41. package/dist/cjs/ultramodern-workspace/versions.cjs +25 -37
  42. package/dist/cjs/ultramodern-workspace/workspace-script-plan.cjs +2 -20
  43. package/dist/cjs/ultramodern-workspace/workspace-scripts.cjs +0 -21
  44. package/dist/cjs/ultramodern-workspace/write-app.cjs +3 -6
  45. package/dist/cjs/ultramodern-workspace/write-workspace.cjs +3 -5
  46. package/dist/esm/cli/flags.js +1 -11
  47. package/dist/esm/cli/help.js +0 -1
  48. package/dist/esm/cli/package-source.js +1 -1
  49. package/dist/esm/cli/prompts.js +2 -14
  50. package/dist/esm/index.js +2 -7
  51. package/dist/esm/locale/en.js +2 -6
  52. package/dist/esm/locale/zh.js +2 -6
  53. package/dist/esm/ultramodern-package-source.js +1 -24
  54. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/declaration-patches.js +2 -1
  55. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-build-identity.js +1 -1
  56. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-modern-configs.js +1 -1
  57. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/package-cohort.js +6 -4
  58. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/pnpm-policy.js +4 -1
  59. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.js +1 -1
  60. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.js +3 -1
  61. package/dist/esm/ultramodern-workspace/add-vertical/plan.js +1 -1
  62. package/dist/esm/ultramodern-workspace/add-vertical/preflight.js +1 -1
  63. package/dist/esm/ultramodern-workspace/add-vertical/shell-files.js +1 -1
  64. package/dist/esm/ultramodern-workspace/add-vertical/topology.js +6 -4
  65. package/dist/esm/ultramodern-workspace/app-files.js +1 -4
  66. package/dist/esm/ultramodern-workspace/contracts.js +25 -16
  67. package/dist/esm/ultramodern-workspace/delivery-unit-sync.js +1 -1
  68. package/dist/esm/ultramodern-workspace/demo-components.js +1 -1
  69. package/dist/esm/ultramodern-workspace/fs-io.js +1 -15
  70. package/dist/esm/ultramodern-workspace/locales.js +1 -1
  71. package/dist/esm/ultramodern-workspace/mf-validation/inspect.js +3 -2
  72. package/dist/esm/ultramodern-workspace/mf-validation/object-literal.js +1 -1
  73. package/dist/esm/ultramodern-workspace/mf-validation/path-utils.js +1 -1
  74. package/dist/esm/ultramodern-workspace/mf-validation/syntax.js +1 -1
  75. package/dist/esm/ultramodern-workspace/mf-validation/validate.js +1 -1
  76. package/dist/esm/ultramodern-workspace/module-federation/config.js +19 -8
  77. package/dist/esm/ultramodern-workspace/module-federation/reexport-module.js +4 -3
  78. package/dist/esm/ultramodern-workspace/naming.js +1 -1
  79. package/dist/esm/ultramodern-workspace/package-json.js +5 -8
  80. package/dist/esm/ultramodern-workspace/policy.js +1 -7
  81. package/dist/esm/ultramodern-workspace/public-surface.js +1 -1
  82. package/dist/esm/ultramodern-workspace/routes.js +1 -1
  83. package/dist/esm/ultramodern-workspace/shared-patches.js +4 -3
  84. package/dist/esm/ultramodern-workspace/tooling-command-catalog.js +1 -1
  85. package/dist/esm/ultramodern-workspace/versions.js +20 -23
  86. package/dist/esm/ultramodern-workspace/workspace-script-plan.js +1 -1
  87. package/dist/esm/ultramodern-workspace/workspace-scripts.js +6 -9
  88. package/dist/esm/ultramodern-workspace/write-app.js +4 -7
  89. package/dist/esm/ultramodern-workspace/write-workspace.js +3 -2
  90. package/dist/esm-node/cli/flags.js +1 -11
  91. package/dist/esm-node/cli/help.js +0 -1
  92. package/dist/esm-node/cli/package-source.js +1 -1
  93. package/dist/esm-node/cli/prompts.js +2 -14
  94. package/dist/esm-node/index.js +2 -7
  95. package/dist/esm-node/locale/en.js +2 -6
  96. package/dist/esm-node/locale/zh.js +2 -6
  97. package/dist/esm-node/ultramodern-package-source.js +1 -24
  98. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/declaration-patches.js +2 -1
  99. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-build-identity.js +1 -1
  100. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-modern-configs.js +1 -1
  101. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/package-cohort.js +6 -4
  102. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/pnpm-policy.js +4 -1
  103. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.js +1 -1
  104. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.js +3 -1
  105. package/dist/esm-node/ultramodern-workspace/add-vertical/plan.js +1 -1
  106. package/dist/esm-node/ultramodern-workspace/add-vertical/preflight.js +1 -1
  107. package/dist/esm-node/ultramodern-workspace/add-vertical/shell-files.js +1 -1
  108. package/dist/esm-node/ultramodern-workspace/add-vertical/topology.js +6 -4
  109. package/dist/esm-node/ultramodern-workspace/app-files.js +1 -4
  110. package/dist/esm-node/ultramodern-workspace/contracts.js +25 -16
  111. package/dist/esm-node/ultramodern-workspace/delivery-unit-sync.js +1 -1
  112. package/dist/esm-node/ultramodern-workspace/demo-components.js +1 -1
  113. package/dist/esm-node/ultramodern-workspace/fs-io.js +1 -15
  114. package/dist/esm-node/ultramodern-workspace/locales.js +1 -1
  115. package/dist/esm-node/ultramodern-workspace/mf-validation/inspect.js +3 -2
  116. package/dist/esm-node/ultramodern-workspace/mf-validation/object-literal.js +1 -1
  117. package/dist/esm-node/ultramodern-workspace/mf-validation/path-utils.js +1 -1
  118. package/dist/esm-node/ultramodern-workspace/mf-validation/syntax.js +1 -1
  119. package/dist/esm-node/ultramodern-workspace/mf-validation/validate.js +1 -1
  120. package/dist/esm-node/ultramodern-workspace/module-federation/config.js +19 -8
  121. package/dist/esm-node/ultramodern-workspace/module-federation/reexport-module.js +4 -3
  122. package/dist/esm-node/ultramodern-workspace/naming.js +1 -1
  123. package/dist/esm-node/ultramodern-workspace/package-json.js +5 -8
  124. package/dist/esm-node/ultramodern-workspace/policy.js +1 -7
  125. package/dist/esm-node/ultramodern-workspace/public-surface.js +1 -1
  126. package/dist/esm-node/ultramodern-workspace/routes.js +1 -1
  127. package/dist/esm-node/ultramodern-workspace/shared-patches.js +4 -3
  128. package/dist/esm-node/ultramodern-workspace/tooling-command-catalog.js +1 -1
  129. package/dist/esm-node/ultramodern-workspace/versions.js +20 -23
  130. package/dist/esm-node/ultramodern-workspace/workspace-script-plan.js +1 -1
  131. package/dist/esm-node/ultramodern-workspace/workspace-scripts.js +6 -9
  132. package/dist/esm-node/ultramodern-workspace/write-app.js +4 -7
  133. package/dist/esm-node/ultramodern-workspace/write-workspace.js +3 -2
  134. package/dist/types/cli/flags.d.ts +4 -9
  135. package/dist/types/cli/package-source.d.ts +3 -3
  136. package/dist/types/cli/project-setup.d.ts +1 -1
  137. package/dist/types/cli/prompts.d.ts +0 -2
  138. package/dist/types/locale/en.d.ts +0 -4
  139. package/dist/types/locale/index.d.ts +0 -8
  140. package/dist/types/locale/zh.d.ts +0 -4
  141. package/dist/types/ultramodern-package-source.d.ts +0 -11
  142. package/dist/types/ultramodern-tooling/commands/cloudflare-output-verify.d.ts +1 -1
  143. package/dist/types/ultramodern-tooling/commands/context.d.ts +3 -3
  144. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect/install.d.ts +1 -1
  145. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.d.ts +0 -5
  146. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.d.ts +8 -6
  147. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect.d.ts +1 -1
  148. package/dist/types/ultramodern-tooling/commands/routes-generate.d.ts +1 -1
  149. package/dist/types/ultramodern-tooling/commands/skills.d.ts +1 -1
  150. package/dist/types/ultramodern-tooling/commands/validate.d.ts +1 -1
  151. package/dist/types/ultramodern-tooling/commands.d.ts +1 -1
  152. package/dist/types/ultramodern-tooling/config/load.d.ts +1 -1
  153. package/dist/types/ultramodern-workspace/add-vertical/plan.d.ts +1 -6
  154. package/dist/types/ultramodern-workspace/add-vertical/preflight.d.ts +1 -9
  155. package/dist/types/ultramodern-workspace/app-files.d.ts +1 -7
  156. package/dist/types/ultramodern-workspace/codesmith.d.ts +5 -5
  157. package/dist/types/ultramodern-workspace/delivery-unit.d.ts +1 -1
  158. package/dist/types/ultramodern-workspace/demo-components.d.ts +0 -1
  159. package/dist/types/ultramodern-workspace/fs-io.d.ts +1 -7
  160. package/dist/types/ultramodern-workspace/generation-result.d.ts +2 -1
  161. package/dist/types/ultramodern-workspace/locales.d.ts +0 -181
  162. package/dist/types/ultramodern-workspace/mf-validation/inspect.d.ts +0 -3
  163. package/dist/types/ultramodern-workspace/mf-validation/object-literal.d.ts +0 -5
  164. package/dist/types/ultramodern-workspace/mf-validation/path-utils.d.ts +0 -2
  165. package/dist/types/ultramodern-workspace/mf-validation/syntax.d.ts +0 -9
  166. package/dist/types/ultramodern-workspace/module-federation/config.d.ts +1 -1
  167. package/dist/types/ultramodern-workspace/module-federation/reexport-module.d.ts +1 -1
  168. package/dist/types/ultramodern-workspace/naming.d.ts +0 -2
  169. package/dist/types/ultramodern-workspace/package-json.d.ts +0 -2
  170. package/dist/types/ultramodern-workspace/policy.d.ts +0 -47
  171. package/dist/types/ultramodern-workspace/public-surface.d.ts +5 -15
  172. package/dist/types/ultramodern-workspace/routes.d.ts +0 -9
  173. package/dist/types/ultramodern-workspace/shared-patches.d.ts +1 -2
  174. package/dist/types/ultramodern-workspace/tooling-command-catalog.d.ts +4 -4
  175. package/dist/types/ultramodern-workspace/types.d.ts +3 -2
  176. package/dist/types/ultramodern-workspace/versions.d.ts +20 -23
  177. package/dist/types/ultramodern-workspace/workspace-script-plan.d.ts +7 -21
  178. package/dist/types/ultramodern-workspace/workspace-scripts.d.ts +2 -9
  179. package/dist/types/ultramodern-workspace/workspace-validation-contract.d.ts +0 -1
  180. package/dist/types/ultramodern-workspace/write-workspace.d.ts +0 -1
  181. package/package.json +14 -12
  182. package/template-workspace/AGENTS.md.handlebars +2 -2
  183. package/template-workspace/README.md.handlebars +3 -4
  184. package/template-workspace/patches/{@module-federation__bridge-react@2.6.0.patch → @module-federation__bridge-react@2.7.0.patch} +22 -22
  185. package/template-workspace/patches/@module-federation__dts-plugin@2.7.0.patch +37 -0
  186. package/template-workspace/patches/{@module-federation__modern-js-v3@2.6.0.patch → @module-federation__modern-js-v3@2.7.0.patch} +22 -22
  187. package/template-workspace/patches/@tanstack__router-core@1.171.14.patch +123 -0
  188. package/template-workspace/pnpm-workspace.yaml.handlebars +24 -2
  189. package/templates/workspace/apps/modern.config.ts.handlebars +1 -1
  190. package/templates/workspace-scripts/assert-mf-types.mjs.handlebars +4 -4
  191. package/templates/workspace-scripts/ultramodern-typecheck.mjs +1 -1
  192. package/templates/workspace-scripts/validate-ultramodern-workspace.mjs.handlebars +3 -5
  193. package/dist/cjs/ultramodern-workspace/pnpm-workspace-policy-plan.cjs +0 -166
  194. package/dist/esm/ultramodern-workspace/pnpm-workspace-policy-plan.js +0 -113
  195. package/dist/esm-node/ultramodern-workspace/pnpm-workspace-policy-plan.js +0 -114
  196. package/dist/types/ultramodern-workspace/pnpm-workspace-policy-plan.d.ts +0 -39
  197. package/template-workspace/patches/@tanstack__router-core@1.171.13.patch +0 -51
  198. package/templates/workspace/postcss.config.mjs.handlebars +0 -5
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
24
- "version": "3.5.0-ultramodern.35",
24
+ "version": "3.5.0-ultramodern.37",
25
25
  "types": "./dist/types/index.d.ts",
26
26
  "main": "./dist/esm-node/index.js",
27
27
  "bin": {
@@ -75,17 +75,18 @@
75
75
  ],
76
76
  "dependencies": {
77
77
  "@modern-js/codesmith": "2.6.9",
78
- "oxfmt": "0.56.0",
79
- "ultracite": "7.8.3",
80
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.5.0-ultramodern.35",
81
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.35"
78
+ "oxfmt": "0.58.0",
79
+ "ultracite": "7.9.3",
80
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.37",
81
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.5.0-ultramodern.37"
82
82
  },
83
83
  "devDependencies": {
84
- "@rslib/core": "0.23.1",
85
- "@types/node": "^26.0.1",
86
- "@typescript/native-preview": "7.0.0-dev.20260628.1",
87
- "tsx": "^4.22.4",
88
- "typescript": "^6.0.3",
84
+ "@rslib/core": "0.23.2",
85
+ "@types/node": "^26.1.1",
86
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
87
+ "@typescript/typescript6": "6.0.2",
88
+ "tsx": "^4.23.0",
89
+ "typescript": "^7.0.2",
89
90
  "@scripts/rstest-config": "2.66.0"
90
91
  },
91
92
  "publishConfig": {
@@ -97,9 +98,10 @@
97
98
  "build": "rm -rf dist && rslib build -c rslibconfig.mts && pnpm -w tsgo:dts \"$PWD\"",
98
99
  "dev": "rslib build -c rslibconfig.mts -w",
99
100
  "start": "node ./dist/esm-node/index.js",
100
- "test": "rm -rf dist && rslib build -c rslibconfig.mts && rstest --passWithNoTests"
101
+ "test": "rm -rf dist && rslib build -c rslibconfig.mts && rstest --passWithNoTests",
102
+ "type-check": "tsgo --noEmit -p tsconfig.json"
101
103
  },
102
104
  "ultramodern": {
103
- "frameworkVersion": "3.5.0-ultramodern.35"
105
+ "frameworkVersion": "3.5.0-ultramodern.37"
104
106
  }
105
107
  }
@@ -12,7 +12,7 @@ baseline; do not reintroduce Corepack or older pnpm aliases.
12
12
 
13
13
  - `pnpm lint` runs Oxlint with the Ultracite preset.
14
14
  - `pnpm format` runs oxfmt.
15
- - `pnpm typecheck` runs TS7 native-preview through effect-tsgo in project-reference build mode with parallel `--checkers` and `--builders`.
15
+ - `pnpm typecheck` runs stable TS7 through effect-tsgo in project-reference build mode with parallel `--checkers` and `--builders`.
16
16
  - `pnpm i18n:boundaries` verifies workspace source boundaries through `@modern-js/code-tools`.
17
17
  - `pnpm contract:check` verifies the generated workspace contract.
18
18
  - `pnpm mf:types` verifies Module Federation type outputs after builds.
@@ -78,7 +78,7 @@ Agents may read files under `repos/` to understand upstream patterns, APIs, and
78
78
  ## Project Priorities
79
79
 
80
80
  - Keep `presetUltramodern` as the single preset.
81
- - Maximize TS7 latest dev usage through `@typescript/native-preview` and TS-Go. Keep classic `typescript` on latest TS6 only for compatibility peers and tooling that cannot consume native-preview yet.
81
+ - Keep stable `typescript` on TS7 so Modern/Rspack and effect-tsgo use TS-Go by default.
82
82
  - Keep the initial workspace shell-only unless a user explicitly asks for a
83
83
  starter vertical.
84
84
  - Use `create <domain> --vertical` as the growth path for real business
@@ -70,10 +70,9 @@ separate matrix jobs so failures are isolated and parallelizable.
70
70
 
71
71
  Type checking is TS7-first. `pnpm typecheck` runs
72
72
  `scripts/ultramodern-typecheck.mts` in TS-Go build mode over
73
- `tsconfig.json` project references, with native-preview `--checkers` and
74
- `--builders` enabled by default. `@typescript/native-preview` is the TS7 latest
75
- dev compiler lane. The classic `typescript` package is pinned to latest TS6
76
- only where compatibility peers or tooling still require it.
73
+ `tsconfig.json` project references, with `--checkers` and `--builders`
74
+ enabled by default. The stable `typescript` package is pinned to TS7 so
75
+ Modern/Rspack type checking uses TS-Go by default.
77
76
 
78
77
  Read-only agent reference repositories under `repos/` (Effect and
79
78
  UltraModern.js source lookup using squashed git subtrees) are an explicit
@@ -1,8 +1,8 @@
1
- diff --git a/dist/lazy-load-component-plugin-BYI941I2.mjs b/dist/lazy-load-component-plugin-BYI941I2.mjs
2
- index dfba15be1e9753e0f164b53cfb22feda13f39ea4..6be1b47903b9f6807bb0111df6c588f0d54ebf53 100644
3
- --- a/dist/lazy-load-component-plugin-BYI941I2.mjs
4
- +++ b/dist/lazy-load-component-plugin-BYI941I2.mjs
5
- @@ -235,6 +235,41 @@ function getTargetModuleInfo(id, instance) {
1
+ diff --git a/dist/lazy-load-component-plugin-BjMVNoep.js b/dist/lazy-load-component-plugin-BjMVNoep.js
2
+ index 9f16c3f..bde8e11 100644
3
+ --- a/dist/lazy-load-component-plugin-BjMVNoep.js
4
+ +++ b/dist/lazy-load-component-plugin-BjMVNoep.js
5
+ @@ -236,6 +236,41 @@ function getTargetModuleInfo(id, instance) {
6
6
  remoteEntry
7
7
  };
8
8
  }
@@ -31,20 +31,20 @@ index dfba15be1e9753e0f164b53cfb22feda13f39ea4..6be1b47903b9f6807bb0111df6c588f0
31
31
  + );
32
32
  +}
33
33
  +function StylesheetAsset({ href }) {
34
- + const [shouldRender, setShouldRender] = useState(true);
35
- + const linkRef = useRef(null);
36
- + useEffect(() => {
34
+ + const [shouldRender, setShouldRender] = React.useState(true);
35
+ + const linkRef = React.useRef(null);
36
+ + React.useEffect(() => {
37
37
  + setShouldRender(!hasStylesheetLinkInHead(href, linkRef.current));
38
38
  + }, [href]);
39
39
  + if (!shouldRender) {
40
40
  + return null;
41
41
  + }
42
- + return /* @__PURE__ */ React__default.createElement("link", { ref: linkRef, href, rel: "stylesheet", type: "text/css" });
42
+ + return /* @__PURE__ */ React.createElement("link", { ref: linkRef, href, rel: "stylesheet", type: "text/css" });
43
43
  +}
44
44
  function collectSSRAssets(options) {
45
45
  const {
46
46
  id,
47
- @@ -253,15 +288,19 @@ function collectSSRAssets(options) {
47
+ @@ -254,15 +289,19 @@ function collectSSRAssets(options) {
48
48
  }
49
49
  const { module: targetModule, publicPath, remoteEntry } = moduleAndPublicPath;
50
50
  if (injectLink) {
@@ -56,7 +56,7 @@ index dfba15be1e9753e0f164b53cfb22feda13f39ea4..6be1b47903b9f6807bb0111df6c588f0
56
56
  + }
57
57
  + stylesheetHrefs.add(href);
58
58
  links.push(
59
- /* @__PURE__ */ React__default.createElement(
59
+ /* @__PURE__ */ React.createElement(
60
60
  - "link",
61
61
  + StylesheetAsset,
62
62
  {
@@ -68,11 +68,11 @@ index dfba15be1e9753e0f164b53cfb22feda13f39ea4..6be1b47903b9f6807bb0111df6c588f0
68
68
  }
69
69
  )
70
70
  );
71
- diff --git a/dist/lazy-load-component-plugin-DG4e3Tib.js b/dist/lazy-load-component-plugin-DG4e3Tib.js
72
- index 321c9c3cd55bf9d62a6825c9186267dfe28e5e93..867e7237d5a2ea613130c7e1710cdd998924d9db 100644
73
- --- a/dist/lazy-load-component-plugin-DG4e3Tib.js
74
- +++ b/dist/lazy-load-component-plugin-DG4e3Tib.js
75
- @@ -236,6 +236,41 @@ function getTargetModuleInfo(id, instance) {
71
+ diff --git a/dist/lazy-load-component-plugin-aj97Vt-4.mjs b/dist/lazy-load-component-plugin-aj97Vt-4.mjs
72
+ index ed1dc8f..fd603ab 100644
73
+ --- a/dist/lazy-load-component-plugin-aj97Vt-4.mjs
74
+ +++ b/dist/lazy-load-component-plugin-aj97Vt-4.mjs
75
+ @@ -235,6 +235,41 @@ function getTargetModuleInfo(id, instance) {
76
76
  remoteEntry
77
77
  };
78
78
  }
@@ -101,20 +101,20 @@ index 321c9c3cd55bf9d62a6825c9186267dfe28e5e93..867e7237d5a2ea613130c7e1710cdd99
101
101
  + );
102
102
  +}
103
103
  +function StylesheetAsset({ href }) {
104
- + const [shouldRender, setShouldRender] = React.useState(true);
105
- + const linkRef = React.useRef(null);
106
- + React.useEffect(() => {
104
+ + const [shouldRender, setShouldRender] = useState(true);
105
+ + const linkRef = useRef(null);
106
+ + useEffect(() => {
107
107
  + setShouldRender(!hasStylesheetLinkInHead(href, linkRef.current));
108
108
  + }, [href]);
109
109
  + if (!shouldRender) {
110
110
  + return null;
111
111
  + }
112
- + return /* @__PURE__ */ React.createElement("link", { ref: linkRef, href, rel: "stylesheet", type: "text/css" });
112
+ + return /* @__PURE__ */ React__default.createElement("link", { ref: linkRef, href, rel: "stylesheet", type: "text/css" });
113
113
  +}
114
114
  function collectSSRAssets(options) {
115
115
  const {
116
116
  id,
117
- @@ -254,15 +289,19 @@ function collectSSRAssets(options) {
117
+ @@ -253,15 +288,19 @@ function collectSSRAssets(options) {
118
118
  }
119
119
  const { module: targetModule, publicPath, remoteEntry } = moduleAndPublicPath;
120
120
  if (injectLink) {
@@ -126,7 +126,7 @@ index 321c9c3cd55bf9d62a6825c9186267dfe28e5e93..867e7237d5a2ea613130c7e1710cdd99
126
126
  + }
127
127
  + stylesheetHrefs.add(href);
128
128
  links.push(
129
- /* @__PURE__ */ React.createElement(
129
+ /* @__PURE__ */ React__default.createElement(
130
130
  - "link",
131
131
  + StylesheetAsset,
132
132
  {
@@ -0,0 +1,37 @@
1
+ diff --git a/dist/DtsWorker-Bt7-_SGH.d.ts b/dist/DtsWorker-Bt7-_SGH.d.ts
2
+ index 3d82f9d..2f82c65 100644
3
+ --- a/dist/DtsWorker-Bt7-_SGH.d.ts
4
+ +++ b/dist/DtsWorker-Bt7-_SGH.d.ts
5
+ @@ -1,5 +1,5 @@
6
+ import { moduleFederationPlugin } from "@module-federation/sdk";
7
+ -import ts from "typescript";
8
+ +import ts from "@typescript/typescript6";
9
+ import { ChildProcess } from "child_process";
10
+
11
+ //#region \0rolldown/runtime.js
12
+ diff --git a/dist/esm/expose-rpc-CDdqA9PX.mjs b/dist/esm/expose-rpc-CDdqA9PX.mjs
13
+ index 9eae3ff..071b45d 100644
14
+ --- a/dist/esm/expose-rpc-CDdqA9PX.mjs
15
+ +++ b/dist/esm/expose-rpc-CDdqA9PX.mjs
16
+ @@ -6,7 +6,7 @@ import { fileURLToPath } from "url";
17
+ import path, { dirname, extname, isAbsolute, join, normalize, relative, resolve, sep } from "path";
18
+ import { cp, mkdir, readFile, readdir, rm, stat, writeFile } from "fs/promises";
19
+ import { utils } from "@module-federation/managers";
20
+ -import typescript from "typescript";
21
+ +import typescript from "@typescript/typescript6";
22
+ import { styleText } from "node:util";
23
+ import { ENCODE_NAME_PREFIX, MANIFEST_EXT, TEMP_DIR, decodeName, getProcessEnv, inferAutoPublicPath, parseEntry } from "@module-federation/sdk";
24
+ import { Agent } from "undici";
25
+ diff --git a/dist/expose-rpc-BpRiu3VK.js b/dist/expose-rpc-BpRiu3VK.js
26
+ index 2e81fb9..7688d8b 100644
27
+ --- a/dist/expose-rpc-BpRiu3VK.js
28
+ +++ b/dist/expose-rpc-BpRiu3VK.js
29
+ @@ -7,7 +7,7 @@ let path = require("path");
30
+ path = require_Action.__toESM(path);
31
+ let fs_promises = require("fs/promises");
32
+ let _module_federation_managers = require("@module-federation/managers");
33
+ -let typescript = require("typescript");
34
+ +let typescript = require("@typescript/typescript6");
35
+ typescript = require_Action.__toESM(typescript);
36
+ let node_util = require("node:util");
37
+ let _module_federation_sdk = require("@module-federation/sdk");
@@ -1,8 +1,8 @@
1
1
  diff --git a/dist/cjs/cli/configPlugin.js b/dist/cjs/cli/configPlugin.js
2
- index 0d01ad0..e5485a2 100644
2
+ index 3f1af86..a038365 100644
3
3
  --- a/dist/cjs/cli/configPlugin.js
4
4
  +++ b/dist/cjs/cli/configPlugin.js
5
- @@ -212,9 +212,12 @@ var __webpack_exports__ = {};
5
+ @@ -216,9 +216,12 @@ var __webpack_exports__ = {};
6
6
  if (!chain.output.get('uniqueName')) chain.output.uniqueName(mfConfig.name);
7
7
  const splitChunkConfig = chain.optimization.splitChunks.entries();
8
8
  if (!isServer) (0, utils_namespaceObject.autoDeleteSplitChunkCacheGroups)(mfConfig, splitChunkConfig);
@@ -17,40 +17,40 @@ index 0d01ad0..e5485a2 100644
17
17
  }
18
18
  if ((0, external_utils_js_namespaceObject.isDev)() && 'auto' === chain.output.get('publicPath')) {
19
19
  var _modernjsConfig_server;
20
- diff --git a/dist/esm/cli/configPlugin.mjs b/dist/esm/cli/configPlugin.mjs
21
- index 3e880c8..93e4290 100644
22
- --- a/dist/esm/cli/configPlugin.mjs
23
- +++ b/dist/esm/cli/configPlugin.mjs
24
- @@ -194,9 +194,12 @@ function patchBundlerConfig(options) {
20
+ diff --git a/dist/esm-node/cli/configPlugin.mjs b/dist/esm-node/cli/configPlugin.mjs
21
+ index c238b85..7350973 100644
22
+ --- a/dist/esm-node/cli/configPlugin.mjs
23
+ +++ b/dist/esm-node/cli/configPlugin.mjs
24
+ @@ -156,9 +156,12 @@ function patchBundlerConfig(options) {
25
25
  if (!chain.output.get('uniqueName')) chain.output.uniqueName(mfConfig.name);
26
- var splitChunkConfig = chain.optimization.splitChunks.entries();
26
+ const splitChunkConfig = chain.optimization.splitChunks.entries();
27
27
  if (!isServer) autoDeleteSplitChunkCacheGroups(mfConfig, splitChunkConfig);
28
- - if (!isServer && enableSSR && splitChunkConfig && (void 0 === splitChunkConfig ? "undefined" : _type_of__(splitChunkConfig)) === 'object' && splitChunkConfig.cacheGroups) {
29
- + if (!isServer && enableSSR && splitChunkConfig && (void 0 === splitChunkConfig ? "undefined" : _type_of__(splitChunkConfig)) === 'object' && splitChunkConfig.cacheGroups && void 0 !== splitChunkConfig.chunks && splitChunkConfig.chunks !== 'async') {
30
- + var previousChunks = splitChunkConfig.chunks;
28
+ - if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups) {
29
+ + if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups && splitChunkConfig.chunks !== undefined && splitChunkConfig.chunks !== 'async') {
30
+ + const previousChunks = splitChunkConfig.chunks;
31
31
  splitChunkConfig.chunks = 'async';
32
32
  - logger.warn('splitChunks.chunks = async is not allowed with stream SSR mode, it will auto changed to "async"');
33
33
  + if (void 0 !== previousChunks) {
34
- + logger.warn("splitChunks.chunks = ".concat(previousChunks, " is not allowed with stream SSR mode, it will auto changed to \"async\""));
34
+ + logger.warn(`splitChunks.chunks = ${previousChunks} is not allowed with stream SSR mode, it will auto changed to "async"`);
35
35
  + }
36
36
  }
37
37
  if (isDev() && 'auto' === chain.output.get('publicPath')) {
38
38
  var _modernjsConfig_server;
39
- diff --git a/dist/esm-node/cli/configPlugin.mjs b/dist/esm-node/cli/configPlugin.mjs
40
- index 722f1bb..dcac7ec 100644
41
- --- a/dist/esm-node/cli/configPlugin.mjs
42
- +++ b/dist/esm-node/cli/configPlugin.mjs
43
- @@ -165,9 +165,12 @@ function patchBundlerConfig(options) {
39
+ diff --git a/dist/esm/cli/configPlugin.mjs b/dist/esm/cli/configPlugin.mjs
40
+ index c8c2ace..fee11da 100644
41
+ --- a/dist/esm/cli/configPlugin.mjs
42
+ +++ b/dist/esm/cli/configPlugin.mjs
43
+ @@ -185,9 +185,12 @@ function patchBundlerConfig(options) {
44
44
  if (!chain.output.get('uniqueName')) chain.output.uniqueName(mfConfig.name);
45
- const splitChunkConfig = chain.optimization.splitChunks.entries();
45
+ var splitChunkConfig = chain.optimization.splitChunks.entries();
46
46
  if (!isServer) autoDeleteSplitChunkCacheGroups(mfConfig, splitChunkConfig);
47
- - if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups) {
48
- + if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups && splitChunkConfig.chunks !== undefined && splitChunkConfig.chunks !== 'async') {
49
- + const previousChunks = splitChunkConfig.chunks;
47
+ - if (!isServer && enableSSR && splitChunkConfig && (void 0 === splitChunkConfig ? "undefined" : _type_of__(splitChunkConfig)) === 'object' && splitChunkConfig.cacheGroups) {
48
+ + if (!isServer && enableSSR && splitChunkConfig && (void 0 === splitChunkConfig ? "undefined" : _type_of__(splitChunkConfig)) === 'object' && splitChunkConfig.cacheGroups && void 0 !== splitChunkConfig.chunks && splitChunkConfig.chunks !== 'async') {
49
+ + var previousChunks = splitChunkConfig.chunks;
50
50
  splitChunkConfig.chunks = 'async';
51
51
  - logger.warn('splitChunks.chunks = async is not allowed with stream SSR mode, it will auto changed to "async"');
52
52
  + if (void 0 !== previousChunks) {
53
- + logger.warn(`splitChunks.chunks = ${previousChunks} is not allowed with stream SSR mode, it will auto changed to "async"`);
53
+ + logger.warn("splitChunks.chunks = ".concat(previousChunks, " is not allowed with stream SSR mode, it will auto changed to \"async\""));
54
54
  + }
55
55
  }
56
56
  if (isDev() && 'auto' === chain.output.get('publicPath')) {
@@ -0,0 +1,123 @@
1
+ diff --git a/dist/cjs/load-matches.cjs b/dist/cjs/load-matches.cjs
2
+ index c09976a..c08e017 100644
3
+ --- a/dist/cjs/load-matches.cjs
4
+ +++ b/dist/cjs/load-matches.cjs
5
+ @@ -439,6 +439,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
6
+ try {
7
+ await runLoader(inner, matchPromises, matchId, index, route);
8
+ const match = inner.router.getMatch(matchId);
9
+ + if (!match) return;
10
+ match._nonReactive.loaderPromise?.resolve();
11
+ match._nonReactive.loadPromise?.resolve();
12
+ match._nonReactive.loaderPromise = void 0;
13
+ @@ -469,6 +470,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
14
+ if (prevMatch.status === "success" && !inner.sync && !prevMatch.preload && shouldReloadInBackground) return prevMatch;
15
+ await prevMatch._nonReactive.loaderPromise;
16
+ const match = inner.router.getMatch(matchId);
17
+ + if (!match) return inner.matches[index];
18
+ const error = match._nonReactive.error || match.error;
19
+ if (error) handleRedirectAndNotFound(inner, match, error);
20
+ if (match.status === "pending") await handleLoader(preload, prevMatch, previousRouteMatchId, match, route);
21
+ @@ -484,6 +486,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
22
+ }
23
+ }
24
+ const match = inner.router.getMatch(matchId);
25
+ + if (!match) return inner.matches[index];
26
+ if (!loaderIsRunningAsync) {
27
+ match._nonReactive.loaderPromise?.resolve();
28
+ match._nonReactive.loadPromise?.resolve();
29
+ @@ -500,7 +503,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
30
+ isFetching: nextIsFetching,
31
+ invalid: false
32
+ }));
33
+ - return inner.router.getMatch(matchId);
34
+ + return inner.router.getMatch(matchId) ?? inner.matches[index];
35
+ } else return match;
36
+ };
37
+ async function loadMatches(arg) {
38
+ diff --git a/dist/esm/load-matches.js b/dist/esm/load-matches.js
39
+ index bcea2e0..fd9ebbf 100644
40
+ --- a/dist/esm/load-matches.js
41
+ +++ b/dist/esm/load-matches.js
42
+ @@ -439,6 +439,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
43
+ try {
44
+ await runLoader(inner, matchPromises, matchId, index, route);
45
+ const match = inner.router.getMatch(matchId);
46
+ + if (!match) return;
47
+ match._nonReactive.loaderPromise?.resolve();
48
+ match._nonReactive.loadPromise?.resolve();
49
+ match._nonReactive.loaderPromise = void 0;
50
+ @@ -469,6 +470,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
51
+ if (prevMatch.status === "success" && !inner.sync && !prevMatch.preload && shouldReloadInBackground) return prevMatch;
52
+ await prevMatch._nonReactive.loaderPromise;
53
+ const match = inner.router.getMatch(matchId);
54
+ + if (!match) return inner.matches[index];
55
+ const error = match._nonReactive.error || match.error;
56
+ if (error) handleRedirectAndNotFound(inner, match, error);
57
+ if (match.status === "pending") await handleLoader(preload, prevMatch, previousRouteMatchId, match, route);
58
+ @@ -484,6 +486,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
59
+ }
60
+ }
61
+ const match = inner.router.getMatch(matchId);
62
+ + if (!match) return inner.matches[index];
63
+ if (!loaderIsRunningAsync) {
64
+ match._nonReactive.loaderPromise?.resolve();
65
+ match._nonReactive.loadPromise?.resolve();
66
+ @@ -500,7 +503,7 @@ const loadRouteMatch = async (inner, matchPromises, index) => {
67
+ isFetching: nextIsFetching,
68
+ invalid: false
69
+ }));
70
+ - return inner.router.getMatch(matchId);
71
+ + return inner.router.getMatch(matchId) ?? inner.matches[index];
72
+ } else return match;
73
+ };
74
+ async function loadMatches(arg) {
75
+ diff --git a/src/load-matches.ts b/src/load-matches.ts
76
+ index f901a0c..76674e0 100644
77
+ --- a/src/load-matches.ts
78
+ +++ b/src/load-matches.ts
79
+ @@ -835,7 +835,10 @@ const loadRouteMatch = async (
80
+ ;(async () => {
81
+ try {
82
+ await runLoader(inner, matchPromises, matchId, index, route)
83
+ - const match = inner.router.getMatch(matchId)!
84
+ + const match = inner.router.getMatch(matchId)
85
+ + if (!match) {
86
+ + return
87
+ + }
88
+ match._nonReactive.loaderPromise?.resolve()
89
+ match._nonReactive.loadPromise?.resolve()
90
+ match._nonReactive.loaderPromise = undefined
91
+ @@ -903,7 +906,10 @@ const loadRouteMatch = async (
92
+ return prevMatch
93
+ }
94
+ await prevMatch._nonReactive.loaderPromise
95
+ - const match = inner.router.getMatch(matchId)!
96
+ + const match = inner.router.getMatch(matchId)
97
+ + if (!match) {
98
+ + return inner.matches[index]!
99
+ + }
100
+ const error = match._nonReactive.error || match.error
101
+ if (error) {
102
+ handleRedirectAndNotFound(inner, match, error)
103
+ @@ -933,7 +939,10 @@ const loadRouteMatch = async (
104
+ await handleLoader(preload, prevMatch, previousRouteMatchId, match, route)
105
+ }
106
+ }
107
+ - const match = inner.router.getMatch(matchId)!
108
+ + const match = inner.router.getMatch(matchId)
109
+ + if (!match) {
110
+ + return inner.matches[index]!
111
+ + }
112
+ if (!loaderIsRunningAsync) {
113
+ match._nonReactive.loaderPromise?.resolve()
114
+ match._nonReactive.loadPromise?.resolve()
115
+ @@ -952,7 +961,7 @@ const loadRouteMatch = async (
116
+ isFetching: nextIsFetching,
117
+ invalid: false,
118
+ }))
119
+ - return inner.router.getMatch(matchId)!
120
+ + return inner.router.getMatch(matchId) ?? inner.matches[index]!
121
+ } else {
122
+ return match
123
+ }
@@ -13,8 +13,29 @@ minimumReleaseAgeExclude:
13
13
  - '@tanstack/react-router'
14
14
  - '@tanstack/router-core'
15
15
  - 'typescript'
16
- - '@typescript/native-preview'
17
- - '@typescript/native-preview-*'
16
+ - 'typescript@{{typescriptVersion}}'
17
+ - '@typescript/typescript6@{{typescriptCompilerApiVersion}}'
18
+ - '@typescript/typescript-aix-ppc64@{{typescriptVersion}}'
19
+ - '@typescript/typescript-darwin-arm64@{{typescriptVersion}}'
20
+ - '@typescript/typescript-darwin-x64@{{typescriptVersion}}'
21
+ - '@typescript/typescript-freebsd-arm64@{{typescriptVersion}}'
22
+ - '@typescript/typescript-freebsd-x64@{{typescriptVersion}}'
23
+ - '@typescript/typescript-linux-arm64@{{typescriptVersion}}'
24
+ - '@typescript/typescript-linux-arm@{{typescriptVersion}}'
25
+ - '@typescript/typescript-linux-loong64@{{typescriptVersion}}'
26
+ - '@typescript/typescript-linux-mips64el@{{typescriptVersion}}'
27
+ - '@typescript/typescript-linux-ppc64@{{typescriptVersion}}'
28
+ - '@typescript/typescript-linux-riscv64@{{typescriptVersion}}'
29
+ - '@typescript/typescript-linux-s390x@{{typescriptVersion}}'
30
+ - '@typescript/typescript-linux-x64@{{typescriptVersion}}'
31
+ - '@typescript/typescript-netbsd-arm64@{{typescriptVersion}}'
32
+ - '@typescript/typescript-netbsd-x64@{{typescriptVersion}}'
33
+ - '@typescript/typescript-openbsd-arm64@{{typescriptVersion}}'
34
+ - '@typescript/typescript-openbsd-x64@{{typescriptVersion}}'
35
+ - '@typescript/typescript-sunos-x64@{{typescriptVersion}}'
36
+ - '@typescript/typescript-win32-arm64@{{typescriptVersion}}'
37
+ - '@typescript/typescript-win32-x64@{{typescriptVersion}}'
38
+ - '@rsbuild/plugin-tailwindcss'
18
39
  - '@types/react'
19
40
  - '@rsbuild/core'
20
41
  - '@rsbuild/plugin-react'
@@ -64,6 +85,7 @@ allowBuilds:
64
85
  workerd: true
65
86
 
66
87
  patchedDependencies:
88
+ '@module-federation/dts-plugin@{{moduleFederationVersion}}': patches/@module-federation__dts-plugin@{{moduleFederationVersion}}.patch
67
89
  '@module-federation/modern-js-v3@{{moduleFederationVersion}}': patches/@module-federation__modern-js-v3@{{moduleFederationVersion}}.patch
68
90
  '@module-federation/bridge-react@{{moduleFederationVersion}}': patches/@module-federation__bridge-react@{{moduleFederationVersion}}.patch
69
91
  '@tanstack/router-core@{{tanstackRouterCoreVersion}}': patches/@tanstack__router-core@{{tanstackRouterCoreVersion}}.patch
@@ -128,7 +128,7 @@ if (
128
128
  export default defineConfig(
129
129
  presetUltramodern(
130
130
  {
131
- {{value9}} ...(cloudflareDeployEnabled
131
+ {{value9}}{{value18}} ...(cloudflareDeployEnabled
132
132
  ? {
133
133
  deploy: {
134
134
  worker: {
@@ -38,7 +38,7 @@ function readGeneratedContractView() {
38
38
  : [],
39
39
  dts: {
40
40
  compilerInstance:
41
- moduleFederation.dts?.compilerInstance ?? 'tsgo',
41
+ moduleFederation.dts?.compilerInstance ?? 'effect-tsgo',
42
42
  tsConfigPath:
43
43
  moduleFederation.dts?.tsConfigPath ??
44
44
  './tsconfig.mf-types.json',
@@ -59,7 +59,7 @@ if (args.includes('--help') || args.includes('-h')) {
59
59
  process.stdout.write(`Usage:
60
60
  node scripts/assert-mf-types.mts [app-dir...]
61
61
 
62
- Checks that every Module Federation remote with exposed modules emitted a non-empty dist/@mf-types.zip archive and uses the workspace TypeScript compiler.
62
+ Checks that every Module Federation remote with exposed modules emitted a non-empty dist/@mf-types.zip archive and uses the @effect/tsgo compiler.
63
63
  `);
64
64
  process.exit(0);
65
65
  }
@@ -85,10 +85,10 @@ for (const appDir of appDirs) {
85
85
  if (
86
86
  contractEntry &&
87
87
  contractEntry.moduleFederation?.dts?.compilerInstance !==
88
- 'tsgo'
88
+ 'effect-tsgo'
89
89
  ) {
90
90
  throw new Error(
91
- `Module Federation DTS must use the workspace TypeScript compiler: ${appDir}`,
91
+ `Module Federation DTS must resolve @effect/tsgo compiler: ${appDir}`,
92
92
  );
93
93
  }
94
94
  if (
@@ -122,7 +122,7 @@ function resolveTsgoBinary() {
122
122
 
123
123
  if (result.error) {
124
124
  fail(
125
- `Unable to run ${cli}. Run pnpm install or set EFFECT_TSGO_BIN to the native-preview tsgo binary.`,
125
+ `Unable to run ${cli}. Run pnpm install or set EFFECT_TSGO_BIN to a TS-Go binary.`,
126
126
  );
127
127
  }
128
128
  if (result.status !== 0) {
@@ -682,7 +682,7 @@ const createAppContract = (app, apps) => ({
682
682
  : {}),
683
683
  exposes: app.exposes,
684
684
  dts: {
685
- compilerInstance: 'tsgo',
685
+ compilerInstance: 'effect-tsgo',
686
686
  displayErrorInTerminal: true,
687
687
  tsConfigPath: './tsconfig.mf-types.json',
688
688
  },
@@ -1761,10 +1761,8 @@ for (const vertical of fullStackVerticals) {
1761
1761
 
1762
1762
  if (tailwindEnabled) {
1763
1763
  requiredPaths.push(
1764
- 'apps/shell-super-app/postcss.config.mjs',
1765
1764
  'apps/shell-super-app/tailwind.config.ts',
1766
1765
  ...fullStackVerticals.flatMap(vertical => [
1767
- `${vertical.path}/postcss.config.mjs`,
1768
1766
  `${vertical.path}/tailwind.config.ts`,
1769
1767
  ]),
1770
1768
  );
@@ -2158,7 +2156,7 @@ assert(shellContract?.config?.performance?.readinessDiagnostics?.optOut?.env ===
2158
2156
  assert(JSON.stringify(shellContract?.config?.source?.siteUrl?.envFallbackOrder) === JSON.stringify(['MODERN_PUBLIC_SITE_URL', 'ULTRAMODERN_PUBLIC_URL_SHELL_SUPER_APP', 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN', 'SHELL_SUPER_APP_PORT']), 'Shell site URL env fallback order is incorrect');
2159
2157
  assert(shellContract?.config?.rspack?.output?.uniqueName === 'shellSuperApp', 'Shell Rspack uniqueName is incorrect');
2160
2158
  assert(shellContract?.config?.rspack?.output?.chunkLoadingGlobal === expectedChunkLoadingGlobal('shellSuperApp'), 'Shell Rspack chunkLoadingGlobal is incorrect');
2161
- assert(shellContract?.moduleFederation?.dts?.compilerInstance === 'tsgo', 'Shell must keep mandatory DTS compiler');
2159
+ assert(shellContract?.moduleFederation?.dts?.compilerInstance === 'effect-tsgo', 'Shell must keep mandatory DTS compiler');
2162
2160
  assert(shellContract?.moduleFederation?.dts?.tsConfigPath === './tsconfig.mf-types.json', 'Shell must keep dedicated Module Federation DTS tsconfig');
2163
2161
  assert(shellModuleFederationConfig.includes("tsConfigPath: './tsconfig.mf-types.json'"), 'Shell Module Federation config must use the dedicated DTS tsconfig');
2164
2162
  assert(topology.shell?.cloudflare?.workerName === expectedWorkerName('shell-super-app'), 'Shell topology Cloudflare workerName is incorrect');
@@ -2320,7 +2318,7 @@ for (const vertical of fullStackVerticals) {
2320
2318
  assert(contractEntry?.config?.rspack?.output?.chunkLoadingGlobal === expectedChunkLoadingGlobal(vertical.mfName), `${vertical.id} Rspack chunkLoadingGlobal is incorrect`);
2321
2319
  assert(contractEntry?.moduleFederation?.name === vertical.mfName, `${vertical.id} MF name is incorrect`);
2322
2320
  assert(JSON.stringify(contractEntry?.moduleFederation?.exposes) === JSON.stringify(vertical.exposes), `${vertical.id} MF exposes are incorrect`);
2323
- assert(contractEntry?.moduleFederation?.dts?.compilerInstance === 'tsgo', `${vertical.id} must keep mandatory DTS compiler`);
2321
+ assert(contractEntry?.moduleFederation?.dts?.compilerInstance === 'effect-tsgo', `${vertical.id} must keep mandatory DTS compiler`);
2324
2322
  assert(contractEntry?.moduleFederation?.dts?.tsConfigPath === './tsconfig.mf-types.json', `${vertical.id} must keep dedicated Module Federation DTS tsconfig`);
2325
2323
  assert(moduleFederationConfig.includes("tsConfigPath: './tsconfig.mf-types.json'"), `${vertical.id} Module Federation config must use the dedicated DTS tsconfig`);
2326
2324
  assert(JSON.stringify(contractEntry?.moduleFederation?.verticalRefs ?? []) === JSON.stringify(vertical.verticalRefs), `${vertical.id} MF verticalRefs are incorrect`);