nextjs-hackathon-stack 0.1.16 → 0.1.17

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/dist/index.js CHANGED
@@ -135,6 +135,13 @@ async function scaffold(projectName, skipInstall) {
135
135
  spinner2.stop(`Failed to add component: ${component}`);
136
136
  }
137
137
  }
138
+ spinner2.start("Generating Drizzle migrations");
139
+ try {
140
+ execSync("pnpm db:generate", { cwd: targetDir, stdio: "pipe" });
141
+ spinner2.stop("Drizzle migrations generated");
142
+ } catch {
143
+ spinner2.stop("Could not generate migrations \u2014 run manually: pnpm db:generate");
144
+ }
138
145
  }
139
146
  spinner2.start("Creating initial commit");
140
147
  try {
@@ -159,6 +166,8 @@ async function scaffold(projectName, skipInstall) {
159
166
  console.log(` ${pc2.dim("NEXT_PUBLIC_SUPABASE_URL")} \u2014 supabase.com > Project Settings > API`);
160
167
  console.log(` ${pc2.dim("NEXT_PUBLIC_SUPABASE_ANON_KEY")} \u2014 supabase.com > Project Settings > API`);
161
168
  console.log(` ${pc2.dim("DATABASE_URL")} \u2014 supabase.com > Project Settings > Database`);
169
+ console.log(` ${pc2.cyan("pnpm db:generate")} ${pc2.dim("\u2014 genera las migraciones")}`);
170
+ console.log(` ${pc2.cyan("pnpm db:migrate")} ${pc2.dim("\u2014 aplica las migraciones a la base de datos")}`);
162
171
  console.log(` ${pc2.cyan("pnpm dev")}
163
172
  `);
164
173
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-hackathon-stack",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Scaffold a full-stack Next.js hackathon starter",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,17 +35,17 @@ AI_GATEWAY_URL=https://gateway.ai.vercel.app/v1/your-team-id/your-gateway-id
35
35
  AI_API_KEY=
36
36
  ```
37
37
 
38
- ### 2. Run the dev server
38
+ ### 2. Apply database migrations
39
39
 
40
40
  ```bash
41
- pnpm dev
41
+ pnpm db:generate # genera las migraciones
42
+ pnpm db:migrate # aplica las migraciones a la base de datos
42
43
  ```
43
44
 
44
- ### 3. Apply database migrations
45
+ ### 3. Run the dev server
45
46
 
46
47
  ```bash
47
- pnpm db:generate
48
- pnpm db:migrate
48
+ pnpm dev
49
49
  ```
50
50
 
51
51
  ## Scripts