@moonrepo/cli 0.7.0 → 0.9.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,73 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0
4
+
5
+ #### 💥 Breaking
6
+
7
+ We've refactored our smart hashing layer to take into account different platforms (a task's type) in
8
+ an effort to be more accurate, which now results in different hashes for the same build. Any
9
+ previous builds are no longer valid and can be removed.
10
+
11
+ #### 🚀 Updates
12
+
13
+ - Updated task `type` to be automatically inferred when the value is unknown, based on the owning
14
+ project's `language` (`javascript` = node, `bash` = system, etc).
15
+ - Updated `dependsOn` in `project.yml` to support an object form, where a scope (production,
16
+ development, peer) can also be defined. This maps to the appropriate field in `package.json` when
17
+ syncing.
18
+ - Added `batch` as a supported value for the project `language` setting (Windows counter-part to
19
+ `bash`).
20
+ - Added a `cache` option to tasks, which will disable smart hashing and output caching.
21
+ - Added a `node.dependencyVersionFormat` setting to `.moon/workspace.yml`, to customize the version
22
+ format when syncing dependencies.
23
+ - Added environment variable support to task `inputs` and `actionRunner.implicitInputs`, in the
24
+ format of `$ENV_VAR`.
25
+
26
+ #### 🐞 Fixes
27
+
28
+ - Fixed an issue where pnpm didn't work with `node-linker=isolated` for nested node modules.
29
+ - Fixed an issue where failing processes would display an empty error message.
30
+
31
+ #### ⚙️ Internal
32
+
33
+ - Outputs are now copied to `.moon/cache/out` instead of being hardlinked.
34
+ - Package binaries are now resolved to their canonical path when a symlink.
35
+
36
+ ### 0.8.1
37
+
38
+ #### 🐞 Fixes
39
+
40
+ - Fixed a crash when `node.packageManager` was set to "pnpm" or "yarn" but `node.pnpm` or
41
+ `node.yarn` fields were not set.
42
+
43
+ ## 0.8.0
44
+
45
+ This release was largely focused on interoperability with the Node.js ecosystem, specifically
46
+ `package.json` scripts. It's the first step in many steps, so stay tuned!
47
+
48
+ #### 🚀 Updates
49
+
50
+ - Added a special `noop` command for tasks.
51
+ - Added a `moon migrate from-package-json` command for migrating `package.json` scripts to
52
+ `project.yml` tasks.
53
+ - Added a `moon sync` command for manually syncing all projects in the workspace to a healthy state.
54
+ - Added a `node.inferTasksFromScripts` setting to `.moon/workspace.yml`, that will automatically
55
+ infer tasks from `package.json` scripts (with caveats).
56
+ - Added aliases for popular commands:
57
+ - `moon r` -> `moon run`
58
+ - `moon p` -> `moon project`
59
+ - `moon pg` -> `moon project-graph`
60
+ - `moon dg` -> `moon dep-graph`
61
+
62
+ #### 🐞 Fixes
63
+
64
+ - Fixed an issue where files being hashed with git were not being cached accordingly.
65
+
66
+ #### ⚙️ Internal
67
+
68
+ - Runfiles are no longer cleaned up when running tasks.
69
+ - Reworked `package.json` and `tsconfig.json` handling to avoid race conditions.
70
+
3
71
  ## 0.7.0
4
72
 
5
73
  #### 💥 Breaking
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 ID, and a task ID.
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.7.0",
3
+ "version": "0.9.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.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"
32
+ "@moonrepo/core-linux-x64-gnu": "^0.9.0",
33
+ "@moonrepo/core-linux-x64-musl": "^0.9.0",
34
+ "@moonrepo/core-macos-arm64": "^0.9.0",
35
+ "@moonrepo/core-macos-x64": "^0.9.0",
36
+ "@moonrepo/core-windows-x64-msvc": "^0.9.0"
37
37
  }
38
38
  }