@moonrepo/cli 0.21.0 → 0.21.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.1
4
+
5
+ #### 🐞 Fixes
6
+
7
+ - Fixed an issue with `moon project-graph` that would not include nodes without edges.
8
+ - Fixed an issue running the install script in WSL.
9
+
3
10
  ## 0.21.0
4
11
 
5
12
  #### 🚀 Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonrepo/cli",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "moon command line and core system.",
5
5
  "keywords": [
6
6
  "moon",
@@ -29,12 +29,12 @@
29
29
  "detect-libc": "^2.0.1"
30
30
  },
31
31
  "optionalDependencies": {
32
- "@moonrepo/core-linux-arm64-gnu": "^0.21.0",
33
- "@moonrepo/core-linux-arm64-musl": "^0.21.0",
34
- "@moonrepo/core-linux-x64-gnu": "^0.21.0",
35
- "@moonrepo/core-linux-x64-musl": "^0.21.0",
36
- "@moonrepo/core-macos-arm64": "^0.21.0",
37
- "@moonrepo/core-macos-x64": "^0.21.0",
38
- "@moonrepo/core-windows-x64-msvc": "^0.21.0"
32
+ "@moonrepo/core-linux-arm64-gnu": "^0.21.1",
33
+ "@moonrepo/core-linux-arm64-musl": "^0.21.1",
34
+ "@moonrepo/core-linux-x64-gnu": "^0.21.1",
35
+ "@moonrepo/core-linux-x64-musl": "^0.21.1",
36
+ "@moonrepo/core-macos-arm64": "^0.21.1",
37
+ "@moonrepo/core-macos-x64": "^0.21.1",
38
+ "@moonrepo/core-windows-x64-msvc": "^0.21.1"
39
39
  }
40
40
  }
package/postinstall.js CHANGED
@@ -36,12 +36,16 @@ const pkgPath = path.dirname(require.resolve(`@moonrepo/core-${triple}/package.j
36
36
  const binPath = path.join(pkgPath, binary);
37
37
 
38
38
  try {
39
+ const linkPath = path.join(__dirname, binary);
40
+
39
41
  if (fs.existsSync(binPath)) {
40
42
  try {
41
- fs.linkSync(binPath, path.join(__dirname, binary));
43
+ fs.linkSync(binPath, linkPath);
42
44
  } catch {
43
- fs.copyFileSync(binPath, path.join(__dirname, binary));
45
+ fs.copyFileSync(binPath, linkPath);
44
46
  }
47
+
48
+ fs.chmodSync(linkPath, 0o755);
45
49
  } else {
46
50
  throw new Error();
47
51
  }
@@ -62,5 +66,5 @@ if (isWindows && !isMoonLocal) {
62
66
  pkg.bin.moon = binary;
63
67
 
64
68
  fs.writeFileSync(path.join(__dirname, 'package.json'), JSON.stringify(pkg, null, 2));
65
- } catch (error) {}
69
+ } catch {}
66
70
  }