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/CHANGELOG.md +19 -22
- package/package.json +1 -1
- package/src/index.js +22 -13
- package/src/moduleGenerator.js +631 -342
- package/src/postSetup.js +4 -4
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:
|
|
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
|
|