From ee8d3fcd1263561b87700c815f632c008b5bd9b9 Mon Sep 17 00:00:00 2001 From: Hyko Date: Tue, 14 Apr 2026 20:20:33 -0400 Subject: [PATCH] fix: update import paths and jsconfig path aliases - Update `authCatchAll` and `adminCatchAll` imports to use `@zen/core/features/` prefix instead of `@zen/core/` - Replace generic `@*` path alias with specific aliases for `@styles/*` and `@components/*` in jsconfig.json --- bin/cli.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index 93cc70c..0307542 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -36,7 +36,7 @@ export default function Redirect() { redirect('/auth/login/'); } `, - authCatchAll: `export { default } from '@zen/core/auth/page'; + authCatchAll: `export { default } from '@zen/core/features/auth/page'; `, adminRedirect: `import { redirect } from 'next/navigation'; @@ -44,7 +44,7 @@ export default function Redirect() { redirect('/admin/dashboard'); } `, - adminCatchAll: `export { default } from '@zen/core/admin/page'; + adminCatchAll: `export { default } from '@zen/core/features/admin/page'; `, zenApiRoute: `export { GET, POST, PUT, DELETE, PATCH } from '@zen/core/zen/api'; `, @@ -83,7 +83,7 @@ async function initProject() { done('Cleaned default /app directory'); fs.writeJsonSync('./jsconfig.json', { - compilerOptions: { paths: { '@*': ['./*'] } }, + compilerOptions: { paths: { '@styles/*': ['./styles/*'], '@components/*': ['./components/*'] } }, }, { spaces: 2 }); done('Configured path aliases');