create-sonicjs 2.0.8 → 2.0.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +3 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sonicjs",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Create a new SonicJS application with zero configuration",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -100,20 +100,8 @@ async function getProjectDetails(initialName) {
100
100
  })
101
101
  }
102
102
 
103
- // Template selection
104
- if (!flags.template) {
105
- questions.push({
106
- type: 'select',
107
- name: 'template',
108
- message: 'Choose a template:',
109
- choices: Object.entries(TEMPLATES).map(([key, { name, description }]) => ({
110
- title: name,
111
- description: description,
112
- value: key
113
- })),
114
- initial: 0
115
- })
116
- }
103
+ // Template selection - always use 'starter' since it's the only template
104
+ // No need to ask user, just default to starter
117
105
 
118
106
  // Database name
119
107
  if (!flags.databaseName) {
@@ -209,7 +197,7 @@ async function getProjectDetails(initialName) {
209
197
 
210
198
  return {
211
199
  projectName: initialName || answers.projectName,
212
- template: flags.template || answers.template,
200
+ template: flags.template || 'starter', // Always default to starter template
213
201
  databaseName: flags.databaseName || answers.databaseName || `${initialName || answers.projectName}-db`,
214
202
  bucketName: flags.bucketName || answers.bucketName || `${initialName || answers.projectName}-media`,
215
203
  seedAdmin: answers.seedAdmin !== undefined ? answers.seedAdmin : true,