chore: rename package from @hykocx/zen to @zen/core
Update all references across source files, documentation, and configuration to reflect the new package scope and name. This includes updating `.npmrc` registry config, install instructions, module examples, and all import path comments throughout the codebase.
This commit is contained in:
+6
-6
@@ -15,7 +15,7 @@ const templates = {
|
||||
instrumentation: `// instrumentation.js
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||
const { initializeZen } = await import('@hykocx/zen');
|
||||
const { initializeZen } = await import('@zen/core');
|
||||
await initializeZen();
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@ export default function Redirect() {
|
||||
redirect('/auth/login/');
|
||||
}
|
||||
`,
|
||||
authCatchAll: `export { default } from '@hykocx/zen/auth/page';
|
||||
authCatchAll: `export { default } from '@zen/core/auth/page';
|
||||
`,
|
||||
adminRedirect: `import { redirect } from 'next/navigation';
|
||||
|
||||
@@ -34,11 +34,11 @@ export default function Redirect() {
|
||||
redirect('/admin/dashboard');
|
||||
}
|
||||
`,
|
||||
adminCatchAll: `export { default } from '@hykocx/zen/admin/page';
|
||||
adminCatchAll: `export { default } from '@zen/core/admin/page';
|
||||
`,
|
||||
zenApiRoute: `export { GET, POST, PUT, DELETE, PATCH } from '@hykocx/zen/zen/api';
|
||||
zenApiRoute: `export { GET, POST, PUT, DELETE, PATCH } from '@zen/core/zen/api';
|
||||
`,
|
||||
zenPageRoute: `export { default, generateMetadata } from '@hykocx/zen/modules/page';
|
||||
zenPageRoute: `export { default, generateMetadata } from '@zen/core/modules/page';
|
||||
`,
|
||||
nextConfig: `// next.config.js
|
||||
module.exports = {
|
||||
@@ -144,7 +144,7 @@ async function setupZen(options = {}) {
|
||||
console.log('\n🎉 Setup complete!');
|
||||
console.log('\nNext steps:');
|
||||
console.log(' 1. Add Zen styles to your globals.css:');
|
||||
console.log(' @import \'@hykocx/zen/styles/zen.css\';');
|
||||
console.log(' @import \'@zen/core/styles/zen.css\';');
|
||||
console.log(' 2. Configure environment variables (see .env.example)');
|
||||
console.log(' 3. Initialize the database:');
|
||||
console.log(' npx zen-db init');
|
||||
|
||||
Reference in New Issue
Block a user