taskforceai-cli 0.3.6 → 0.3.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/build.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskforceai-cli",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "TaskForceAI terminal client packaged for npm-based installs.",
5
5
  "type": "module",
6
6
  "bin": {
package/scripts/build.js CHANGED
@@ -3,6 +3,8 @@ import { chmodSync, mkdirSync } from 'node:fs';
3
3
  import { dirname, join } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
 
6
+ console.log('PATH:', process.env.PATH);
7
+
6
8
  const __filename = fileURLToPath(import.meta.url);
7
9
  const __dirname = dirname(__filename);
8
10
 
@@ -15,14 +17,16 @@ const outputPath = join(outputDir, binaryName);
15
17
 
16
18
  mkdirSync(outputDir, { recursive: true });
17
19
 
18
- const goVersion = spawnSync('go', ['version'], { stdio: 'ignore' });
20
+ const goVersion = spawnSync('/usr/local/go/bin/go', ['version'], { stdio: 'ignore' });
19
21
  if (goVersion.error || goVersion.status !== 0) {
20
22
  console.warn('[taskforceai-cli] Skipping Go build: Go toolchain not found in PATH.');
23
+ console.error('[taskforceai-cli] Go version error:', goVersion.error);
24
+ console.error('[taskforceai-cli] Go version status:', goVersion.status);
21
25
  process.exit(0);
22
26
  }
23
27
 
24
28
  const env = { ...process.env, CGO_ENABLED: process.env.CGO_ENABLED ?? '0' };
25
- const build = spawnSync('go', ['build', '-o', outputPath], {
29
+ const build = spawnSync('/usr/local/go/bin/go', ['build', '-o', outputPath], {
26
30
  cwd: cliSourceDir,
27
31
  stdio: 'inherit',
28
32
  env,