kaddidlehopper 0.7.1 → 0.7.3

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.
Files changed (3) hide show
  1. package/dist/cli.js +15 -1
  2. package/package.json +1 -1
  3. package/src/cli.ts +16 -1
package/dist/cli.js CHANGED
@@ -91,7 +91,7 @@ export function cli() {
91
91
  try {
92
92
  console.log(chalk.gray('⟳ Fetching template...'));
93
93
  const sparsePaths = [`starters/${starterId}`, ...(frameworkId ? [`frameworks/${frameworkId}`] : [])];
94
- execSync(`git clone --depth=1 --filter=blob:none --sparse ${GITHUB_REPO} ${tmpDir}`, { stdio: 'pipe' });
94
+ execSync(`git clone --depth=1 --sparse ${GITHUB_REPO} ${tmpDir}`, { stdio: 'pipe' });
95
95
  execSync(`git -C ${tmpDir} sparse-checkout set ${sparsePaths.join(' ')}`, { stdio: 'pipe' });
96
96
  const starterPath = join(tmpDir, 'starters', starterId);
97
97
  if (!existsSync(starterPath)) {
@@ -150,6 +150,20 @@ export function cli() {
150
150
  console.error(chalk.red(`Failed to install dependencies. Run \`${pm} install\` manually.`));
151
151
  }
152
152
  }
153
+ // Copy .claude to .gemini and .codex if they don't exist
154
+ const claudeDir = join(targetDir, '.claude');
155
+ if (existsSync(claudeDir)) {
156
+ const geminiDir = join(targetDir, '.gemini');
157
+ if (!existsSync(geminiDir)) {
158
+ await cp(claudeDir, geminiDir, { recursive: true });
159
+ console.log(chalk.green('✓ Copied .claude to .gemini'));
160
+ }
161
+ const codexDir = join(targetDir, '.codex');
162
+ if (!existsSync(codexDir)) {
163
+ await cp(claudeDir, codexDir, { recursive: true });
164
+ console.log(chalk.green('✓ Copied .claude to .codex'));
165
+ }
166
+ }
153
167
  console.log(chalk.bold.green('\nDone! Your project is ready.'));
154
168
  console.log(chalk.white('\nNext steps:'));
155
169
  console.log(chalk.cyan(` cd ${basename(targetDir)}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaddidlehopper",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Create TanStack Start applications for Netlify",
5
5
  "bin": "./dist/index.js",
6
6
  "type": "module",
package/src/cli.ts CHANGED
@@ -127,7 +127,7 @@ export function cli() {
127
127
  console.log(chalk.gray('⟳ Fetching template...'))
128
128
  const sparsePaths = [`starters/${starterId}`, ...(frameworkId ? [`frameworks/${frameworkId}`] : [])]
129
129
  execSync(
130
- `git clone --depth=1 --filter=blob:none --sparse ${GITHUB_REPO} ${tmpDir}`,
130
+ `git clone --depth=1 --sparse ${GITHUB_REPO} ${tmpDir}`,
131
131
  { stdio: 'pipe' },
132
132
  )
133
133
  execSync(
@@ -204,6 +204,21 @@ export function cli() {
204
204
  }
205
205
  }
206
206
 
207
+ // Copy .claude to .gemini and .codex if they don't exist
208
+ const claudeDir = join(targetDir, '.claude')
209
+ if (existsSync(claudeDir)) {
210
+ const geminiDir = join(targetDir, '.gemini')
211
+ if (!existsSync(geminiDir)) {
212
+ await cp(claudeDir, geminiDir, { recursive: true })
213
+ console.log(chalk.green('✓ Copied .claude to .gemini'))
214
+ }
215
+ const codexDir = join(targetDir, '.codex')
216
+ if (!existsSync(codexDir)) {
217
+ await cp(claudeDir, codexDir, { recursive: true })
218
+ console.log(chalk.green('✓ Copied .claude to .codex'))
219
+ }
220
+ }
221
+
207
222
  console.log(chalk.bold.green('\nDone! Your project is ready.'))
208
223
  console.log(chalk.white('\nNext steps:'))
209
224
  console.log(chalk.cyan(` cd ${basename(targetDir)}`))