kaddidlehopper 0.7.2 → 0.7.4

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 +14 -0
  2. package/package.json +1 -1
  3. package/src/cli.ts +21 -1
package/dist/cli.js CHANGED
@@ -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.2",
3
+ "version": "0.7.4",
4
4
  "description": "Create TanStack Start applications for Netlify",
5
5
  "bin": "./dist/index.js",
6
6
  "type": "module",
package/src/cli.ts CHANGED
@@ -193,7 +193,12 @@ export function cli() {
193
193
  'pnpm'
194
194
  console.log(chalk.gray(`⟳ Installing dependencies with ${pm}...`))
195
195
  try {
196
- execSync(`${pm} install`, { cwd: targetDir, stdio: 'inherit' })
196
+ let cmd = `${pm} install`
197
+ if (pm === 'npm') {
198
+ cmd += ' --no-audit --no-fund --prefer-offline'
199
+ console.log(chalk.gray(` ${cmd}`))
200
+ }
201
+ execSync(cmd, { cwd: targetDir, stdio: 'inherit' })
197
202
  console.log(chalk.green('✓ Dependencies installed'))
198
203
  } catch {
199
204
  console.error(
@@ -204,6 +209,21 @@ export function cli() {
204
209
  }
205
210
  }
206
211
 
212
+ // Copy .claude to .gemini and .codex if they don't exist
213
+ const claudeDir = join(targetDir, '.claude')
214
+ if (existsSync(claudeDir)) {
215
+ const geminiDir = join(targetDir, '.gemini')
216
+ if (!existsSync(geminiDir)) {
217
+ await cp(claudeDir, geminiDir, { recursive: true })
218
+ console.log(chalk.green('✓ Copied .claude to .gemini'))
219
+ }
220
+ const codexDir = join(targetDir, '.codex')
221
+ if (!existsSync(codexDir)) {
222
+ await cp(claudeDir, codexDir, { recursive: true })
223
+ console.log(chalk.green('✓ Copied .claude to .codex'))
224
+ }
225
+ }
226
+
207
227
  console.log(chalk.bold.green('\nDone! Your project is ready.'))
208
228
  console.log(chalk.white('\nNext steps:'))
209
229
  console.log(chalk.cyan(` cd ${basename(targetDir)}`))