@bleedingdev/modern-js-ultramodern-create 3.9.0-ultramodern.7 → 3.9.0-ultramodern.8
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/cjs/ultramodern-tooling/commands/cloudflare-output-verify.cjs +1 -1
- package/dist/cjs/ultramodern-tooling/commands/routes-generate.cjs +1 -1
- package/dist/cjs/ultramodern-tooling/commands/validate.cjs +2 -2
- package/dist/cjs/ultramodern-tooling/config/normalize.cjs +7 -5
- package/dist/cjs/ultramodern-workspace/add-shell.cjs +1 -1
- package/dist/cjs/ultramodern-workspace/add-vertical/execute.cjs +1 -1
- package/dist/cjs/ultramodern-workspace/delivery-unit-sync.cjs +1 -1
- package/dist/cjs/ultramodern-workspace/mf-validation/exposes.cjs +63 -0
- package/dist/cjs/ultramodern-workspace/mf-validation/inspect.cjs +19 -4
- package/dist/cjs/ultramodern-workspace/mf-validation.cjs +4 -0
- package/dist/cjs/ultramodern-workspace/workspace-scripts.cjs +2 -2
- package/dist/cjs/ultramodern-workspace/workspace-validation-contract.cjs +10 -5
- package/dist/esm/ultramodern-tooling/commands/cloudflare-output-verify.js +1 -1
- package/dist/esm/ultramodern-tooling/commands/routes-generate.js +1 -1
- package/dist/esm/ultramodern-tooling/commands/validate.js +2 -2
- package/dist/esm/ultramodern-tooling/config/normalize.js +7 -5
- package/dist/esm/ultramodern-workspace/add-shell.js +1 -1
- package/dist/esm/ultramodern-workspace/add-vertical/execute.js +1 -1
- package/dist/esm/ultramodern-workspace/delivery-unit-sync.js +1 -1
- package/dist/esm/ultramodern-workspace/mf-validation/exposes.js +14 -0
- package/dist/esm/ultramodern-workspace/mf-validation/inspect.js +19 -4
- package/dist/esm/ultramodern-workspace/mf-validation.js +1 -0
- package/dist/esm/ultramodern-workspace/workspace-scripts.js +2 -2
- package/dist/esm/ultramodern-workspace/workspace-validation-contract.js +10 -5
- package/dist/esm-node/ultramodern-tooling/commands/cloudflare-output-verify.js +1 -1
- package/dist/esm-node/ultramodern-tooling/commands/routes-generate.js +1 -1
- package/dist/esm-node/ultramodern-tooling/commands/validate.js +2 -2
- package/dist/esm-node/ultramodern-tooling/config/normalize.js +7 -5
- package/dist/esm-node/ultramodern-workspace/add-shell.js +1 -1
- package/dist/esm-node/ultramodern-workspace/add-vertical/execute.js +1 -1
- package/dist/esm-node/ultramodern-workspace/delivery-unit-sync.js +1 -1
- package/dist/esm-node/ultramodern-workspace/mf-validation/exposes.js +15 -0
- package/dist/esm-node/ultramodern-workspace/mf-validation/inspect.js +19 -4
- package/dist/esm-node/ultramodern-workspace/mf-validation.js +1 -0
- package/dist/esm-node/ultramodern-workspace/workspace-scripts.js +2 -2
- package/dist/esm-node/ultramodern-workspace/workspace-validation-contract.js +10 -5
- package/dist/types/ultramodern-tooling/config/normalize.d.ts +7 -2
- package/dist/types/ultramodern-workspace/mf-validation/exposes.d.ts +11 -0
- package/dist/types/ultramodern-workspace/mf-validation/types.d.ts +1 -0
- package/dist/types/ultramodern-workspace/mf-validation.d.ts +1 -0
- package/dist/types/ultramodern-workspace/workspace-scripts.d.ts +1 -1
- package/dist/types/ultramodern-workspace/workspace-validation-contract.d.ts +1 -1
- package/package.json +9 -9
- package/template-workspace/.modernjs/release-cohort.json +48 -48
|
@@ -3,6 +3,7 @@ import node_path from "node:path";
|
|
|
3
3
|
import { createPrimaryShellDescriptor, verticalsFromTopology } from "../../ultramodern-workspace/add-vertical/topology.js";
|
|
4
4
|
import { normalizeUltramodernBridgeConfig } from "../../ultramodern-workspace/bridge-config.js";
|
|
5
5
|
import { ULTRAMODERN_CONFIG_PATH, createNeutralOwnership, shellApp } from "../../ultramodern-workspace/descriptors.js";
|
|
6
|
+
import { readModuleFederationExposePaths } from "../../ultramodern-workspace/mf-validation.js";
|
|
6
7
|
import { toKebabCase } from "../../ultramodern-workspace/naming.js";
|
|
7
8
|
import { resolveConfiguredAdditionalShells } from "../../ultramodern-workspace/shells.js";
|
|
8
9
|
import { isVerticalApiProtocol, isVerticalPreset, isWorkspaceDeliveryUnitKind } from "../../ultramodern-workspace/types.js";
|
|
@@ -116,7 +117,7 @@ function formatSchemaVersionError(sourcePath, reason, value) {
|
|
|
116
117
|
function normalizeCompactUltramodernConfig(workspaceRoot, compact) {
|
|
117
118
|
return normalizeCompactConfig(workspaceRoot, node_path.join(workspaceRoot, ULTRAMODERN_CONFIG_PATH), compact);
|
|
118
119
|
}
|
|
119
|
-
function workspaceAppsFromToolingConfig(config) {
|
|
120
|
+
function workspaceAppsFromToolingConfig(config, workspaceRoot) {
|
|
120
121
|
return config.topology.apps.map((app)=>{
|
|
121
122
|
if ('shell' === app.kind) return {
|
|
122
123
|
...shellApp,
|
|
@@ -134,8 +135,9 @@ function workspaceAppsFromToolingConfig(config) {
|
|
|
134
135
|
const domain = app.domain ?? app.id;
|
|
135
136
|
const packageSuffix = app.packageSuffix ?? domain;
|
|
136
137
|
const exposePaths = app.moduleFederation?.exposePaths ?? {};
|
|
138
|
+
const federatedPaths = void 0 === workspaceRoot ? void 0 : readModuleFederationExposePaths(workspaceRoot, app.path);
|
|
137
139
|
const exposes = Object.fromEntries((app.moduleFederation?.exposes ?? []).map((expose)=>{
|
|
138
|
-
const configuredPath = exposePaths[expose];
|
|
140
|
+
const configuredPath = federatedPaths?.[expose] ?? exposePaths[expose];
|
|
139
141
|
const inferredPath = './Route' === expose ? './src/federation-entry.tsx' : './Widget' === expose ? `./src/components/${domain}-widget.tsx` : `./src/components/${toKebabCase(expose.replace(/^\.\//u, ''))}.tsx`;
|
|
140
142
|
return [
|
|
141
143
|
expose,
|
|
@@ -175,9 +177,9 @@ function workspaceAppsFromToolingConfig(config) {
|
|
|
175
177
|
function additionalShellsFromToolingConfig(config) {
|
|
176
178
|
return resolveConfiguredAdditionalShells(config);
|
|
177
179
|
}
|
|
178
|
-
function allWorkspaceAppsFromToolingConfig(config) {
|
|
180
|
+
function allWorkspaceAppsFromToolingConfig(config, workspaceRoot) {
|
|
179
181
|
return [
|
|
180
|
-
...workspaceAppsFromToolingConfig(config),
|
|
182
|
+
...workspaceAppsFromToolingConfig(config, workspaceRoot),
|
|
181
183
|
...additionalShellsFromToolingConfig(config)
|
|
182
184
|
];
|
|
183
185
|
}
|
|
@@ -188,7 +190,7 @@ function normalizeWorkspaceInputs(workspaceRoot, inputs, sourcePath = node_path.
|
|
|
188
190
|
const topologyApps = inputs.topology ? [
|
|
189
191
|
createPrimaryShellDescriptor(inputs.topology, inputs.config),
|
|
190
192
|
...verticalsFromTopology(inputs.topology, ports)
|
|
191
|
-
] : workspaceAppsFromToolingConfig(config);
|
|
193
|
+
] : workspaceAppsFromToolingConfig(config, workspaceRoot);
|
|
192
194
|
const apps = [
|
|
193
195
|
...topologyApps.map((app)=>({
|
|
194
196
|
...app,
|
|
@@ -131,7 +131,7 @@ function executeAddUltramodernShell(options, logicalWorkspaceRoot = options.work
|
|
|
131
131
|
{
|
|
132
132
|
relativePath: "scripts/validate-ultramodern-workspace.mts",
|
|
133
133
|
generatedDataBinding: 'workspaceValidationContract',
|
|
134
|
-
content: createPackagedWorkspaceValidationScript(scope, enableTailwind, existingVerticals, void 0, existingAdditionalShells, primaryShell)
|
|
134
|
+
content: createPackagedWorkspaceValidationScript(scope, enableTailwind, existingVerticals, void 0, existingAdditionalShells, primaryShell, void 0, void 0, void 0, logicalWorkspaceRoot)
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
relativePath: 'zerops.yaml',
|
|
@@ -54,7 +54,7 @@ function executeAddUltramodernVertical(options, logicalWorkspaceRoot = options.w
|
|
|
54
54
|
{
|
|
55
55
|
relativePath: "scripts/validate-ultramodern-workspace.mts",
|
|
56
56
|
generatedDataBinding: 'workspaceValidationContract',
|
|
57
|
-
content: createPackagedWorkspaceValidationScript(scope, enableTailwind, existingVerticals, void 0, previousApps.filter((app)=>'shell' === app.kind && app.id !== primaryShell.id), previousApps.find((app)=>app.id === primaryShell.id))
|
|
57
|
+
content: createPackagedWorkspaceValidationScript(scope, enableTailwind, existingVerticals, void 0, previousApps.filter((app)=>'shell' === app.kind && app.id !== primaryShell.id), previousApps.find((app)=>app.id === primaryShell.id), void 0, void 0, void 0, logicalWorkspaceRoot)
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
relativePath: 'zerops.yaml',
|
|
@@ -54,7 +54,7 @@ nothing.
|
|
|
54
54
|
if (!node_fs.existsSync(compactPath)) throw new Error(`Missing ${ULTRAMODERN_CONFIG_PATH}. sync-delivery-unit needs the compact UltraModern config. Create a workspace with the current generator.`);
|
|
55
55
|
const config = readUltramodernConfig(workspaceRoot);
|
|
56
56
|
const scope = config.workspace.packageScope;
|
|
57
|
-
const workspaceApps = workspaceAppsFromToolingConfig(config);
|
|
57
|
+
const workspaceApps = workspaceAppsFromToolingConfig(config, workspaceRoot);
|
|
58
58
|
const written = [];
|
|
59
59
|
const unchanged = [];
|
|
60
60
|
const track = (relativePath, changed)=>{
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
import node_fs from "node:fs";
|
|
3
|
+
import node_path from "node:path";
|
|
4
|
+
import { moduleFederationConfigFile } from "./constants.js";
|
|
5
|
+
import { inspectModuleFederationConfigSource } from "./inspect.js";
|
|
6
|
+
function readModuleFederationExposePaths(workspaceRoot, appDirectory) {
|
|
7
|
+
const configPath = node_path.join(workspaceRoot, appDirectory, moduleFederationConfigFile);
|
|
8
|
+
if (!node_fs.existsSync(configPath)) return;
|
|
9
|
+
try {
|
|
10
|
+
return inspectModuleFederationConfigSource(node_fs.readFileSync(configPath, 'utf-8'), appDirectory, node_path.join(appDirectory, moduleFederationConfigFile)).exposePaths;
|
|
11
|
+
} catch {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export { readModuleFederationExposePaths };
|
|
@@ -2,14 +2,28 @@ import "node:module";
|
|
|
2
2
|
import { parseArrayLiteral, parseLiteralString, parseObjectLiteral } from "./object-literal.js";
|
|
3
3
|
import { findCreateModuleFederationConfigObject, findExportDefaultObject, parseConfigModule } from "./syntax.js";
|
|
4
4
|
function extractExposes(configPath, value) {
|
|
5
|
-
if (void 0 === value) return
|
|
5
|
+
if (void 0 === value) return {
|
|
6
|
+
exposePaths: {},
|
|
7
|
+
exposes: []
|
|
8
|
+
};
|
|
6
9
|
const object = parseObjectLiteral(value);
|
|
7
10
|
if (object) {
|
|
8
11
|
if (object.hasSpread) throw new Error(`Cannot statically extract Module Federation exposes from ${configPath}; use a literal exposes object without spreads.`);
|
|
9
|
-
|
|
12
|
+
const exposePaths = {};
|
|
13
|
+
for (const [expose, source] of object.properties){
|
|
14
|
+
const exposePath = parseLiteralString(source);
|
|
15
|
+
if (void 0 !== exposePath) exposePaths[expose] = exposePath;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
exposePaths,
|
|
19
|
+
exposes: Array.from(object.properties.keys()).sort()
|
|
20
|
+
};
|
|
10
21
|
}
|
|
11
22
|
const array = parseArrayLiteral(value);
|
|
12
|
-
if (array) return
|
|
23
|
+
if (array) return {
|
|
24
|
+
exposePaths: {},
|
|
25
|
+
exposes: array.sort()
|
|
26
|
+
};
|
|
13
27
|
throw new Error(`Cannot statically extract Module Federation exposes from ${configPath}; use a literal exposes object or string array.`);
|
|
14
28
|
}
|
|
15
29
|
function extractDtsSettings(configPath, value, exposes) {
|
|
@@ -37,13 +51,14 @@ function inspectModuleFederationConfigSource(source, appDir, configPath) {
|
|
|
37
51
|
const properties = parseObjectLiteral(configObject);
|
|
38
52
|
if (!properties) throw new Error(`Cannot statically inspect Module Federation config ${configPath}; expected a literal config object.`);
|
|
39
53
|
if (properties.hasSpread) throw new Error(`Cannot statically inspect Module Federation config ${configPath}; top-level config spreads are not supported.`);
|
|
40
|
-
const exposes = extractExposes(configPath, properties.properties.get('exposes'));
|
|
54
|
+
const { exposePaths, exposes } = extractExposes(configPath, properties.properties.get('exposes'));
|
|
41
55
|
const hostOnlyNoExposes = hasHostOnlyNoExposesDeclaration(source);
|
|
42
56
|
if (hostOnlyNoExposes && exposes.length > 0) throw new Error(`Module Federation host-only/no-exposes declaration conflicts with actual exposes in ${configPath}.`);
|
|
43
57
|
return {
|
|
44
58
|
appDir,
|
|
45
59
|
configPath,
|
|
46
60
|
dts: extractDtsSettings(configPath, properties.properties.get('dts'), exposes),
|
|
61
|
+
exposePaths,
|
|
47
62
|
exposes,
|
|
48
63
|
hostOnlyNoExposes
|
|
49
64
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "node:module";
|
|
2
2
|
export { discoverModuleFederationConfigs } from "./mf-validation/discovery.js";
|
|
3
|
+
export { readModuleFederationExposePaths } from "./mf-validation/exposes.js";
|
|
3
4
|
export { inspectModuleFederationConfigSource } from "./mf-validation/inspect.js";
|
|
4
5
|
export { validateModuleFederationTypes } from "./mf-validation/validate.js";
|
|
@@ -79,8 +79,8 @@ const result = createBin
|
|
|
79
79
|
});
|
|
80
80
|
${toolWrapperResultHandling}`;
|
|
81
81
|
}
|
|
82
|
-
function createPackagedWorkspaceValidationScript(scope, enableTailwind, remotes = [], releaseCohort, additionalShells = [], primaryShell, compactConfigOverride, ownershipOverride, developmentOverlayOverride) {
|
|
83
|
-
const contract = createWorkspaceValidationContract(scope, enableTailwind, remotes, releaseCohort, additionalShells, primaryShell, compactConfigOverride, ownershipOverride, developmentOverlayOverride);
|
|
82
|
+
function createPackagedWorkspaceValidationScript(scope, enableTailwind, remotes = [], releaseCohort, additionalShells = [], primaryShell, compactConfigOverride, ownershipOverride, developmentOverlayOverride, workspaceRoot) {
|
|
83
|
+
const contract = createWorkspaceValidationContract(scope, enableTailwind, remotes, releaseCohort, additionalShells, primaryShell, compactConfigOverride, ownershipOverride, developmentOverlayOverride, workspaceRoot);
|
|
84
84
|
return renderFileTemplate("workspace-scripts/validate-ultramodern-workspace.mjs", {
|
|
85
85
|
workspaceValidationContractJson: JSON.stringify(contract, null, 2),
|
|
86
86
|
workspaceScriptSegmentPattern: JSON.stringify(WORKSPACE_SCRIPT_SEGMENT_PATTERN.source)
|
|
@@ -5,6 +5,7 @@ import { createBackendFederationMetadata } from "./backend-federation.js";
|
|
|
5
5
|
import { createDevelopmentOverlay, createOwnership, createTopology, createUltramodernConfig } from "./contracts.js";
|
|
6
6
|
import { createDeliveryUnitRecord } from "./delivery-unit.js";
|
|
7
7
|
import { appEmitsBrowserUi, appHasApi, appI18nNamespace, createShellHost, remoteDependencyAlias, resolveApiProtocol, resolveApiStem, sharedPackages, shellApp } from "./descriptors.js";
|
|
8
|
+
import { readModuleFederationExposePaths } from "./mf-validation.js";
|
|
8
9
|
import { packageName, tailwindPrefixForApp } from "./naming.js";
|
|
9
10
|
import { createCloudflareSecurityContract } from "./policy.js";
|
|
10
11
|
import { publicSurfaceManagedSourceAssetPaths } from "./public-surface.js";
|
|
@@ -146,7 +147,14 @@ function createFederatedCompositionPolicy(scope, hosts, remotes) {
|
|
|
146
147
|
}))
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function federatedSurfacePaths(remote, workspaceRoot) {
|
|
151
|
+
const declared = void 0 === workspaceRoot ? void 0 : readModuleFederationExposePaths(workspaceRoot, remote.directory);
|
|
152
|
+
return Object.keys(remote.exposes ?? {}).map((expose)=>{
|
|
153
|
+
const source = declared?.[expose] ?? remote.exposes?.[expose];
|
|
154
|
+
return source ? `${remote.directory}/${source.replace(/^\.\//u, '')}` : void 0;
|
|
155
|
+
}).filter((componentPath)=>Boolean(componentPath));
|
|
156
|
+
}
|
|
157
|
+
function createWorkspaceValidationContract(scope, enableTailwind, remotes = [], releaseCohort, additionalShells = [], primaryShell, compactConfigOverride, ownershipOverride, developmentOverlayOverride, workspaceRoot) {
|
|
150
158
|
const resolvedPrimaryShell = primaryShell ?? createShellHost(remotes);
|
|
151
159
|
const workspaceApps = [
|
|
152
160
|
resolvedPrimaryShell,
|
|
@@ -185,10 +193,7 @@ function createWorkspaceValidationContract(scope, enableTailwind, remotes = [],
|
|
|
185
193
|
packageName: packageName(scope, remote.packageSuffix),
|
|
186
194
|
deliveryUnit: createDeliveryUnitRecord(scope, remote),
|
|
187
195
|
exposes: Object.keys(remote.exposes ?? {}),
|
|
188
|
-
componentPaths:
|
|
189
|
-
const source = remote.exposes?.[expose];
|
|
190
|
-
return source ? `${remote.directory}/${source.replace(/^\.\//u, '')}` : void 0;
|
|
191
|
-
}).filter((componentPath)=>Boolean(componentPath)),
|
|
196
|
+
componentPaths: federatedSurfacePaths(remote, workspaceRoot),
|
|
192
197
|
namespace: appI18nNamespace(remote),
|
|
193
198
|
routePagePaths: createRouteOwnedI18nPaths(remote).filter((route)=>'/' !== route.canonicalPath).map((route)=>createRoutePageFilePath(remote, route.canonicalPath)),
|
|
194
199
|
routeMetaPaths: createRouteOwnedI18nPaths(remote).map((route)=>createRouteMetaFilePath(remote, route.canonicalPath)),
|
|
@@ -16,9 +16,14 @@ export declare class UnsupportedUltramodernConfigError extends Error {
|
|
|
16
16
|
}
|
|
17
17
|
export declare function normalizeCompactConfig(workspaceRoot: string, sourcePath: string, config: Record<string, any>): UltramodernToolingConfig;
|
|
18
18
|
export declare function normalizeCompactUltramodernConfig(workspaceRoot: string, compact: Record<string, any>): UltramodernToolingConfig;
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* `workspaceRoot` lets each vertical's federated surface paths come from the
|
|
21
|
+
* Module Federation config it actually ships. Without it the surface falls back
|
|
22
|
+
* to the generator's `src/components` layout.
|
|
23
|
+
*/
|
|
24
|
+
export declare function workspaceAppsFromToolingConfig(config: UltramodernToolingConfig, workspaceRoot?: string): WorkspaceApp[];
|
|
20
25
|
export declare function additionalShellsFromToolingConfig(config: UltramodernToolingConfig): WorkspaceApp[];
|
|
21
|
-
export declare function allWorkspaceAppsFromToolingConfig(config: UltramodernToolingConfig): WorkspaceApp[];
|
|
26
|
+
export declare function allWorkspaceAppsFromToolingConfig(config: UltramodernToolingConfig, workspaceRoot?: string): WorkspaceApp[];
|
|
22
27
|
export type UltramodernWorkspaceInputs = {
|
|
23
28
|
config: Record<string, any>;
|
|
24
29
|
topology?: Record<string, any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The expose map an app's own Module Federation config declares, keyed by
|
|
3
|
+
* expose name (`./PageContacts`) with the package-relative source it points at
|
|
4
|
+
* (`./src/federation/page-contacts.tsx`).
|
|
5
|
+
*
|
|
6
|
+
* Returns undefined when the app ships no Module Federation config, or when the
|
|
7
|
+
* config cannot be inspected statically, so callers keep their own expectation
|
|
8
|
+
* rather than inventing a surface path. `ultramodern mf-types` reports those
|
|
9
|
+
* configs separately, so staying quiet here never hides a broken config.
|
|
10
|
+
*/
|
|
11
|
+
export declare function readModuleFederationExposePaths(workspaceRoot: string, appDirectory: string): Record<string, string> | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { discoverModuleFederationConfigs } from './mf-validation/discovery.js';
|
|
2
|
+
export { readModuleFederationExposePaths } from './mf-validation/exposes.js';
|
|
2
3
|
export { inspectModuleFederationConfigSource } from './mf-validation/inspect.js';
|
|
3
4
|
export type { ModuleFederationConfigInspection, ModuleFederationDiscoveredConfig, ModuleFederationValidationOptions, ModuleFederationValidationResult, ModuleFederationValidationTarget, } from './mf-validation/types.js';
|
|
4
5
|
export { validateModuleFederationTypes } from './mf-validation/validate.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UltramodernReleaseCohort } from '../ultramodern-release-cohort.js';
|
|
2
2
|
import type { WorkspaceApp } from './types.js';
|
|
3
|
-
export declare function createPackagedWorkspaceValidationScript(scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[], releaseCohort?: UltramodernReleaseCohort, additionalShells?: WorkspaceApp[], primaryShell?: WorkspaceApp, compactConfigOverride?: Record<string, unknown>, ownershipOverride?: Record<string, unknown>, developmentOverlayOverride?: Record<string, unknown
|
|
3
|
+
export declare function createPackagedWorkspaceValidationScript(scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[], releaseCohort?: UltramodernReleaseCohort, additionalShells?: WorkspaceApp[], primaryShell?: WorkspaceApp, compactConfigOverride?: Record<string, unknown>, ownershipOverride?: Record<string, unknown>, developmentOverlayOverride?: Record<string, unknown>, workspaceRoot?: string): string;
|
|
4
4
|
export declare function createWorkspaceValidationScript(..._options: Parameters<typeof createPackagedWorkspaceValidationScript>): string;
|
|
5
5
|
export declare function createZeropsRuntimeMaterializationScript(): string;
|
|
6
6
|
export declare function writeGeneratedWorkspaceScripts(targetDir: string, scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[], releaseCohort?: UltramodernReleaseCohort, additionalShells?: WorkspaceApp[], primaryShell?: WorkspaceApp, options?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UltramodernReleaseCohort } from '../ultramodern-release-cohort.js';
|
|
2
2
|
import type { WorkspaceApp } from './types.js';
|
|
3
|
-
export declare function createWorkspaceValidationContract(scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[], releaseCohort?: UltramodernReleaseCohort, additionalShells?: WorkspaceApp[], primaryShell?: WorkspaceApp, compactConfigOverride?: Record<string, unknown>, ownershipOverride?: Record<string, unknown>, developmentOverlayOverride?: Record<string, unknown
|
|
3
|
+
export declare function createWorkspaceValidationContract(scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[], releaseCohort?: UltramodernReleaseCohort, additionalShells?: WorkspaceApp[], primaryShell?: WorkspaceApp, compactConfigOverride?: Record<string, unknown>, ownershipOverride?: Record<string, unknown>, developmentOverlayOverride?: Record<string, unknown>, workspaceRoot?: string): {
|
|
4
4
|
schemaVersion: number;
|
|
5
5
|
kind: string;
|
|
6
6
|
metadata: {
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=26.7.0"
|
|
28
28
|
},
|
|
29
|
-
"version": "3.9.0-ultramodern.
|
|
29
|
+
"version": "3.9.0-ultramodern.8",
|
|
30
30
|
"types": "./dist/types/index.d.ts",
|
|
31
31
|
"main": "./dist/esm-node/index.js",
|
|
32
32
|
"bin": {
|
|
@@ -82,20 +82,20 @@
|
|
|
82
82
|
],
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@babel/parser": "^8.0.4",
|
|
85
|
-
"@modern-js/app-tools-extensions": "npm:@bleedingdev/modern-js-app-tools-extensions@3.9.0-ultramodern.
|
|
86
|
-
"@modern-js/backend-federation-contracts": "npm:@bleedingdev/modern-js-backend-federation-contracts@3.9.0-ultramodern.
|
|
85
|
+
"@modern-js/app-tools-extensions": "npm:@bleedingdev/modern-js-app-tools-extensions@3.9.0-ultramodern.8",
|
|
86
|
+
"@modern-js/backend-federation-contracts": "npm:@bleedingdev/modern-js-backend-federation-contracts@3.9.0-ultramodern.8",
|
|
87
87
|
"@modern-js/codesmith": "2.6.9",
|
|
88
|
-
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.9.0-ultramodern.
|
|
89
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.
|
|
88
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.9.0-ultramodern.8",
|
|
89
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.8",
|
|
90
90
|
"esbuild": "^0.28.2",
|
|
91
91
|
"miniflare": "4.20260730.0",
|
|
92
92
|
"oxfmt": "0.66.0",
|
|
93
93
|
"ultracite": "7.11.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@modern-js/i18n-integration": "npm:@bleedingdev/modern-js-i18n-integration@3.9.0-ultramodern.
|
|
97
|
-
"@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.9.0-ultramodern.
|
|
98
|
-
"@modern-js/plugin-bff-build-extensions": "npm:@bleedingdev/modern-js-plugin-bff-build-extensions@3.9.0-ultramodern.
|
|
96
|
+
"@modern-js/i18n-integration": "npm:@bleedingdev/modern-js-i18n-integration@3.9.0-ultramodern.8",
|
|
97
|
+
"@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.9.0-ultramodern.8",
|
|
98
|
+
"@modern-js/plugin-bff-build-extensions": "npm:@bleedingdev/modern-js-plugin-bff-build-extensions@3.9.0-ultramodern.8",
|
|
99
99
|
"@rslib/core": "1.0.0",
|
|
100
100
|
"@scripts/rstest-config": "2.66.0",
|
|
101
101
|
"@types/node": "^26.4.1",
|
|
@@ -117,6 +117,6 @@
|
|
|
117
117
|
"type-check": "tsgo --noEmit -p tsconfig.json"
|
|
118
118
|
},
|
|
119
119
|
"ultramodern": {
|
|
120
|
-
"frameworkVersion": "3.9.0-ultramodern.
|
|
120
|
+
"frameworkVersion": "3.9.0-ultramodern.8"
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -51,242 +51,242 @@
|
|
|
51
51
|
{
|
|
52
52
|
"sourceName": "@modern-js/adapter-rstest",
|
|
53
53
|
"targetName": "@bleedingdev/modern-js-adapter-rstest",
|
|
54
|
-
"version": "3.9.0-ultramodern.
|
|
54
|
+
"version": "3.9.0-ultramodern.8"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"sourceName": "@modern-js/app-tools",
|
|
58
58
|
"targetName": "@bleedingdev/modern-js-app-tools",
|
|
59
|
-
"version": "3.9.0-ultramodern.
|
|
59
|
+
"version": "3.9.0-ultramodern.8"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"sourceName": "@modern-js/app-tools-extensions",
|
|
63
63
|
"targetName": "@bleedingdev/modern-js-app-tools-extensions",
|
|
64
|
-
"version": "3.9.0-ultramodern.
|
|
64
|
+
"version": "3.9.0-ultramodern.8"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"sourceName": "@modern-js/backend-federation-contracts",
|
|
68
68
|
"targetName": "@bleedingdev/modern-js-backend-federation-contracts",
|
|
69
|
-
"version": "3.9.0-ultramodern.
|
|
69
|
+
"version": "3.9.0-ultramodern.8"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"sourceName": "@modern-js/bff-core",
|
|
73
73
|
"targetName": "@bleedingdev/modern-js-bff-core",
|
|
74
|
-
"version": "3.9.0-ultramodern.
|
|
74
|
+
"version": "3.9.0-ultramodern.8"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"sourceName": "@modern-js/bff-effect",
|
|
78
78
|
"targetName": "@bleedingdev/modern-js-bff-effect",
|
|
79
|
-
"version": "3.9.0-ultramodern.
|
|
79
|
+
"version": "3.9.0-ultramodern.8"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"sourceName": "@modern-js/bff-runtime",
|
|
83
83
|
"targetName": "@bleedingdev/modern-js-bff-runtime",
|
|
84
|
-
"version": "3.9.0-ultramodern.
|
|
84
|
+
"version": "3.9.0-ultramodern.8"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"sourceName": "@modern-js/boundary-debugger",
|
|
88
88
|
"targetName": "@bleedingdev/modern-js-boundary-debugger",
|
|
89
|
-
"version": "3.9.0-ultramodern.
|
|
89
|
+
"version": "3.9.0-ultramodern.8"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"sourceName": "@modern-js/builder",
|
|
93
93
|
"targetName": "@bleedingdev/modern-js-builder",
|
|
94
|
-
"version": "3.9.0-ultramodern.
|
|
94
|
+
"version": "3.9.0-ultramodern.8"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"sourceName": "@modern-js/code-tools",
|
|
98
98
|
"targetName": "@bleedingdev/modern-js-code-tools",
|
|
99
|
-
"version": "3.9.0-ultramodern.
|
|
99
|
+
"version": "3.9.0-ultramodern.8"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"sourceName": "@modern-js/create-request",
|
|
103
103
|
"targetName": "@bleedingdev/modern-js-create-request",
|
|
104
|
-
"version": "3.9.0-ultramodern.
|
|
104
|
+
"version": "3.9.0-ultramodern.8"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"sourceName": "@modern-js/federation-runtime",
|
|
108
108
|
"targetName": "@bleedingdev/modern-js-federation-runtime",
|
|
109
|
-
"version": "3.9.0-ultramodern.
|
|
109
|
+
"version": "3.9.0-ultramodern.8"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"sourceName": "@modern-js/i18n-integration",
|
|
113
113
|
"targetName": "@bleedingdev/modern-js-i18n-integration",
|
|
114
|
-
"version": "3.9.0-ultramodern.
|
|
114
|
+
"version": "3.9.0-ultramodern.8"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"sourceName": "@modern-js/i18n-runtime-extensions",
|
|
118
118
|
"targetName": "@bleedingdev/modern-js-i18n-runtime-extensions",
|
|
119
|
-
"version": "3.9.0-ultramodern.
|
|
119
|
+
"version": "3.9.0-ultramodern.8"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"sourceName": "@modern-js/i18n-utils",
|
|
123
123
|
"targetName": "@bleedingdev/modern-js-i18n-utils",
|
|
124
|
-
"version": "3.9.0-ultramodern.
|
|
124
|
+
"version": "3.9.0-ultramodern.8"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"sourceName": "@modern-js/image",
|
|
128
128
|
"targetName": "@bleedingdev/modern-js-image",
|
|
129
|
-
"version": "3.9.0-ultramodern.
|
|
129
|
+
"version": "3.9.0-ultramodern.8"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"sourceName": "@modern-js/main-doc",
|
|
133
133
|
"targetName": "@bleedingdev/modern-js-main-doc",
|
|
134
|
-
"version": "3.9.0-ultramodern.
|
|
134
|
+
"version": "3.9.0-ultramodern.8"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
"sourceName": "@modern-js/plugin",
|
|
138
138
|
"targetName": "@bleedingdev/modern-js-plugin",
|
|
139
|
-
"version": "3.9.0-ultramodern.
|
|
139
|
+
"version": "3.9.0-ultramodern.8"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"sourceName": "@modern-js/plugin-bff",
|
|
143
143
|
"targetName": "@bleedingdev/modern-js-plugin-bff",
|
|
144
|
-
"version": "3.9.0-ultramodern.
|
|
144
|
+
"version": "3.9.0-ultramodern.8"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"sourceName": "@modern-js/plugin-bff-build-extensions",
|
|
148
148
|
"targetName": "@bleedingdev/modern-js-plugin-bff-build-extensions",
|
|
149
|
-
"version": "3.9.0-ultramodern.
|
|
149
|
+
"version": "3.9.0-ultramodern.8"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"sourceName": "@modern-js/plugin-bff-extensions",
|
|
153
153
|
"targetName": "@bleedingdev/modern-js-plugin-bff-extensions",
|
|
154
|
-
"version": "3.9.0-ultramodern.
|
|
154
|
+
"version": "3.9.0-ultramodern.8"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"sourceName": "@modern-js/plugin-data-loader",
|
|
158
158
|
"targetName": "@bleedingdev/modern-js-plugin-data-loader",
|
|
159
|
-
"version": "3.9.0-ultramodern.
|
|
159
|
+
"version": "3.9.0-ultramodern.8"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"sourceName": "@modern-js/plugin-i18n",
|
|
163
163
|
"targetName": "@bleedingdev/modern-js-plugin-i18n",
|
|
164
|
-
"version": "3.9.0-ultramodern.
|
|
164
|
+
"version": "3.9.0-ultramodern.8"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"sourceName": "@modern-js/plugin-polyfill",
|
|
168
168
|
"targetName": "@bleedingdev/modern-js-plugin-polyfill",
|
|
169
|
-
"version": "3.9.0-ultramodern.
|
|
169
|
+
"version": "3.9.0-ultramodern.8"
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"sourceName": "@modern-js/plugin-ssg",
|
|
173
173
|
"targetName": "@bleedingdev/modern-js-plugin-ssg",
|
|
174
|
-
"version": "3.9.0-ultramodern.
|
|
174
|
+
"version": "3.9.0-ultramodern.8"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"sourceName": "@modern-js/plugin-styled-components",
|
|
178
178
|
"targetName": "@bleedingdev/modern-js-plugin-styled-components",
|
|
179
|
-
"version": "3.9.0-ultramodern.
|
|
179
|
+
"version": "3.9.0-ultramodern.8"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"sourceName": "@modern-js/plugin-tanstack",
|
|
183
183
|
"targetName": "@bleedingdev/modern-js-plugin-tanstack",
|
|
184
|
-
"version": "3.9.0-ultramodern.
|
|
184
|
+
"version": "3.9.0-ultramodern.8"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"sourceName": "@modern-js/prod-server",
|
|
188
188
|
"targetName": "@bleedingdev/modern-js-prod-server",
|
|
189
|
-
"version": "3.9.0-ultramodern.
|
|
189
|
+
"version": "3.9.0-ultramodern.8"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"sourceName": "@modern-js/render",
|
|
193
193
|
"targetName": "@bleedingdev/modern-js-render",
|
|
194
|
-
"version": "3.9.0-ultramodern.
|
|
194
|
+
"version": "3.9.0-ultramodern.8"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"sourceName": "@modern-js/runtime",
|
|
198
198
|
"targetName": "@bleedingdev/modern-js-runtime",
|
|
199
|
-
"version": "3.9.0-ultramodern.
|
|
199
|
+
"version": "3.9.0-ultramodern.8"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"sourceName": "@modern-js/runtime-extensions",
|
|
203
203
|
"targetName": "@bleedingdev/modern-js-runtime-extensions",
|
|
204
|
-
"version": "3.9.0-ultramodern.
|
|
204
|
+
"version": "3.9.0-ultramodern.8"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"sourceName": "@modern-js/runtime-renderer-extensions",
|
|
208
208
|
"targetName": "@bleedingdev/modern-js-runtime-renderer-extensions",
|
|
209
|
-
"version": "3.9.0-ultramodern.
|
|
209
|
+
"version": "3.9.0-ultramodern.8"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"sourceName": "@modern-js/runtime-utils",
|
|
213
213
|
"targetName": "@bleedingdev/modern-js-runtime-utils",
|
|
214
|
-
"version": "3.9.0-ultramodern.
|
|
214
|
+
"version": "3.9.0-ultramodern.8"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"sourceName": "@modern-js/sandpack-react",
|
|
218
218
|
"targetName": "@bleedingdev/modern-js-sandpack-react",
|
|
219
|
-
"version": "3.9.0-ultramodern.
|
|
219
|
+
"version": "3.9.0-ultramodern.8"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"sourceName": "@modern-js/server",
|
|
223
223
|
"targetName": "@bleedingdev/modern-js-server",
|
|
224
|
-
"version": "3.9.0-ultramodern.
|
|
224
|
+
"version": "3.9.0-ultramodern.8"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"sourceName": "@modern-js/server-core",
|
|
228
228
|
"targetName": "@bleedingdev/modern-js-server-core",
|
|
229
|
-
"version": "3.9.0-ultramodern.
|
|
229
|
+
"version": "3.9.0-ultramodern.8"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"sourceName": "@modern-js/server-runtime",
|
|
233
233
|
"targetName": "@bleedingdev/modern-js-server-runtime",
|
|
234
|
-
"version": "3.9.0-ultramodern.
|
|
234
|
+
"version": "3.9.0-ultramodern.8"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"sourceName": "@modern-js/server-runtime-extensions",
|
|
238
238
|
"targetName": "@bleedingdev/modern-js-server-runtime-extensions",
|
|
239
|
-
"version": "3.9.0-ultramodern.
|
|
239
|
+
"version": "3.9.0-ultramodern.8"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"sourceName": "@modern-js/server-utils",
|
|
243
243
|
"targetName": "@bleedingdev/modern-js-server-utils",
|
|
244
|
-
"version": "3.9.0-ultramodern.
|
|
244
|
+
"version": "3.9.0-ultramodern.8"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"sourceName": "@modern-js/surface-resolution",
|
|
248
248
|
"targetName": "@bleedingdev/modern-js-surface-resolution",
|
|
249
|
-
"version": "3.9.0-ultramodern.
|
|
249
|
+
"version": "3.9.0-ultramodern.8"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"sourceName": "@modern-js/tsconfig",
|
|
253
253
|
"targetName": "@bleedingdev/modern-js-tsconfig",
|
|
254
|
-
"version": "3.9.0-ultramodern.
|
|
254
|
+
"version": "3.9.0-ultramodern.8"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
"sourceName": "@modern-js/types",
|
|
258
258
|
"targetName": "@bleedingdev/modern-js-types",
|
|
259
|
-
"version": "3.9.0-ultramodern.
|
|
259
|
+
"version": "3.9.0-ultramodern.8"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
"sourceName": "@modern-js/ultramodern-app-tools",
|
|
263
263
|
"targetName": "@bleedingdev/modern-js-ultramodern-app-tools",
|
|
264
|
-
"version": "3.9.0-ultramodern.
|
|
264
|
+
"version": "3.9.0-ultramodern.8"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
"sourceName": "@modern-js/ultramodern-create",
|
|
268
268
|
"targetName": "@bleedingdev/modern-js-ultramodern-create",
|
|
269
|
-
"version": "3.9.0-ultramodern.
|
|
269
|
+
"version": "3.9.0-ultramodern.8"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
"sourceName": "@modern-js/ultramodern-sandpack-profile",
|
|
273
273
|
"targetName": "@bleedingdev/modern-js-ultramodern-sandpack-profile",
|
|
274
|
-
"version": "3.9.0-ultramodern.
|
|
274
|
+
"version": "3.9.0-ultramodern.8"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
"sourceName": "@modern-js/utils",
|
|
278
278
|
"targetName": "@bleedingdev/modern-js-utils",
|
|
279
|
-
"version": "3.9.0-ultramodern.
|
|
279
|
+
"version": "3.9.0-ultramodern.8"
|
|
280
280
|
}
|
|
281
281
|
],
|
|
282
282
|
"release": {
|
|
283
283
|
"tag": "latest",
|
|
284
|
-
"version": "3.9.0-ultramodern.
|
|
284
|
+
"version": "3.9.0-ultramodern.8"
|
|
285
285
|
},
|
|
286
286
|
"schema": "bleedingdev.ultramodern.release-cohort",
|
|
287
287
|
"schemaVersion": 1,
|
|
288
288
|
"source": {
|
|
289
|
-
"commit": "
|
|
289
|
+
"commit": "905cd7ae5b0f74460f00e2e0c11625c5a2662b0f",
|
|
290
290
|
"repository": "BleedingDev/ultramodern.js"
|
|
291
291
|
}
|
|
292
292
|
}
|