speedrun-cli 2.7.8 → 2.7.10

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/src/postSetup.js CHANGED
@@ -48,14 +48,14 @@ async function handlePostSetup(targetDir, appName, options) {
48
48
  // Step 1: Configure JWT secrets and database URL
49
49
  await configureEnvironment(targetDir, database);
50
50
 
51
- // Step 2: ORM-specific database setup (Schema/Migration Seed)
52
- await setupDatabase(targetDir, orm, packageManager);
53
-
54
- // Step 3: CRUD module generation
51
+ // Step 2: CRUD module generation (updates ORM schema before running migrations)
55
52
  if (generateFirstCrud !== false) {
56
53
  await promptCrudGeneration(targetDir, orm, firstModuleName);
57
54
  }
58
55
 
56
+ // Step 3: ORM-specific database setup (Generate Client → Migration → Seed)
57
+ await setupDatabase(targetDir, orm, packageManager);
58
+
59
59
  // Step 4: Display Post-Setup Summary Log with Next Steps
60
60
  printNextStepsSummary(orm);
61
61