@launchframe/cli 1.0.0-beta.17 → 1.0.0-beta.18
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/package.json
CHANGED
|
@@ -21,7 +21,6 @@ const VARIANT_CONFIG = {
|
|
|
21
21
|
// Complete files/folders to copy
|
|
22
22
|
files: [
|
|
23
23
|
'src/modules/domain/projects', // Entire projects module
|
|
24
|
-
'src/modules/domain/ai/services/project-config.service.ts', // Project config service
|
|
25
24
|
'src/guards/project-ownership.guard.ts', // Project ownership guard (header-based)
|
|
26
25
|
'src/guards/project-param.guard.ts', // Project param guard (route-based)
|
|
27
26
|
'src/modules/users/users.service.ts', // Users service with multi-tenant support
|
|
@@ -30,13 +29,8 @@ const VARIANT_CONFIG = {
|
|
|
30
29
|
],
|
|
31
30
|
|
|
32
31
|
// Code sections to insert into base template files
|
|
32
|
+
// Note: main.ts uses PRIMARY_DOMAIN env var for dynamic CORS - no sections needed
|
|
33
33
|
sections: {
|
|
34
|
-
'src/main.ts': [
|
|
35
|
-
'PROJECT_IMPORTS', // Add project-related imports
|
|
36
|
-
'PROJECT_CUSTOM_DOMAINS', // Add custom domains query
|
|
37
|
-
'PROJECT_CUSTOM_DOMAINS_CORS', // Add custom domains to CORS
|
|
38
|
-
'PROJECT_GUARD' // Add ProjectOwnershipGuard registration
|
|
39
|
-
],
|
|
40
34
|
'src/modules/app/app.module.ts': [
|
|
41
35
|
'PROJECTS_MODULE_IMPORT', // Add ProjectsModule import
|
|
42
36
|
'PROJECTS_MODULE' // Add ProjectsModule to imports array
|
|
@@ -62,7 +62,9 @@ async function processServiceVariant(
|
|
|
62
62
|
const variantConfig = serviceConfig.variants[variantName];
|
|
63
63
|
|
|
64
64
|
if (!variantConfig) {
|
|
65
|
-
|
|
65
|
+
// Silently skip - not every service needs every variant combination
|
|
66
|
+
// (e.g., b2b2c_multi-tenant may only apply to backend, not admin-portal)
|
|
67
|
+
logger.detail(`Skipping ${variantName} (not applicable to this service)`, 3);
|
|
66
68
|
continue;
|
|
67
69
|
}
|
|
68
70
|
|