@moonrepo/cli 0.6.0 → 0.7.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,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ #### 💥 Breaking
6
+
7
+ - The `language` and `type` settings in `project.yml` now default to "unknown" when the setting is
8
+ not defined, or the config does not exist. However, the language will also now be inferred
9
+ (below).
10
+
11
+ #### 🚀 Updates
12
+
13
+ - Updated project `language` to be automatically inferred when the value is unknown, based on the
14
+ existence of config files (`package.json` = javascript, `tsconfig.json` = typescript).
15
+ - Updated the `InstallNodeDeps` action to install dependencies when a `package.json` change is
16
+ detected.
17
+ - Added a `moon dep-graph` command for displaying the entire dependency graph in DOT format.
18
+ - Added `--language` and `--type` filter options to `moon query projects`.
19
+ - Added `$language`, `$projectType`, and `$taskType` token variables.
20
+ - Added `dev` as a non-CI task identifier (alongside `start` and `serve`).
21
+ - Token variables can now be used within task `inputs`.
22
+ - Multiple token variables can now be used within the same string.
23
+
24
+ #### 🐞 Fixes
25
+
26
+ - Fixed an issue where package binaries would not execute on pnpm.
27
+
3
28
  ## 0.6.0
4
29
 
5
30
  #### 🚀 Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonrepo/cli",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "moon command line and core system.",
5
5
  "keywords": [
6
6
  "moon",
@@ -29,10 +29,10 @@
29
29
  "detect-libc": "^2.0.1"
30
30
  },
31
31
  "optionalDependencies": {
32
- "@moonrepo/core-linux-x64-gnu": "^0.6.0",
33
- "@moonrepo/core-linux-x64-musl": "^0.6.0",
34
- "@moonrepo/core-macos-arm64": "^0.6.0",
35
- "@moonrepo/core-macos-x64": "^0.6.0",
36
- "@moonrepo/core-windows-x64-msvc": "^0.6.0"
32
+ "@moonrepo/core-linux-x64-gnu": "^0.7.0",
33
+ "@moonrepo/core-linux-x64-musl": "^0.7.0",
34
+ "@moonrepo/core-macos-arm64": "^0.7.0",
35
+ "@moonrepo/core-macos-x64": "^0.7.0",
36
+ "@moonrepo/core-windows-x64-msvc": "^0.7.0"
37
37
  }
38
38
  }
package/postinstall.js CHANGED
@@ -56,5 +56,11 @@ try {
56
56
  if (isWindows && !isMoonLocal) {
57
57
  try {
58
58
  fs.unlinkSync(path.join(__dirname, 'moon'));
59
+
60
+ // This is required for pnpm!
61
+ const pkg = require('./package.json');
62
+ pkg.bin.moon = binary;
63
+
64
+ fs.writeFileSync(path.join(__dirname, 'package.json'), JSON.stringify(pkg, null, 2));
59
65
  } catch (error) {}
60
66
  }