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:
2026-04-25 14:44:45 -04:00
parent e42987a783
commit 02da93135c
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -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');
}
}