launchbase 1.1.5 → 1.1.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/bin/launchbase.js CHANGED
@@ -7,7 +7,7 @@ const crypto = require('crypto');
7
7
  const fs = require('fs-extra');
8
8
  const { execSync, spawn } = require('child_process');
9
9
 
10
- const VERSION = '1.1.4';
10
+ const VERSION = '1.1.7';
11
11
  const program = new Command();
12
12
 
13
13
  function findAvailablePort(startPort = 5432, maxAttempts = 100) {
@@ -357,15 +357,13 @@ program
357
357
  .command('new')
358
358
  .description('šŸš€ Create new project and start development (one command experience)')
359
359
  .argument('<appName>', 'Project name')
360
- .option('--template', 'Include frontend React template')
360
+ .option('--no-template', 'Skip frontend React template')
361
361
  .option('--sdk', 'Include TypeScript SDK')
362
362
  .option('--no-docker', 'Skip Docker/database setup')
363
363
  .option('--no-cicd', 'Skip CI/CD workflow')
364
364
  .action(async (appName, options, command) => {
365
365
  console.log('\nšŸš€ LaunchBase CLI v' + VERSION + '\n');
366
366
  console.log('šŸ“ Creating project:', appName);
367
- console.log('šŸ” DEBUG options:', JSON.stringify(options));
368
- console.log('šŸ” DEBUG template flag:', options.template);
369
367
 
370
368
  // Find available ports first
371
369
  console.log('šŸ” Finding available ports...');
@@ -384,7 +382,7 @@ program
384
382
 
385
383
  // Copy template files with filtering
386
384
  console.log('šŸ“‚ Copying template files...');
387
- console.log(` Include frontend: ${options.template ? 'yes' : 'no'}`);
385
+ console.log(` Include frontend: ${options.template === false ? 'no' : 'yes'}`);
388
386
 
389
387
  await fs.copy(templateDir, targetDir, {
390
388
  filter: (src) => {
@@ -396,8 +394,8 @@ program
396
394
  return false;
397
395
  }
398
396
 
399
- // Skip frontend if not requested (check with trailing slash to avoid partial matches)
400
- if ((relativePath.startsWith('frontend/') || relativePath === 'frontend') && !options.template) {
397
+ // Skip frontend if --no-template flag is used
398
+ if ((relativePath.startsWith('frontend/') || relativePath === 'frontend') && options.template === false) {
401
399
  return false;
402
400
  }
403
401
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "launchbase",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Generate production-ready NestJS backends with authentication, multi-tenancy, billing, and deployment in minutes",
5
5
  "author": "LaunchBase",
6
6
  "keywords": [