@pixelated-tech/components 3.5.7 → 3.5.9
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.
|
@@ -116,7 +116,8 @@ async function runPrepCommands(siteName, versionType, commitMessage, localPath)
|
|
|
116
116
|
results.push('Built project successfully');
|
|
117
117
|
// Commit changes
|
|
118
118
|
await execAsync(`git add . -v`, { timeout: 60000, cwd: localPath });
|
|
119
|
-
|
|
119
|
+
const escapedMessage = commitMessage.replace(/'/g, "'\\''");
|
|
120
|
+
await execAsync(`git commit -m "${escapedMessage}"`, { timeout: 60000, cwd: localPath });
|
|
120
121
|
results.push(`Committed changes: ${commitMessage}`);
|
|
121
122
|
// Get the new version
|
|
122
123
|
const { stdout: version } = await execAsync('node -p "require(\'./package.json\').version"', { cwd: localPath });
|