create-nextblock 0.2.39 → 0.2.40

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.
@@ -348,7 +348,8 @@ async function runSetupWizard(projectDir, projectName) {
348
348
  const supabaseBin = await getSupabaseBinary(projectPath);
349
349
  const command = supabaseBin === 'npx' ? 'npx' : supabaseBin;
350
350
 
351
- // 1. Link the project explicitly (matches monorepo behavior)
351
+ // 1. Link the project explicitly
352
+ dbPushSpinner.message('Linking to Supabase project...');
352
353
  const linkArgs = supabaseBin === 'npx' ? ['supabase', 'link'] : ['link'];
353
354
  linkArgs.push('--project-ref', projectId);
354
355
  linkArgs.push('--password', dbPassword);
@@ -359,12 +360,14 @@ async function runSetupWizard(projectDir, projectName) {
359
360
  });
360
361
 
361
362
  // 2. Push the schema using the linked state
363
+ dbPushSpinner.message('Pushing database schema...');
362
364
  const pushArgs = supabaseBin === 'npx' ? ['supabase', 'db', 'push'] : ['db', 'push'];
363
365
  pushArgs.push('--include-all');
364
366
 
365
367
  await execa(command, pushArgs, {
366
- stdio: 'inherit',
368
+ stdio: ['pipe', 'inherit', 'inherit'],
367
369
  cwd: projectPath,
370
+ input: 'y\n', // Auto-confirm the push prompt
368
371
  env: {
369
372
  ...process.env,
370
373
  SUPABASE_DB_PASSWORD: dbPassword,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextblock",
3
- "version": "0.2.39",
3
+ "version": "0.2.40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextblock-cms/template",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",