create-solostack 1.3.6 → 1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +10 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-solostack",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "The complete SaaS boilerplate for indie hackers - Next.js 15 with auth, payments, database, and email",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -53,7 +53,7 @@ export async function main() {
53
53
  ╚════════════════════════════════════════════════════════════════╝
54
54
  `));
55
55
 
56
- console.log(chalk.gray(` Version ${orangeBright('1.3.6')} • Built by ${orangeBright('Danish Akhtar')} • ${orangeBright('github.com/danish296')}\n`));
56
+ console.log(chalk.gray(` Version ${orangeBright('1.3.7')} • Built by ${orangeBright('Danish Akhtar')} • ${orangeBright('github.com/danish296')}\n`));
57
57
 
58
58
  // Parse command line arguments
59
59
  program
@@ -210,10 +210,17 @@ export async function main() {
210
210
  await generateDatabase(projectPath, config);
211
211
  spinner.succeed('Configured database (Prisma + PostgreSQL)');
212
212
 
213
- // Generate authentication
213
+ // Generate UI components (before auth so auth-specific layouts can override)
214
+ if (config.includeUI) {
215
+ spinner = ora('Adding UI components').start();
216
+ await generateUI(projectPath);
217
+ spinner.succeed('Added UI components (shadcn/ui)');
218
+ }
219
+
220
+ // Generate authentication (after UI so auth-specific layouts take precedence)
214
221
  spinner = ora('Configuring authentication').start();
215
222
  await generateAuth(projectPath, config.auth);
216
- spinner.succeed('Configured authentication (NextAuth.js)');
223
+ spinner.succeed('Configured authentication');
217
224
 
218
225
  // Generate payments
219
226
  spinner = ora('Configuring payments').start();
@@ -225,13 +232,6 @@ export async function main() {
225
232
  await generateEmails(projectPath, config.email);
226
233
  spinner.succeed('Configured emails (Resend)');
227
234
 
228
- // Generate UI components
229
- if (config.includeUI) {
230
- spinner = ora('Adding UI components').start();
231
- await generateUI(projectPath);
232
- spinner.succeed('Added UI components (shadcn/ui)');
233
- }
234
-
235
235
  // Generate setup & diagnostics
236
236
  spinner = ora('Adding diagnostics page').start();
237
237
  await generateSetup(projectPath, config);