started implementing navbar
This commit is contained in:
7
index.js
7
index.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user