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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user