@followthecode/cli 2.2.1 → 2.4.0

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/bin/ftc CHANGED
@@ -24,13 +24,13 @@ get_executable_path() {
24
24
 
25
25
  case "$platform" in
26
26
  "linux")
27
- echo "$script_dir/linux-x64/ftc.cli"
27
+ echo "$script_dir/linux-x64/ftc.collect.cli"
28
28
  ;;
29
29
  "osx")
30
- echo "$script_dir/osx-x64/ftc.cli"
30
+ echo "$script_dir/osx-x64/ftc.collect.cli"
31
31
  ;;
32
32
  "win")
33
- echo "$script_dir/win-x64/ftc.cli.exe"
33
+ echo "$script_dir/win-x64/ftc.collect.cli.exe"
34
34
  ;;
35
35
  *)
36
36
  echo "unknown"
package/bin/ftc.js CHANGED
@@ -13,11 +13,11 @@ function getExecutablePath() {
13
13
  const baseDir = path.join(__dirname);
14
14
 
15
15
  if (isWindows) {
16
- return path.join(baseDir, 'win-x64', 'ftc.cli.exe');
16
+ return path.join(baseDir, 'win-x64', 'ftc.collect.cli.exe');
17
17
  } else if (platform === 'darwin') {
18
- return path.join(baseDir, 'osx-x64', 'ftc.cli');
18
+ return path.join(baseDir, 'osx-x64', 'ftc.collect.cli');
19
19
  } else {
20
- return path.join(baseDir, 'linux-x64', 'ftc.cli');
20
+ return path.join(baseDir, 'linux-x64', 'ftc.collect.cli');
21
21
  }
22
22
  }
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@followthecode/cli",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "description": "CLI tool for Git repository analysis and data collection",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",
@@ -14,13 +14,14 @@
14
14
  "scripts": {
15
15
  "build": "npm run build:all && npm run setup",
16
16
  "build:all": "npm run build:win && npm run build:mac && npm run build:linux",
17
- "build:win": "dotnet publish ftc.cli.csproj -c Release -r win-x64 -o ./bin/win-x64",
18
- "build:mac": "dotnet publish ftc.cli.csproj -c Release -r osx-x64 -o ./bin/osx-x64",
19
- "build:linux": "dotnet publish ftc.cli.csproj -c Release -r linux-x64 -o ./bin/linux-x64",
20
- "setup": "npm run sync-version && npm run copy-config && npm run set-permissions",
17
+ "build:win": "dotnet publish ftc.collect.cli.csproj -c Release -r win-x64 -o ./bin/win-x64",
18
+ "build:mac": "dotnet publish ftc.collect.cli.csproj -c Release -r osx-x64 -o ./bin/osx-x64",
19
+ "build:linux": "dotnet publish ftc.collect.cli.csproj -c Release -r linux-x64 -o ./bin/linux-x64",
20
+ "setup": "npm run sync-version && npm run copy-config && npm run copy-wrapper && npm run set-permissions",
21
21
  "sync-version": "node scripts/sync-version.js",
22
22
  "copy-config": "node scripts/copy-config.js",
23
23
  "set-permissions": "node scripts/set-permissions.js",
24
+ "copy-wrapper": "node scripts/copy-wrapper",
24
25
  "postinstall": "node scripts/post-install.js",
25
26
  "test": "dotnet test",
26
27
  "test:install": "npm run test:install:win",
@@ -68,13 +69,13 @@
68
69
  "files": [
69
70
  "bin/ftc.js",
70
71
  "bin/ftc",
71
- "bin/win-x64/ftc.cli.exe",
72
+ "bin/win-x64/ftc.collect.cli.exe",
72
73
  "bin/win-x64/appsettings.json",
73
74
  "bin/win-x64/git2-3f4182d.dll",
74
- "bin/osx-x64/ftc.cli",
75
+ "bin/osx-x64/ftc.collect.cli",
75
76
  "bin/osx-x64/appsettings.json",
76
77
  "bin/osx-x64/libgit2-3f4182d.dylib",
77
- "bin/linux-x64/ftc.cli",
78
+ "bin/linux-x64/ftc.collect.cli",
78
79
  "bin/linux-x64/appsettings.json",
79
80
  "bin/linux-x64/libgit2-3f4182d.so",
80
81
  "appsettings.json",
@@ -9,8 +9,8 @@ const platform = process.platform;
9
9
  const isWindows = platform === 'win32';
10
10
 
11
11
  const platforms = [
12
- { dir: 'linux-x64', executable: 'ftc.cli' },
13
- { dir: 'osx-x64', executable: 'ftc.cli' }
12
+ { dir: 'linux-x64', executable: 'ftc.collect.cli' },
13
+ { dir: 'osx-x64', executable: 'ftc.collect.cli' }
14
14
  ];
15
15
 
16
16
  platforms.forEach(platformConfig => {
@@ -12,9 +12,9 @@ function getPackageVersion() {
12
12
  return package.version;
13
13
  }
14
14
 
15
- // Atualiza a versão no ftc.cli.csproj
15
+ // Atualiza a versão no ftc.collect.cli.csproj
16
16
  function updateCsprojVersion(version) {
17
- const csprojPath = path.join(__dirname, '..', 'ftc.cli.csproj');
17
+ const csprojPath = path.join(__dirname, '..', 'ftc.collect.cli.csproj');
18
18
  let content = fs.readFileSync(csprojPath, 'utf8');
19
19
 
20
20
  // Atualiza as tags de versão
@@ -56,7 +56,7 @@ function updateCsprojVersion(version) {
56
56
  }
57
57
 
58
58
  fs.writeFileSync(csprojPath, content);
59
- console.log(`✅ Versão ${version} sincronizada no ftc.cli.csproj`);
59
+ console.log(`✅ Versão ${version} sincronizada no ftc.collect.cli.csproj`);
60
60
  }
61
61
 
62
62
  // Atualiza a versão no Program.cs