claude-code-templates 1.24.3 → 1.24.5
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/package.json +1 -1
- package/src/index.js +15 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.5",
|
|
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,30 @@ 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
2613
|
overwrite: true,
|
|
2612
2614
|
filter: (src) => {
|
|
2613
2615
|
// Exclude node_modules and build artifacts
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2616
|
+
const shouldCopy = !src.includes('node_modules') &&
|
|
2617
|
+
!src.includes('.wrangler') &&
|
|
2618
|
+
!src.includes('dist') &&
|
|
2619
|
+
!src.includes('.gitignore');
|
|
2620
|
+
return shouldCopy;
|
|
2617
2621
|
}
|
|
2618
2622
|
});
|
|
2623
|
+
|
|
2624
|
+
// Verify files were copied
|
|
2625
|
+
const copiedFiles = await fs.readdir(sandboxDir);
|
|
2626
|
+
console.log(chalk.dim(` Copied ${copiedFiles.length} items`));
|
|
2627
|
+
if (copiedFiles.length === 0) {
|
|
2628
|
+
throw new Error('No files were copied from Cloudflare component directory');
|
|
2629
|
+
}
|
|
2619
2630
|
} else {
|
|
2620
|
-
throw new Error(
|
|
2631
|
+
throw new Error(`Cloudflare component files not found at: ${componentsDir}`);
|
|
2621
2632
|
}
|
|
2622
2633
|
} catch (error) {
|
|
2623
2634
|
spinner.fail(`Failed to install Cloudflare component: ${error.message}`);
|