claude-code-templates 1.3.6 → 1.3.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-templates",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
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": {
@@ -160,10 +160,13 @@ async function runPostInstallationValidation(targetDir, templateConfig) {
160
160
  const validationPrompt = createValidationPrompt(templateConfig);
161
161
 
162
162
  // Run claude command with validation prompt as a task
163
- const claudeProcess = spawn('claude', [validationPrompt], {
163
+ // Escape quotes in the prompt and create proper shell command
164
+ const escapedPrompt = validationPrompt.replace(/"/g, '\\"');
165
+ const claudeCommand = `claude "${escapedPrompt}"`;
166
+
167
+ const claudeProcess = spawn('sh', ['-c', claudeCommand], {
164
168
  cwd: targetDir,
165
- stdio: 'inherit',
166
- shell: true
169
+ stdio: 'inherit'
167
170
  });
168
171
 
169
172
  claudeProcess.on('error', (error) => {