@launchframe/cli 1.0.0-beta.4 → 1.0.0-beta.6

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.4",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Production-ready B2B SaaS boilerplate with subscriptions, credits, and multi-tenancy",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -5,14 +5,7 @@ const { runInitPrompts, runVariantPrompts } = require('../prompts');
5
5
  const { generateProject } = require('../generator');
6
6
  const { checkGitHubAccess, showAccessDeniedMessage } = require('../utils/github-access');
7
7
  const { ensureCacheReady } = require('../utils/module-cache');
8
-
9
- /**
10
- * Check if current directory is a LaunchFrame project
11
- */
12
- function isLaunchFrameProject() {
13
- const markerPath = path.join(process.cwd(), '.launchframe');
14
- return fs.existsSync(markerPath);
15
- }
8
+ const { isLaunchFrameProject } = require('../utils/project-helpers');
16
9
 
17
10
  /**
18
11
  * Check if running in development mode (local) vs production (npm install)
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