From 324aa32f6ca47059e65082ab0b1f9682dce487ae Mon Sep 17 00:00:00 2001 From: nxtkofi Date: Sun, 17 May 2026 20:06:33 +0200 Subject: [PATCH] fix(init): exclude template README, keep DEVELOPMENT.md, create skeleton docs/readme --- bin/init-template.mjs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/bin/init-template.mjs b/bin/init-template.mjs index 4ab58cd..8137bea 100644 --- a/bin/init-template.mjs +++ b/bin/init-template.mjs @@ -10,14 +10,13 @@ const EXCLUDE = [ 'node_modules', '.next', '.sisyphus', - '.sisyphus', '.memsearch', '.playwright-mcp', 'pnpm-lock.yaml', 'bin', 'features.md', '.env.local', - 'DEVELOPMENT.md', + 'README.md', 'tmuxi.template.yml', ]; @@ -82,13 +81,12 @@ function main() { // Copy template files into /src/ copyRecursive(templateDir, srcDir, replacements); - // Move README.md to docs/readme.md - const readmeSrc = path.join(srcDir, 'README.md'); - const readmeDest = path.join(docsDir, 'readme.md'); - if (fs.existsSync(readmeSrc)) { - fs.mkdirSync(docsDir, { recursive: true }); - fs.renameSync(readmeSrc, readmeDest); - } + // Create empty docs/readme.md for the new project + fs.mkdirSync(docsDir, { recursive: true }); + fs.writeFileSync( + path.join(docsDir, 'readme.md'), + `# ${projectName}\n\nProject documentation goes here.\n` + ); console.log('Initializing git...'); execSync('git init', { cwd: targetDir, stdio: 'inherit' });