@bleedingdev/modern-js-create 3.5.0-ultramodern.32 → 3.5.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/cjs/ultramodern-tooling/commands/migrate-strict-effect/api-metadata.cjs +1 -1
- package/dist/cjs/ultramodern-workspace/workspace-script-plan.cjs +7 -1
- package/dist/cjs/ultramodern-workspace/workspace-scripts.cjs +8 -5
- package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/api-metadata.js +1 -1
- package/dist/esm/ultramodern-workspace/workspace-script-plan.js +7 -1
- package/dist/esm/ultramodern-workspace/workspace-scripts.js +8 -5
- package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/api-metadata.js +1 -1
- package/dist/esm-node/ultramodern-workspace/workspace-script-plan.js +7 -1
- package/dist/esm-node/ultramodern-workspace/workspace-scripts.js +8 -5
- package/dist/types/ultramodern-workspace/workspace-script-plan.d.ts +1 -1
- package/dist/types/ultramodern-workspace/workspace-scripts.d.ts +4 -2
- package/dist/types/ultramodern-workspace/workspace-validation-contract.d.ts +1 -1
- package/package.json +4 -4
|
@@ -68,6 +68,11 @@ const workspaceRootPackageScriptNames = {
|
|
|
68
68
|
typecheck: 'typecheck',
|
|
69
69
|
check: 'check'
|
|
70
70
|
};
|
|
71
|
+
const shellOnlyOmittedRootScriptPlanKeys = new Set([
|
|
72
|
+
'backendFederationGenerate',
|
|
73
|
+
'nodeProof',
|
|
74
|
+
'zeropsMaterialize'
|
|
75
|
+
]);
|
|
71
76
|
const workspaceAppPackageScriptNames = {
|
|
72
77
|
dev: 'dev',
|
|
73
78
|
build: 'build',
|
|
@@ -143,7 +148,8 @@ function createWorkspaceRootScriptPlan(remotes = [], options = {}) {
|
|
|
143
148
|
}
|
|
144
149
|
function createWorkspaceRootPackageScripts(remotes = [], options = {}) {
|
|
145
150
|
const plan = createWorkspaceRootScriptPlan(remotes, options);
|
|
146
|
-
|
|
151
|
+
const shellOnly = 0 === remotes.length;
|
|
152
|
+
return Object.fromEntries(Object.entries(workspaceRootPackageScriptNames).filter(([planKey])=>!(shellOnly && shellOnlyOmittedRootScriptPlanKeys.has(planKey))).map(([planKey, packageScriptName])=>[
|
|
147
153
|
packageScriptName,
|
|
148
154
|
plan[planKey]
|
|
149
155
|
]));
|
|
@@ -94,8 +94,8 @@ function writeGeneratedToolWrapperScript(targetDir, key) {
|
|
|
94
94
|
const command = external_tooling_command_catalog_cjs_namespaceObject.GENERATED_TOOLING_COMMANDS[key];
|
|
95
95
|
writeWorkspaceOwnedMtsScript(targetDir, command.wrapperName, createToolWrapperScript(command.command));
|
|
96
96
|
}
|
|
97
|
-
function writeGeneratedToolWrapperScripts(targetDir) {
|
|
98
|
-
for (const command of external_tooling_command_catalog_cjs_namespaceObject.generatedToolingCommands)writeGeneratedToolWrapperScript(targetDir, command.id);
|
|
97
|
+
function writeGeneratedToolWrapperScripts(targetDir, options = {}) {
|
|
98
|
+
for (const command of external_tooling_command_catalog_cjs_namespaceObject.generatedToolingCommands)if (!(options.shellOnly && BACKEND_FEDERATION_WRAPPER_IDS.has(command.id))) writeGeneratedToolWrapperScript(targetDir, command.id);
|
|
99
99
|
}
|
|
100
100
|
function createSkillsToolWrapperScript() {
|
|
101
101
|
return `#!/usr/bin/env node
|
|
@@ -186,12 +186,15 @@ function createNodeBackendFederationProofScript() {
|
|
|
186
186
|
function createZeropsRuntimeMaterializationScript() {
|
|
187
187
|
return (0, external_fs_io_cjs_namespaceObject.readFileTemplate)("workspace-scripts/materialize-zerops-runtime.mjs");
|
|
188
188
|
}
|
|
189
|
-
function writeGeneratedWorkspaceScripts(targetDir, _scope, _enableTailwind,
|
|
189
|
+
function writeGeneratedWorkspaceScripts(targetDir, _scope, _enableTailwind, remotes = []) {
|
|
190
|
+
const shellOnly = 0 === remotes.length;
|
|
190
191
|
writeWorkspaceOwnedMtsScript(targetDir, 'check-ultramodern-i18n-boundaries', createWorkspaceI18nBoundaryValidationScript());
|
|
191
192
|
writeWorkspaceOwnedMtsScript(targetDir, 'check-ultramodern-api-boundaries', createWorkspaceApiBoundaryValidationScript());
|
|
192
|
-
(0, external_fs_io_cjs_namespaceObject.writeFileReplacing)(targetDir, "scripts/materialize-zerops-runtime.mjs", createZeropsRuntimeMaterializationScript());
|
|
193
|
+
if (!shellOnly) (0, external_fs_io_cjs_namespaceObject.writeFileReplacing)(targetDir, "scripts/materialize-zerops-runtime.mjs", createZeropsRuntimeMaterializationScript());
|
|
193
194
|
(0, external_fs_io_cjs_namespaceObject.writeFileReplacing)(targetDir, "scripts/ultramodern-performance-readiness.config.mjs", createPerformanceReadinessConfigScript());
|
|
194
|
-
writeGeneratedToolWrapperScripts(targetDir
|
|
195
|
+
writeGeneratedToolWrapperScripts(targetDir, {
|
|
196
|
+
shellOnly
|
|
197
|
+
});
|
|
195
198
|
writeWorkspaceOwnedMtsScript(targetDir, 'bootstrap-agent-skills', createSkillsToolWrapperScript());
|
|
196
199
|
migrateCopiedWorkspaceScriptToMts(targetDir, 'setup-agent-reference-repos');
|
|
197
200
|
}
|
|
@@ -27,6 +27,11 @@ const workspaceRootPackageScriptNames = {
|
|
|
27
27
|
typecheck: 'typecheck',
|
|
28
28
|
check: 'check'
|
|
29
29
|
};
|
|
30
|
+
const shellOnlyOmittedRootScriptPlanKeys = new Set([
|
|
31
|
+
'backendFederationGenerate',
|
|
32
|
+
'nodeProof',
|
|
33
|
+
'zeropsMaterialize'
|
|
34
|
+
]);
|
|
30
35
|
const workspaceAppPackageScriptNames = {
|
|
31
36
|
dev: 'dev',
|
|
32
37
|
build: 'build',
|
|
@@ -102,7 +107,8 @@ function createWorkspaceRootScriptPlan(remotes = [], options = {}) {
|
|
|
102
107
|
}
|
|
103
108
|
function createWorkspaceRootPackageScripts(remotes = [], options = {}) {
|
|
104
109
|
const plan = createWorkspaceRootScriptPlan(remotes, options);
|
|
105
|
-
|
|
110
|
+
const shellOnly = 0 === remotes.length;
|
|
111
|
+
return Object.fromEntries(Object.entries(workspaceRootPackageScriptNames).filter(([planKey])=>!(shellOnly && shellOnlyOmittedRootScriptPlanKeys.has(planKey))).map(([planKey, packageScriptName])=>[
|
|
106
112
|
packageScriptName,
|
|
107
113
|
plan[planKey]
|
|
108
114
|
]));
|
|
@@ -41,8 +41,8 @@ function writeGeneratedToolWrapperScript(targetDir, key) {
|
|
|
41
41
|
const command = GENERATED_TOOLING_COMMANDS[key];
|
|
42
42
|
writeWorkspaceOwnedMtsScript(targetDir, command.wrapperName, createToolWrapperScript(command.command));
|
|
43
43
|
}
|
|
44
|
-
function writeGeneratedToolWrapperScripts(targetDir) {
|
|
45
|
-
for (const command of generatedToolingCommands)writeGeneratedToolWrapperScript(targetDir, command.id);
|
|
44
|
+
function writeGeneratedToolWrapperScripts(targetDir, options = {}) {
|
|
45
|
+
for (const command of generatedToolingCommands)if (!(options.shellOnly && BACKEND_FEDERATION_WRAPPER_IDS.has(command.id))) writeGeneratedToolWrapperScript(targetDir, command.id);
|
|
46
46
|
}
|
|
47
47
|
function createSkillsToolWrapperScript() {
|
|
48
48
|
return `#!/usr/bin/env node
|
|
@@ -133,12 +133,15 @@ function createNodeBackendFederationProofScript() {
|
|
|
133
133
|
function createZeropsRuntimeMaterializationScript() {
|
|
134
134
|
return readFileTemplate("workspace-scripts/materialize-zerops-runtime.mjs");
|
|
135
135
|
}
|
|
136
|
-
function writeGeneratedWorkspaceScripts(targetDir, _scope, _enableTailwind,
|
|
136
|
+
function writeGeneratedWorkspaceScripts(targetDir, _scope, _enableTailwind, remotes = []) {
|
|
137
|
+
const shellOnly = 0 === remotes.length;
|
|
137
138
|
writeWorkspaceOwnedMtsScript(targetDir, 'check-ultramodern-i18n-boundaries', createWorkspaceI18nBoundaryValidationScript());
|
|
138
139
|
writeWorkspaceOwnedMtsScript(targetDir, 'check-ultramodern-api-boundaries', createWorkspaceApiBoundaryValidationScript());
|
|
139
|
-
writeFileReplacing(targetDir, "scripts/materialize-zerops-runtime.mjs", createZeropsRuntimeMaterializationScript());
|
|
140
|
+
if (!shellOnly) writeFileReplacing(targetDir, "scripts/materialize-zerops-runtime.mjs", createZeropsRuntimeMaterializationScript());
|
|
140
141
|
writeFileReplacing(targetDir, "scripts/ultramodern-performance-readiness.config.mjs", createPerformanceReadinessConfigScript());
|
|
141
|
-
writeGeneratedToolWrapperScripts(targetDir
|
|
142
|
+
writeGeneratedToolWrapperScripts(targetDir, {
|
|
143
|
+
shellOnly
|
|
144
|
+
});
|
|
142
145
|
writeWorkspaceOwnedMtsScript(targetDir, 'bootstrap-agent-skills', createSkillsToolWrapperScript());
|
|
143
146
|
migrateCopiedWorkspaceScriptToMts(targetDir, 'setup-agent-reference-repos');
|
|
144
147
|
}
|
|
@@ -28,6 +28,11 @@ const workspaceRootPackageScriptNames = {
|
|
|
28
28
|
typecheck: 'typecheck',
|
|
29
29
|
check: 'check'
|
|
30
30
|
};
|
|
31
|
+
const shellOnlyOmittedRootScriptPlanKeys = new Set([
|
|
32
|
+
'backendFederationGenerate',
|
|
33
|
+
'nodeProof',
|
|
34
|
+
'zeropsMaterialize'
|
|
35
|
+
]);
|
|
31
36
|
const workspaceAppPackageScriptNames = {
|
|
32
37
|
dev: 'dev',
|
|
33
38
|
build: 'build',
|
|
@@ -103,7 +108,8 @@ function createWorkspaceRootScriptPlan(remotes = [], options = {}) {
|
|
|
103
108
|
}
|
|
104
109
|
function createWorkspaceRootPackageScripts(remotes = [], options = {}) {
|
|
105
110
|
const plan = createWorkspaceRootScriptPlan(remotes, options);
|
|
106
|
-
|
|
111
|
+
const shellOnly = 0 === remotes.length;
|
|
112
|
+
return Object.fromEntries(Object.entries(workspaceRootPackageScriptNames).filter(([planKey])=>!(shellOnly && shellOnlyOmittedRootScriptPlanKeys.has(planKey))).map(([planKey, packageScriptName])=>[
|
|
107
113
|
packageScriptName,
|
|
108
114
|
plan[planKey]
|
|
109
115
|
]));
|
|
@@ -42,8 +42,8 @@ function writeGeneratedToolWrapperScript(targetDir, key) {
|
|
|
42
42
|
const command = GENERATED_TOOLING_COMMANDS[key];
|
|
43
43
|
writeWorkspaceOwnedMtsScript(targetDir, command.wrapperName, createToolWrapperScript(command.command));
|
|
44
44
|
}
|
|
45
|
-
function writeGeneratedToolWrapperScripts(targetDir) {
|
|
46
|
-
for (const command of generatedToolingCommands)writeGeneratedToolWrapperScript(targetDir, command.id);
|
|
45
|
+
function writeGeneratedToolWrapperScripts(targetDir, options = {}) {
|
|
46
|
+
for (const command of generatedToolingCommands)if (!(options.shellOnly && BACKEND_FEDERATION_WRAPPER_IDS.has(command.id))) writeGeneratedToolWrapperScript(targetDir, command.id);
|
|
47
47
|
}
|
|
48
48
|
function createSkillsToolWrapperScript() {
|
|
49
49
|
return `#!/usr/bin/env node
|
|
@@ -134,12 +134,15 @@ function createNodeBackendFederationProofScript() {
|
|
|
134
134
|
function createZeropsRuntimeMaterializationScript() {
|
|
135
135
|
return readFileTemplate("workspace-scripts/materialize-zerops-runtime.mjs");
|
|
136
136
|
}
|
|
137
|
-
function writeGeneratedWorkspaceScripts(targetDir, _scope, _enableTailwind,
|
|
137
|
+
function writeGeneratedWorkspaceScripts(targetDir, _scope, _enableTailwind, remotes = []) {
|
|
138
|
+
const shellOnly = 0 === remotes.length;
|
|
138
139
|
writeWorkspaceOwnedMtsScript(targetDir, 'check-ultramodern-i18n-boundaries', createWorkspaceI18nBoundaryValidationScript());
|
|
139
140
|
writeWorkspaceOwnedMtsScript(targetDir, 'check-ultramodern-api-boundaries', createWorkspaceApiBoundaryValidationScript());
|
|
140
|
-
writeFileReplacing(targetDir, "scripts/materialize-zerops-runtime.mjs", createZeropsRuntimeMaterializationScript());
|
|
141
|
+
if (!shellOnly) writeFileReplacing(targetDir, "scripts/materialize-zerops-runtime.mjs", createZeropsRuntimeMaterializationScript());
|
|
141
142
|
writeFileReplacing(targetDir, "scripts/ultramodern-performance-readiness.config.mjs", createPerformanceReadinessConfigScript());
|
|
142
|
-
writeGeneratedToolWrapperScripts(targetDir
|
|
143
|
+
writeGeneratedToolWrapperScripts(targetDir, {
|
|
144
|
+
shellOnly
|
|
145
|
+
});
|
|
143
146
|
writeWorkspaceOwnedMtsScript(targetDir, 'bootstrap-agent-skills', createSkillsToolWrapperScript());
|
|
144
147
|
migrateCopiedWorkspaceScriptToMts(targetDir, 'setup-agent-reference-repos');
|
|
145
148
|
}
|
|
@@ -36,7 +36,7 @@ export declare const workspaceRootPackageScriptNames: {
|
|
|
36
36
|
readonly check: 'check';
|
|
37
37
|
};
|
|
38
38
|
export type WorkspaceRootPackageScriptName = (typeof workspaceRootPackageScriptNames)[keyof typeof workspaceRootPackageScriptNames];
|
|
39
|
-
export type WorkspaceRootPackageScripts = Record<WorkspaceRootPackageScriptName, string
|
|
39
|
+
export type WorkspaceRootPackageScripts = Partial<Record<WorkspaceRootPackageScriptName, string>>;
|
|
40
40
|
export interface WorkspaceAppScriptPlan {
|
|
41
41
|
dev: string;
|
|
42
42
|
build: string;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { WorkspaceApp } from './types';
|
|
2
|
-
export declare function writeGeneratedToolWrapperScripts(targetDir: string
|
|
2
|
+
export declare function writeGeneratedToolWrapperScripts(targetDir: string, options?: {
|
|
3
|
+
shellOnly?: boolean;
|
|
4
|
+
}): void;
|
|
3
5
|
export declare function createWorkspaceValidationScript(scope: string, enableTailwind: boolean, remotes?: WorkspaceApp[]): string;
|
|
4
6
|
export declare function createWorkspaceI18nBoundaryValidationScript(): string;
|
|
5
7
|
export declare function createWorkspaceApiBoundaryValidationScript(): string;
|
|
6
8
|
export declare function createPerformanceReadinessConfigScript(): string;
|
|
7
9
|
export declare function createNodeBackendFederationProofScript(): string;
|
|
8
10
|
export declare function createZeropsRuntimeMaterializationScript(): string;
|
|
9
|
-
export declare function writeGeneratedWorkspaceScripts(targetDir: string, _scope: string, _enableTailwind: boolean,
|
|
11
|
+
export declare function writeGeneratedWorkspaceScripts(targetDir: string, _scope: string, _enableTailwind: boolean, remotes?: WorkspaceApp[]): void;
|
|
10
12
|
export declare function createAgentReferenceReposSetupScript(): string;
|
|
11
13
|
export interface MigratedWorkspaceScriptArtifact {
|
|
12
14
|
relativePath: string;
|
|
@@ -35,7 +35,7 @@ export declare function createWorkspaceValidationContract(scope: string, enableT
|
|
|
35
35
|
shellNamespace: string;
|
|
36
36
|
oldRemotePaths: string[];
|
|
37
37
|
scripts: import("./workspace-script-plan").WorkspaceRootScriptPlan;
|
|
38
|
-
packageScripts:
|
|
38
|
+
packageScripts: Partial<Record<string, string>>;
|
|
39
39
|
cloudflareSecurity: import("./types").JsonValue;
|
|
40
40
|
publicSurfaceManagedSourceAssetPaths: ("config/public/robots.txt" | "config/public/site.webmanifest" | "config/public/sitemap.xml")[];
|
|
41
41
|
shellRouteMetaPaths: string[];
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
24
|
-
"version": "3.5.0-ultramodern.
|
|
24
|
+
"version": "3.5.0-ultramodern.34",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|
|
26
26
|
"main": "./dist/esm-node/index.js",
|
|
27
27
|
"bin": {
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"@modern-js/codesmith": "2.6.9",
|
|
78
78
|
"oxfmt": "0.56.0",
|
|
79
79
|
"ultracite": "7.8.3",
|
|
80
|
-
"@modern-js/
|
|
81
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.
|
|
80
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.34",
|
|
81
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.5.0-ultramodern.34"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@rslib/core": "0.23.1",
|
|
@@ -100,6 +100,6 @@
|
|
|
100
100
|
"test": "rm -rf dist && rslib build -c rslibconfig.mts && rstest --passWithNoTests"
|
|
101
101
|
},
|
|
102
102
|
"ultramodern": {
|
|
103
|
-
"frameworkVersion": "3.5.0-ultramodern.
|
|
103
|
+
"frameworkVersion": "3.5.0-ultramodern.34"
|
|
104
104
|
}
|
|
105
105
|
}
|