@followthecode/cli 1.2.18 → 1.2.23

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.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@followthecode/cli",
3
- "version": "1.2.18",
3
+ "version": "1.2.23",
4
4
  "description": "CLI tool for Git repository analysis and data collection",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",
@@ -59,6 +59,21 @@ function updateCsprojVersion(version) {
59
59
  console.log(`✅ Versão ${version} sincronizada no ftc.cli.csproj`);
60
60
  }
61
61
 
62
+ // Atualiza a versão no Program.cs
63
+ function updateProgramVersion(version) {
64
+ const programPath = path.join(__dirname, '..', 'Program.cs');
65
+ let content = fs.readFileSync(programPath, 'utf8');
66
+
67
+ // Atualiza a versão no Console.WriteLine do comando version
68
+ content = content.replace(
69
+ /Console\.WriteLine\(".*?"\)/g,
70
+ `Console.WriteLine("${version}")`
71
+ );
72
+
73
+ fs.writeFileSync(programPath, content);
74
+ console.log(`✅ Versão ${version} sincronizada no Program.cs`);
75
+ }
76
+
62
77
  // Função principal
63
78
  function main() {
64
79
  try {
@@ -66,6 +81,7 @@ function main() {
66
81
  console.log(`📦 Versão do package.json: ${version}`);
67
82
 
68
83
  updateCsprojVersion(version);
84
+ updateProgramVersion(version);
69
85
 
70
86
  console.log('🎉 Sincronização concluída!');
71
87
  } catch (error) {