@moonrepo/cli 0.21.0 → 0.21.2
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 +20 -0
- package/package.json +8 -8
- package/postinstall.js +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.2
|
|
4
|
+
|
|
5
|
+
#### 🚀 Updates
|
|
6
|
+
|
|
7
|
+
- Added a `--json` flag to `moon dep-graph` and `moon project-graph` that will return the nodes and
|
|
8
|
+
edges data as JSON.
|
|
9
|
+
|
|
10
|
+
#### ⚙️ Internal
|
|
11
|
+
|
|
12
|
+
- We now include the version and file path of the moon binary being executed in the logs for
|
|
13
|
+
debugging purposes.
|
|
14
|
+
- Updated remote caching to use a new upload endpoint.
|
|
15
|
+
|
|
16
|
+
## 0.21.1
|
|
17
|
+
|
|
18
|
+
#### 🐞 Fixes
|
|
19
|
+
|
|
20
|
+
- Fixed an issue with `moon project-graph` that would not include nodes without edges.
|
|
21
|
+
- Fixed an issue running the install script in WSL.
|
|
22
|
+
|
|
3
23
|
## 0.21.0
|
|
4
24
|
|
|
5
25
|
#### 🚀 Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonrepo/cli",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
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.
|
|
33
|
-
"@moonrepo/core-linux-arm64-musl": "^0.21.
|
|
34
|
-
"@moonrepo/core-linux-x64-gnu": "^0.21.
|
|
35
|
-
"@moonrepo/core-linux-x64-musl": "^0.21.
|
|
36
|
-
"@moonrepo/core-macos-arm64": "^0.21.
|
|
37
|
-
"@moonrepo/core-macos-x64": "^0.21.
|
|
38
|
-
"@moonrepo/core-windows-x64-msvc": "^0.21.
|
|
32
|
+
"@moonrepo/core-linux-arm64-gnu": "^0.21.2",
|
|
33
|
+
"@moonrepo/core-linux-arm64-musl": "^0.21.2",
|
|
34
|
+
"@moonrepo/core-linux-x64-gnu": "^0.21.2",
|
|
35
|
+
"@moonrepo/core-linux-x64-musl": "^0.21.2",
|
|
36
|
+
"@moonrepo/core-macos-arm64": "^0.21.2",
|
|
37
|
+
"@moonrepo/core-macos-x64": "^0.21.2",
|
|
38
|
+
"@moonrepo/core-windows-x64-msvc": "^0.21.2"
|
|
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,
|
|
43
|
+
fs.linkSync(binPath, linkPath);
|
|
42
44
|
} catch {
|
|
43
|
-
fs.copyFileSync(binPath,
|
|
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
|
|
69
|
+
} catch {}
|
|
66
70
|
}
|