@tanagram/cli 0.1.18 → 0.1.19
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/install.js +3 -2
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -24,8 +24,9 @@ async function buildWithGoBin() {
|
|
|
24
24
|
console.log('📦 Installing Go compiler via npm...');
|
|
25
25
|
|
|
26
26
|
try {
|
|
27
|
-
// Install Go using go-bin
|
|
28
|
-
const
|
|
27
|
+
// Install Go using go-bin (resolve from parent node_modules)
|
|
28
|
+
const goBinPath = path.join(__dirname, '..', 'go-bin');
|
|
29
|
+
const goBin = require(goBinPath);
|
|
29
30
|
const goDir = await goBin({ version: GO_VERSION, dir: __dirname });
|
|
30
31
|
const goPath = path.join(goDir, 'bin', 'go');
|
|
31
32
|
|