@moonrepo/cli 0.6.0 → 0.8.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 +60 -0
- package/README.md +1 -1
- package/package.json +6 -6
- package/postinstall.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 0.8.1
|
|
4
|
+
|
|
5
|
+
#### 🐞 Fixes
|
|
6
|
+
|
|
7
|
+
- Fixed a crash when `node.packageManager` was set to "pnpm" or "yarn" but `node.pnpm` or
|
|
8
|
+
`node.yarn` fields were not set.
|
|
9
|
+
|
|
10
|
+
## 0.8.0
|
|
11
|
+
|
|
12
|
+
This release was largely focused on interoperability with the Node.js ecosystem, specifically
|
|
13
|
+
`package.json` scripts. It's the first step in many steps, so stay tuned!
|
|
14
|
+
|
|
15
|
+
#### 🚀 Updates
|
|
16
|
+
|
|
17
|
+
- Added a special `noop` command for tasks.
|
|
18
|
+
- Added a `moon migrate from-package-json` command for migrating `package.json` scripts to
|
|
19
|
+
`project.yml` tasks.
|
|
20
|
+
- Added a `moon sync` command for manually syncing all projects in the workspace to a healthy state.
|
|
21
|
+
- Added a `node.inferTasksFromScripts` setting to `.moon/workspace.yml`, that will automatically
|
|
22
|
+
infer tasks from `package.json` scripts (with caveats).
|
|
23
|
+
- Added aliases for popular commands:
|
|
24
|
+
- `moon r` -> `moon run`
|
|
25
|
+
- `moon p` -> `moon project`
|
|
26
|
+
- `moon pg` -> `moon project-graph`
|
|
27
|
+
- `moon dg` -> `moon dep-graph`
|
|
28
|
+
|
|
29
|
+
#### 🐞 Fixes
|
|
30
|
+
|
|
31
|
+
- Fixed an issue where files being hashed with git were not being cached accordingly.
|
|
32
|
+
|
|
33
|
+
#### ⚙️ Internal
|
|
34
|
+
|
|
35
|
+
- Runfiles are no longer cleaned up when running tasks.
|
|
36
|
+
- Reworked `package.json` and `tsconfig.json` handling to avoid race conditions.
|
|
37
|
+
|
|
38
|
+
## 0.7.0
|
|
39
|
+
|
|
40
|
+
#### 💥 Breaking
|
|
41
|
+
|
|
42
|
+
- The `language` and `type` settings in `project.yml` now default to "unknown" when the setting is
|
|
43
|
+
not defined, or the config does not exist. However, the language will also now be inferred
|
|
44
|
+
(below).
|
|
45
|
+
|
|
46
|
+
#### 🚀 Updates
|
|
47
|
+
|
|
48
|
+
- Updated project `language` to be automatically inferred when the value is unknown, based on the
|
|
49
|
+
existence of config files (`package.json` = javascript, `tsconfig.json` = typescript).
|
|
50
|
+
- Updated the `InstallNodeDeps` action to install dependencies when a `package.json` change is
|
|
51
|
+
detected.
|
|
52
|
+
- Added a `moon dep-graph` command for displaying the entire dependency graph in DOT format.
|
|
53
|
+
- Added `--language` and `--type` filter options to `moon query projects`.
|
|
54
|
+
- Added `$language`, `$projectType`, and `$taskType` token variables.
|
|
55
|
+
- Added `dev` as a non-CI task identifier (alongside `start` and `serve`).
|
|
56
|
+
- Token variables can now be used within task `inputs`.
|
|
57
|
+
- Multiple token variables can now be used within the same string.
|
|
58
|
+
|
|
59
|
+
#### 🐞 Fixes
|
|
60
|
+
|
|
61
|
+
- Fixed an issue where package binaries would not execute on pnpm.
|
|
62
|
+
|
|
3
63
|
## 0.6.0
|
|
4
64
|
|
|
5
65
|
#### 🚀 Updates
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ and provide a first-class developer experience.
|
|
|
51
51
|
_not_ an "all at once adoption". Migrate project-by-project, or task-by-task, it's up to you!
|
|
52
52
|
- **Reduced scripts confusion** - `package.json` scripts can become unwieldy, very quickly. No more
|
|
53
53
|
duplicating the same script into every package, or reverse-engineering which root scripts to use.
|
|
54
|
-
With moon, all you need to know is the project
|
|
54
|
+
With moon, all you need to know is the project name, and a task name.
|
|
55
55
|
- **Ensure correct versions** - Whether it's Node.js or npm, ensure the same version of each tool is
|
|
56
56
|
the same across _every_ developer's environment. No more wasted hours of debugging.
|
|
57
57
|
- **Automation built-in** - When applicable, moon will automatically install `node_modules`, or sync
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonrepo/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
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.
|
|
33
|
-
"@moonrepo/core-linux-x64-musl": "^0.
|
|
34
|
-
"@moonrepo/core-macos-arm64": "^0.
|
|
35
|
-
"@moonrepo/core-macos-x64": "^0.
|
|
36
|
-
"@moonrepo/core-windows-x64-msvc": "^0.
|
|
32
|
+
"@moonrepo/core-linux-x64-gnu": "^0.8.1",
|
|
33
|
+
"@moonrepo/core-linux-x64-musl": "^0.8.1",
|
|
34
|
+
"@moonrepo/core-macos-arm64": "^0.8.1",
|
|
35
|
+
"@moonrepo/core-macos-x64": "^0.8.1",
|
|
36
|
+
"@moonrepo/core-windows-x64-msvc": "^0.8.1"
|
|
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
|
}
|