@moonrepo/cli 0.2.0 → 0.3.0

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,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0
4
+
5
+ #### 💥 Breaking
6
+
7
+ - Moved the `project.type` setting in `project.yml` to the top-level. Is now simply `type`.
8
+
9
+ #### 🚀 Updates
10
+
11
+ - Added support for a list of globs when configuring the `projects` setting in
12
+ `.moon/workspace.yml`.
13
+ - Added a `actionRunner.inheritColorsForPipedTasks` setting to `.moon/workspace.yml` for inheriting
14
+ terminal colors for piped tasks.
15
+ - Added a `language` setting to `project.yml` for defining the primary programming language of a
16
+ project.
17
+ - Added a global `--color` option to the CLI. Also supports a new `MOON_COLOR` environment variable.
18
+
19
+ #### 🐞 Fixes
20
+
21
+ - Fixed many issues around terminal color output and handling.
22
+
3
23
  ## 0.2.0
4
24
 
5
25
  #### 🚀 Updates
package/moon CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonrepo/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "moon command line and core system.",
5
5
  "keywords": [
6
6
  "moon",
@@ -8,14 +8,6 @@
8
8
  "cli",
9
9
  "core"
10
10
  ],
11
- "os": [
12
- "linux",
13
- "win32",
14
- "darwin"
15
- ],
16
- "cpu": [
17
- "x64"
18
- ],
19
11
  "files": [
20
12
  "moon",
21
13
  "postinstall.js"
@@ -37,10 +29,10 @@
37
29
  "detect-libc": "^2.0.1"
38
30
  },
39
31
  "optionalDependencies": {
40
- "@moonrepo/core-linux-x64-gnu": "^0.2.0",
41
- "@moonrepo/core-linux-x64-musl": "^0.2.0",
42
- "@moonrepo/core-macos-arm64": "^0.2.0",
43
- "@moonrepo/core-macos-x64": "^0.2.0",
44
- "@moonrepo/core-windows-x64-msvc": "^0.2.0"
32
+ "@moonrepo/core-linux-x64-gnu": "^0.3.0",
33
+ "@moonrepo/core-linux-x64-musl": "^0.3.0",
34
+ "@moonrepo/core-macos-arm64": "^0.3.0",
35
+ "@moonrepo/core-macos-x64": "^0.3.0",
36
+ "@moonrepo/core-windows-x64-msvc": "^0.3.0"
45
37
  }
46
38
  }
package/postinstall.js CHANGED
@@ -28,25 +28,21 @@ if (process.platform === 'linux') {
28
28
 
29
29
  const binary = process.platform === 'win32' ? 'moon.exe' : 'moon';
30
30
  const triple = parts.join('-');
31
- let pkgPath;
32
31
 
33
- try {
34
- pkgPath = path.dirname(require.resolve(`@moonrepo/core-${triple}/package.json`));
35
-
36
- if (!fs.existsSync(path.join(pkgPath, binary))) {
37
- throw new Error('Target not built.');
38
- }
39
- } catch {
40
- pkgPath = path.join(__dirname, '../../target/release');
41
- }
32
+ const pkgPath = path.dirname(require.resolve(`@moonrepo/core-${triple}/package.json`));
33
+ const binPath = path.join(pkgPath, binary);
42
34
 
43
35
  try {
44
- fs.linkSync(path.join(pkgPath, binary), path.join(__dirname, binary));
45
- } catch {
46
- try {
47
- fs.copyFileSync(path.join(pkgPath, binary), path.join(__dirname, binary));
48
- } catch {
49
- console.error('Failed to find "moon" binary.');
50
- // process.exit(1);
36
+ if (fs.existsSync(binPath)) {
37
+ try {
38
+ fs.linkSync(binPath, path.join(__dirname, binary));
39
+ } catch {
40
+ fs.copyFileSync(binPath, path.join(__dirname, binary));
41
+ }
42
+ } else {
43
+ throw new Error();
51
44
  }
45
+ } catch {
46
+ console.error('Failed to find "moon" binary.');
47
+ // process.exit(1);
52
48
  }