create-nextblock 0.2.22 → 0.2.23

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.
@@ -161,7 +161,6 @@ async function handleCommand(projectDirectory, options) {
161
161
  }
162
162
 
163
163
  await initializeGit(projectDir);
164
- console.log(chalk.green('Initialized a new Git repository.'));
165
164
 
166
165
  console.log(chalk.green(`\nSuccess! Your NextBlock CMS project "${projectName}" is ready.\n`));
167
166
  console.log(chalk.cyan('Next step:'));
@@ -188,7 +187,7 @@ async function runSetupWizard(projectDir, projectName) {
188
187
  clack.note('I will now open your browser to log into Supabase.');
189
188
  await runSupabaseCli(['login'], { cwd: projectPath });
190
189
 
191
- const assetsState = await ensureSupabaseAssets(projectPath, { required: true, resetProjectRef: true });
190
+ await ensureSupabaseAssets(projectPath, { required: true, resetProjectRef: true });
192
191
  clack.note('Now, please select your NextBlock project when prompted.');
193
192
  await runSupabaseCli(['link'], { cwd: projectPath });
194
193
  if (process.stdin.isTTY) {
@@ -203,10 +202,6 @@ async function runSetupWizard(projectDir, projectName) {
203
202
 
204
203
  let projectId = await readSupabaseProjectRef(projectPath);
205
204
 
206
- if (!projectId && assetsState.projectId) {
207
- projectId = assetsState.projectId;
208
- }
209
-
210
205
  if (!projectId) {
211
206
  clack.note('I could not detect your Supabase project ref automatically.');
212
207
  const manual = await clack.text({
@@ -309,7 +304,7 @@ async function runSetupWizard(projectDir, projectName) {
309
304
 
310
305
  clack.note('Setting up your database...');
311
306
  const dbPushSpinner = clack.spinner();
312
- dbPushSpinner.start('Pushing database schema... (This may take a minute)');
307
+ dbPushSpinner.start('Pushing database schema... (6-9 minutes, please keep this terminal open)');
313
308
  try {
314
309
  process.env.POSTGRES_URL = postgresUrl;
315
310
  const migrationsDir = resolve(projectPath, 'supabase', 'migrations');
@@ -491,7 +486,7 @@ async function runSetupWizard(projectDir, projectName) {
491
486
  clack.note('SMTP placeholders added to .env. Configure them later when ready.');
492
487
  }
493
488
 
494
- clack.outro(`🎉 Your NextBlock project ${projectName ? `"${projectName}" ` : ''}is ready!\n\nNext step:\n npm run dev`);
489
+ clack.outro(`🎉 Your NextBlock project ${projectName ? `"${projectName}" ` : ''}is ready!`);
495
490
  }
496
491
 
497
492
  function handleWizardCancel(message) {
@@ -842,15 +837,6 @@ async function resolvePackageSupabaseDir(projectDir) {
842
837
  }
843
838
 
844
839
  async function readSupabaseProjectRef(projectDir) {
845
- const configTomlPath = resolve(projectDir, 'supabase', 'config.toml');
846
- if (await fs.pathExists(configTomlPath)) {
847
- const config = await fs.readFile(configTomlPath, 'utf8');
848
- const configMatch = config.match(/project_id\s*=\s*"([^"]+)"/);
849
- if (configMatch?.[1] && !configMatch[1].includes('env(')) {
850
- return configMatch[1];
851
- }
852
- }
853
-
854
840
  const projectRefPath = resolve(projectDir, 'supabase', '.temp', 'project-ref');
855
841
  if (await fs.pathExists(projectRefPath)) {
856
842
  const value = (await fs.readFile(projectRefPath, 'utf8')).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextblock",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {