started implementing navbar

This commit is contained in:
2025-08-18 00:36:52 +02:00
parent 38b48453f0
commit 48b3c8170b
7 changed files with 176 additions and 42 deletions

View File

@@ -115,8 +115,8 @@ async function main() {
.toLowerCase()
.replace(/[^a-z0-9]+/g, '-')
.replace(/^-+|-+$/g, '');
const rootDir = path.resolve(process.cwd(), kebabName);
const pmx = project.packageManager === 'bun' ? 'bunx' : 'npx';
const rootDir = path.join(process.cwd(), kebabName);
const pmx = project.packageManager === 'bun' ? 'bun x' : 'npx';
const pm = project.packageManager === 'bun' ? 'bun' : 'npm';
const studioDir = path.join(rootDir, 'apps', 'studio');
@@ -124,8 +124,7 @@ async function main() {
{
title: `${color.yellow('📁 Copying template contents to root')}`,
task: async () => {
const __dirname = path.dirname(new URL(import.meta.url).pathname);
const templateDir = path.resolve(__dirname, 'template');
const templateDir = path.join(process.cwd(), 'template');
// Ensure root directory exists with proper permissions
await fs.ensureDir(rootDir);