@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 +1 -1
- package/src/commands/init.js +1 -8
- package/src/index.js +2 -9
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -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
|
-
|
|
71
|
-
|
|
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
|