refactor(cli): rename generated modules file and update gitignore pattern
- rename `modules.generated.js` to `modules.client.js` and add `'use client'` directive - update gitignore to ignore entire `app/.zen/` directory instead of single file - update layout import to reference new `modules.client.js` filename
This commit is contained in:
+2
-2
@@ -59,8 +59,8 @@ async function initProject() {
|
||||
const gitignorePath = './.gitignore';
|
||||
if (fs.existsSync(gitignorePath)) {
|
||||
const gitignore = fs.readFileSync(gitignorePath, 'utf-8');
|
||||
if (!gitignore.includes('app/.zen/modules.generated.js')) {
|
||||
fs.appendFileSync(gitignorePath, '\n# Generated by zen-modules sync\napp/.zen/modules.generated.js\n');
|
||||
if (!gitignore.includes('app/.zen/')) {
|
||||
fs.appendFileSync(gitignorePath, '\n# Generated by zen-modules sync\napp/.zen/\n');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
// AUTO-GÉNÉRÉ par `npx zen-modules sync` — ne pas modifier à la main.
|
||||
'use client';
|
||||
|
||||
export {};
|
||||
@@ -1,5 +1,5 @@
|
||||
import "@styles/globals.css";
|
||||
import './.zen/modules.generated.js';
|
||||
import './.zen/modules.client.js';
|
||||
import { ZenProvider } from '@zen/core/features/provider';
|
||||
import { THEME_INIT_SCRIPT } from '@zen/core/themes';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user