claude-code-templates 1.24.4 → 1.24.6

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +11 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-templates",
3
- "version": "1.24.4",
3
+ "version": "1.24.6",
4
4
  "description": "CLI tool to setup Claude Code configurations with framework-specific commands, automation hooks and MCP Servers for your projects",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -2605,19 +2605,22 @@ async function executeCloudflareSandbox(options, targetDir) {
2605
2605
  try {
2606
2606
  if (await fs.pathExists(componentsDir)) {
2607
2607
  console.log(chalk.gray('📦 Using local Cloudflare component files...'));
2608
+ console.log(chalk.dim(` Source: ${componentsDir}`));
2609
+ console.log(chalk.dim(` Target: ${sandboxDir}`));
2608
2610
 
2609
2611
  // Copy all files from cloudflare directory
2610
2612
  await fs.copy(componentsDir, sandboxDir, {
2611
- overwrite: true,
2612
- filter: (src) => {
2613
- // Exclude node_modules and build artifacts
2614
- return !src.includes('node_modules') &&
2615
- !src.includes('.wrangler') &&
2616
- !src.includes('dist');
2617
- }
2613
+ overwrite: true
2618
2614
  });
2615
+
2616
+ // Verify files were copied
2617
+ const copiedFiles = await fs.readdir(sandboxDir);
2618
+ console.log(chalk.dim(` Copied ${copiedFiles.length} items`));
2619
+ if (copiedFiles.length === 0) {
2620
+ throw new Error('No files were copied from Cloudflare component directory');
2621
+ }
2619
2622
  } else {
2620
- throw new Error('Cloudflare component files not found in package');
2623
+ throw new Error(`Cloudflare component files not found at: ${componentsDir}`);
2621
2624
  }
2622
2625
  } catch (error) {
2623
2626
  spinner.fail(`Failed to install Cloudflare component: ${error.message}`);