create-battle-plan 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +8 -0
- package/package.json +1 -1
- package/template/gitignore +4 -0
package/bin/cli.js
CHANGED
|
@@ -167,6 +167,14 @@ async function main() {
|
|
|
167
167
|
// Copy template
|
|
168
168
|
const templateDir = path.join(__dirname, '..', 'template');
|
|
169
169
|
copyDir(templateDir, targetDir);
|
|
170
|
+
|
|
171
|
+
// npm strips .gitignore from packages, so we ship it as 'gitignore' and rename
|
|
172
|
+
const gitignoreSrc = path.join(targetDir, 'gitignore');
|
|
173
|
+
const gitignoreDest = path.join(targetDir, '.gitignore');
|
|
174
|
+
if (fs.existsSync(gitignoreSrc) && !fs.existsSync(gitignoreDest)) {
|
|
175
|
+
fs.renameSync(gitignoreSrc, gitignoreDest);
|
|
176
|
+
}
|
|
177
|
+
|
|
170
178
|
console.log(`${DIM} + CLAUDE.md (system prompt)${RESET}`);
|
|
171
179
|
console.log(`${DIM} + tools/ (verification scripts)${RESET}`);
|
|
172
180
|
console.log(`${DIM} + .claude/commands/ (slash commands)${RESET}`);
|
package/package.json
CHANGED