@followthecode/cli 1.2.7 → 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.
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@followthecode/cli",
3
- "version": "1.2.7",
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",
@@ -12,7 +12,6 @@
12
12
  "ftc-linux": "./bin/ftc"
13
13
  },
14
14
  "scripts": {
15
- "prepublishOnly": "npm run build",
16
15
  "build": "npm run build:all && npm run setup",
17
16
  "build:all": "npm run build:win && npm run build:mac && npm run build:linux",
18
17
  "build:win": "dotnet publish ftc.cli.csproj -c Release -r win-x64 -o ./bin/win-x64",
@@ -29,9 +28,9 @@
29
28
  "test:install:wsl": "wsl bash scripts/test-installation.sh",
30
29
  "clean": "dotnet clean",
31
30
  "publish": "node scripts/publish.js",
32
- "publish:patch": "npm run publish -- --patch",
33
- "publish:minor": "npm run publish -- --minor",
34
- "publish:major": "npm run 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"
35
34
  },
36
35
  "keywords": [
37
36
  "git",
@@ -76,6 +75,7 @@
76
75
  "bin/linux-x64/ftc.cli",
77
76
  "bin/linux-x64/appsettings.json",
78
77
  "bin/linux-x64/libgit2-c058aa8.so",
78
+ "appsettings.json",
79
79
  "scripts/copy-config.js",
80
80
  "scripts/set-permissions.js",
81
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!');