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

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.3",
3
+ "version": "1.0.0-beta.5",
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)
@@ -464,6 +464,12 @@ function getDockerComposeDefinitions(serviceName, service, projectName, projectC
464
464
  ${serviceName}:
465
465
  image: ghcr.io/${githubOrg}/${projectName}-${serviceName}:latest
466
466
  restart: unless-stopped
467
+ healthcheck:
468
+ test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/"]
469
+ interval: 30s
470
+ timeout: 10s
471
+ start_period: 40s
472
+ retries: 3
467
473
  labels:
468
474
  - "traefik.enable=true"
469
475
  - "traefik.http.routers.${serviceName}.rule=Host(\`${serviceName}.\${PRIMARY_DOMAIN}\`)"
@@ -7,7 +7,11 @@ const chalk = require('chalk');
7
7
  */
8
8
  function isLaunchFrameProject() {
9
9
  const markerPath = path.join(process.cwd(), '.launchframe');
10
- return fs.existsSync(markerPath);
10
+ try {
11
+ return fs.existsSync(markerPath) && fs.statSync(markerPath).isFile();
12
+ } catch (error) {
13
+ return false;
14
+ }
11
15
  }
12
16
 
13
17
  /**