create-sonicjs 2.3.6 → 2.3.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/package.json +1 -1
- package/src/cli.js +3 -6
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -340,8 +340,8 @@ async function createProject(answers, flags) {
|
|
|
340
340
|
spinner.succeed('Initialized git repository')
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
// 6. Run migrations
|
|
344
|
-
if (runMigrations && !skipInstall
|
|
343
|
+
// 6. Run migrations (always run locally, even if remote resources weren't created)
|
|
344
|
+
if (runMigrations && !skipInstall) {
|
|
345
345
|
spinner.start('Running database migrations...')
|
|
346
346
|
try {
|
|
347
347
|
await runDatabaseMigrations(targetDir)
|
|
@@ -356,9 +356,6 @@ async function createProject(answers, flags) {
|
|
|
356
356
|
} else if (runMigrations && skipInstall) {
|
|
357
357
|
spinner.info('Skipping migrations - run after npm install')
|
|
358
358
|
answers.migrationsRan = false
|
|
359
|
-
} else if (runMigrations && !resourcesCreated) {
|
|
360
|
-
spinner.info('Skipping migrations - database not created yet')
|
|
361
|
-
answers.migrationsRan = false
|
|
362
359
|
}
|
|
363
360
|
|
|
364
361
|
// 7. Seed admin user
|
|
@@ -418,7 +415,7 @@ async function copyTemplate(templateName, targetDir, options) {
|
|
|
418
415
|
|
|
419
416
|
// Add @sonicjs-cms/core dependency
|
|
420
417
|
packageJson.dependencies = {
|
|
421
|
-
'@sonicjs-cms/core': '^2.3.
|
|
418
|
+
'@sonicjs-cms/core': '^2.3.7',
|
|
422
419
|
...packageJson.dependencies
|
|
423
420
|
}
|
|
424
421
|
|