create-sonicjs 2.3.6 → 2.3.8

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/README.md CHANGED
@@ -269,7 +269,7 @@ npx create-sonicjs my-app
269
269
  ## Related
270
270
 
271
271
  - [@sonicjs-cms/core](../core) - Core framework
272
- - [SonicJS Documentation](https://docs.sonicjs.com)
272
+ - [SonicJS Documentation](https://sonicjs.com)
273
273
  - [Cloudflare Workers](https://workers.cloudflare.com)
274
274
 
275
275
  ## Contributing
@@ -282,9 +282,9 @@ MIT © SonicJS Team
282
282
 
283
283
  ## Support
284
284
 
285
- - **Issues**: [GitHub Issues](https://github.com/sonicjs/sonicjs/issues)
286
- - **Discord**: [Join our community](https://discord.gg/sonicjs)
287
- - **Docs**: [docs.sonicjs.com](https://docs.sonicjs.com)
285
+ - **Issues**: [GitHub Issues](https://github.com/lane711/sonicjs/issues)
286
+ - **Discord**: [Join our community](https://discord.gg/8bMy6bv3sZ)
287
+ - **Docs**: [sonicjs.com](https://sonicjs.com)
288
288
 
289
289
  ---
290
290
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sonicjs",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "Create a new SonicJS application with zero configuration",
5
5
  "type": "module",
6
6
  "bin": {
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 && resourcesCreated) {
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.6',
418
+ '@sonicjs-cms/core': '^2.3.8',
422
419
  ...packageJson.dependencies
423
420
  }
424
421
 
@@ -828,7 +825,7 @@ function printSuccessMessage(answers) {
828
825
  console.log(kleur.cyan(' http://localhost:8787/admin'))
829
826
 
830
827
  console.log()
831
- console.log(kleur.dim('Need help? Visit https://docs.sonicjs.com'))
828
+ console.log(kleur.dim('Need help? Visit https://sonicjs.com'))
832
829
  console.log()
833
830
  }
834
831
 
@@ -114,16 +114,16 @@ Your collections are automatically available via REST API:
114
114
 
115
115
  ## Documentation
116
116
 
117
- - [SonicJS Documentation](https://docs.sonicjs.com)
118
- - [Collection Configuration](https://docs.sonicjs.com/collections)
119
- - [Plugin Development](https://docs.sonicjs.com/plugins)
120
- - [API Reference](https://docs.sonicjs.com/api)
117
+ - [SonicJS Documentation](https://sonicjs.com)
118
+ - [Collection Configuration](https://sonicjs.com/collections)
119
+ - [Plugin Development](https://sonicjs.com/plugins)
120
+ - [API Reference](https://sonicjs.com/api)
121
121
 
122
122
  ## Support
123
123
 
124
- - [GitHub Issues](https://github.com/sonicjs/sonicjs/issues)
125
- - [Discord Community](https://discord.gg/sonicjs)
126
- - [Documentation](https://docs.sonicjs.com)
124
+ - [GitHub Issues](https://github.com/lane711/sonicjs/issues)
125
+ - [Discord Community](https://discord.gg/8bMy6bv3sZ)
126
+ - [Documentation](https://sonicjs.com)
127
127
 
128
128
  ## License
129
129