@tanagram/cli 0.1.17 → 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.
Files changed (2) hide show
  1. package/install.js +3 -2
  2. package/package.json +4 -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 goBin = require('go-bin');
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanagram/cli",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Tanagram - Catch sloppy code before it ships",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -27,6 +27,9 @@
27
27
  "engines": {
28
28
  "node": ">=14.0.0"
29
29
  },
30
+ "dependencies": {
31
+ "go-bin": "^1.4.0"
32
+ },
30
33
  "files": [
31
34
  "bin/tanagram.js",
32
35
  "checker/",