@launchframe/cli 1.0.0-beta.5 → 1.0.0-beta.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchframe/cli",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.7",
4
4
  "description": "Production-ready B2B SaaS boilerplate with subscriptions, credits, and multi-tenancy",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -71,16 +71,25 @@ async function deployConfigure() {
71
71
  'admin-portal/public/env-config.js',
72
72
  'admin-portal/src/config/runtime.ts',
73
73
  'admin-portal/src/config/pageMetadata.ts',
74
- 'admin-portal/src/pages/FirstProject.tsx',
75
- 'admin-portal/src/components/projects/NewProject.tsx',
76
- 'admin-portal/src/components/settings/CustomDomain.tsx',
77
74
  'admin-portal/src/App.tsx',
78
75
  'admin-portal/src/components/common/PageTitle.tsx',
79
76
  'admin-portal/src/sentry.tsx',
80
- 'admin-portal/src/pages/AppSumo.tsx',
81
- 'customers-portal/src/App.tsx'
82
77
  ];
83
78
 
79
+ if (config.variants.tenancy === 'multi-tenant') {
80
+ filesToUpdate.push(
81
+ 'admin-portal/src/pages/FirstProject.tsx',
82
+ 'admin-portal/src/components/projects/NewProject.tsx',
83
+ );
84
+ }
85
+
86
+ if (config.variants.userModel === 'b2b2c') {
87
+ filesToUpdate.push(
88
+ 'admin-portal/src/components/settings/CustomDomain.tsx',
89
+ 'customers-portal/src/App.tsx'
90
+ )
91
+ }
92
+
84
93
  const projectRoot = process.cwd();
85
94
  let filesUpdated = 0;
86
95
 
package/src/index.js CHANGED
@@ -67,15 +67,8 @@ async function main() {
67
67
 
68
68
  // No command provided
69
69
  if (!command) {
70
- if (inProject) {
71
- console.error(chalk.red('\n❌ Error: No command specified'));
72
- help();
73
- process.exit(1);
74
- } else {
75
- // Outside project, default to init
76
- await init(flags);
77
- return;
78
- }
70
+ help();
71
+ process.exit(inProject ? 1 : 0);
79
72
  }
80
73
 
81
74
  // Route commands