Skip to content

Commit 1faace6

Browse files
committed
feat: update Astro and SvelteKit generator commands for improved scaffolding
1 parent deb13fd commit 1faace6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/lib/scaffold.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,19 @@ export async function scaffoldMonorepo(projectNameArg, options) {
346346
} else if (svcType === 'astro') {
347347
try {
348348
console.log(chalk.cyan('⚙️ Running Astro generator (create-astro)...'));
349-
await execa('npx', ['--yes', 'create-astro@latest', '--', '--template', 'minimal'], { cwd: dest, stdio: 'inherit' });
349+
await execa('npx', ['--yes', 'create-astro@latest', '.', '--template', 'minimal', '--no-install', '--no-git'], { cwd: dest, stdio: 'inherit' });
350350
usedGenerator = true;
351351
} catch (e) {
352352
console.error(chalk.red(`❌ create-astro failed: ${e.message}. Aborting scaffold for this service.`));
353353
continue;
354354
}
355355
} else if (svcType === 'sveltekit') {
356356
try {
357-
console.log(chalk.cyan('⚙️ Running SvelteKit generator (create-svelte)...'));
358-
await execa('npx', ['--yes', 'create-svelte@latest', '.', '--template', 'skeleton'], { cwd: dest, stdio: 'inherit' });
357+
console.log(chalk.cyan('⚙️ Running SvelteKit generator (sv create)...'));
358+
await execa('npx', ['sv', 'create', '.', '--template', 'minimal', '--types', 'ts', '--no-install', '--no-add-ons'], { cwd: dest, stdio: 'inherit' });
359359
usedGenerator = true;
360360
} catch (e) {
361-
console.error(chalk.red(`❌ create-svelte failed: ${e.message}. Aborting scaffold for this service.`));
361+
console.error(chalk.red(`❌ sv create failed: ${e.message}. Aborting scaffold for this service.`));
362362
continue;
363363
}
364364
}

0 commit comments

Comments
 (0)