create-nextblock 0.2.39 → 0.2.41
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/bin/create-nextblock.js
CHANGED
|
@@ -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
|
|
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
|
/// <reference types="next" />
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
|
-
import "./.next/
|
|
3
|
+
import "./.next/types/routes.d.ts";
|
|
4
4
|
|
|
5
5
|
// NOTE: This file should not be edited
|
|
6
6
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|