create-velox-app 0.6.87 → 0.6.89

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # create-velox-app
2
2
 
3
+ ## 0.6.89
4
+
5
+ ### Patch Changes
6
+
7
+ - expand preset system with server config, auth presets, and security validation
8
+
9
+ ## 0.6.88
10
+
11
+ ### Patch Changes
12
+
13
+ - add ecosystem presets for environment-aware configuration
14
+
3
15
  ## 0.6.87
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -30,3 +30,8 @@ export declare function detectPackageManager(): 'npm' | 'pnpm' | 'yarn';
30
30
  * @internal Exported for testing
31
31
  */
32
32
  export declare function getInstallCommand(packageManager: string): string;
33
+ /**
34
+ * Get the prisma generate command for the package manager
35
+ * @internal Exported for testing
36
+ */
37
+ export declare function getPrismaGenerateCommand(packageManager: string): string;
package/dist/index.js CHANGED
@@ -348,6 +348,20 @@ export function getInstallCommand(packageManager) {
348
348
  return 'npm install';
349
349
  }
350
350
  }
351
+ /**
352
+ * Get the prisma generate command for the package manager
353
+ * @internal Exported for testing
354
+ */
355
+ export function getPrismaGenerateCommand(packageManager) {
356
+ switch (packageManager) {
357
+ case 'pnpm':
358
+ return 'pnpm exec prisma generate';
359
+ case 'yarn':
360
+ return 'yarn exec prisma generate';
361
+ default:
362
+ return 'npx prisma generate';
363
+ }
364
+ }
351
365
  // ============================================================================
352
366
  // Prisma Client Generation
353
367
  // ============================================================================
@@ -368,7 +382,9 @@ async function generatePrismaClient(config) {
368
382
  const prismaDir = config.template === 'rsc' || config.template === 'rsc-auth'
369
383
  ? config.directory
370
384
  : path.join(config.directory, 'apps', 'api');
371
- await execAsync('npx prisma generate', {
385
+ // Use the detected package manager for prisma generate
386
+ const prismaCmd = getPrismaGenerateCommand(config.packageManager);
387
+ await execAsync(prismaCmd, {
372
388
  cwd: prismaDir,
373
389
  timeout: EXEC_TIMEOUT_MS,
374
390
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-velox-app",
3
- "version": "0.6.87",
3
+ "version": "0.6.89",
4
4
  "description": "Project scaffolder for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",