@followthecode/cli 1.2.8 → 1.2.11
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/appsettings.json +35 -0
- package/bin/win-x64/git2-c058aa8.dll +0 -0
- package/package.json +5 -4
- package/scripts/install-wrapper.js +19 -0
package/appsettings.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Serilog": {
|
|
3
|
+
"Using": [
|
|
4
|
+
"Serilog.Sinks.Console",
|
|
5
|
+
"Serilog.Sinks.OpenTelemetry"
|
|
6
|
+
],
|
|
7
|
+
"MinimumLevel": {
|
|
8
|
+
"Default": "Information",
|
|
9
|
+
"Override": {
|
|
10
|
+
"Microsoft": "Warning",
|
|
11
|
+
"System": "Warning"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"Enrich": [
|
|
15
|
+
"FromLogContext",
|
|
16
|
+
"WithThreadId",
|
|
17
|
+
"WithMachineName",
|
|
18
|
+
"WithEnvironmentUserName",
|
|
19
|
+
"WithExceptionDetails",
|
|
20
|
+
"WithOpenTelemetryTraceId",
|
|
21
|
+
"WithOpenTelemetrySpanId"
|
|
22
|
+
],
|
|
23
|
+
"Properties": {
|
|
24
|
+
"ApplicationName": "FTC-CLI"
|
|
25
|
+
},
|
|
26
|
+
"WriteTo": [
|
|
27
|
+
{
|
|
28
|
+
"Name": "Console",
|
|
29
|
+
"Args": {
|
|
30
|
+
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] [{ThreadId}] [{TraceId}/{SpanId}] {Message:lj}{NewLine}{Exception}"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@followthecode/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "CLI tool for Git repository analysis and data collection",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"test:install:wsl": "wsl bash scripts/test-installation.sh",
|
|
29
29
|
"clean": "dotnet clean",
|
|
30
30
|
"publish": "node scripts/publish.js",
|
|
31
|
-
"publish:patch": "
|
|
32
|
-
"publish:minor": "
|
|
33
|
-
"publish:major": "
|
|
31
|
+
"publish:patch": "node scripts/publish.js --patch",
|
|
32
|
+
"publish:minor": "node scripts/publish.js --minor",
|
|
33
|
+
"publish:major": "node scripts/publish.js --major"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"git",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"bin/linux-x64/ftc.cli",
|
|
76
76
|
"bin/linux-x64/appsettings.json",
|
|
77
77
|
"bin/linux-x64/libgit2-c058aa8.so",
|
|
78
|
+
"appsettings.json",
|
|
78
79
|
"scripts/copy-config.js",
|
|
79
80
|
"scripts/set-permissions.js",
|
|
80
81
|
"scripts/install-wrapper.js",
|
|
@@ -71,4 +71,23 @@ if (ftcShellExists) {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
// Copia arquivo de configuração para o diretório de instalação global
|
|
75
|
+
function copyConfigFile() {
|
|
76
|
+
try {
|
|
77
|
+
const configSource = path.join(__dirname, '..', 'bin', 'linux-x64', 'appsettings.json');
|
|
78
|
+
const configDest = path.join(__dirname, '..', 'appsettings.json');
|
|
79
|
+
|
|
80
|
+
if (fs.existsSync(configSource)) {
|
|
81
|
+
fs.copyFileSync(configSource, configDest);
|
|
82
|
+
console.log('✅ Arquivo de configuração copiado para o diretório raiz');
|
|
83
|
+
} else {
|
|
84
|
+
console.warn('⚠️ Arquivo de configuração não encontrado');
|
|
85
|
+
}
|
|
86
|
+
} catch (error) {
|
|
87
|
+
console.warn('⚠️ Erro ao copiar arquivo de configuração:', error.message);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
copyConfigFile();
|
|
92
|
+
|
|
74
93
|
console.log('🎉 Configuração concluída!');
|