@moonrepo/cli 0.20.3 → 0.21.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 CHANGED
@@ -1,5 +1,64 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.1
4
+
5
+ #### 🐞 Fixes
6
+
7
+ - Fixed an issue with `moon project-graph` that would not include nodes without edges.
8
+ - Fixed an issue running the install script in WSL.
9
+
10
+ ## 0.21.0
11
+
12
+ #### 🚀 Updates
13
+
14
+ - We've rewritten our project graph to use eager-loading instead of lazy-loading to improve
15
+ performance, and to avoid mutating borrowed data across threads in Rust. We're also no longer
16
+ cloning project information unnecessarily, which is a massive memory reduction boost.
17
+ - We've also rewritten our dependency graph in a similar fashion, and are now able to efficiently
18
+ reference data from the project graph while building the dependency chain.
19
+ - You may now install the `@moonrepo/cli` package globally with pnpm and yarn. When running these
20
+ globals, moon will attempt to use the binary found in the repo's node modules.
21
+
22
+ ##### Core
23
+
24
+ - Added a new cache level, `read-write`, that can be passed to `--cache` or `MOON_CACHE`. This is
25
+ now the default level, while `write` is now a write-only level.
26
+ - Added `--minimal` to `moon init` for quick scaffolding and prototyping.
27
+ - Updated the system platform to include the operating system and architecture when hashing.
28
+ - Updated remote caching to use presigned URLs when available.
29
+
30
+ ##### Graphs
31
+
32
+ - Updated `moon dep-graph` and `moon project-graph` to serve interactive graph visualizers using the
33
+ cytoscape library. The DOT output has moved behind a `--dot` flag.
34
+
35
+ ##### Runner
36
+
37
+ - Added `--updateCache` (`-u`) to `moon check` and `moon run` that force updates the cache and
38
+ bypasses any existing cache.
39
+ - Added `args` and `env` as valid values for the `affectedFiles` task option.
40
+ - Updated `moon run` and `moon query touched-files` to support a list of `--status` options.
41
+ - Updated pnpm prune to use the [pnpm-deduplicate](https://www.npmjs.com/package/pnpm-deduplicate)
42
+ package.
43
+
44
+ ##### Toolchain
45
+
46
+ - Added 24 hour temporary caching to version manifests to improve performance.
47
+ - Updated default versions of tools:
48
+ - pnpm 7.14.0 -> 7.18.2
49
+ - yarn 3.2.4 -> 3.3.0
50
+
51
+ #### 🐞 Fixes
52
+
53
+ - Fixed an issue where "installing yarn" would constantly show.
54
+ - Fixed an issue on Windows where `package.json` and `tsconfig.json` would change newlines
55
+ unexpectedly when saving.
56
+ - Fixed an issue with `^:deps` that would resolve projects with a non-matching task.
57
+
58
+ #### ⚙️ Internal
59
+
60
+ - Updated Rust to v1.66.
61
+
3
62
  ## 0.20.3
4
63
 
5
64
  #### 🐞 Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonrepo/cli",
3
- "version": "0.20.3",
3
+ "version": "0.21.1",
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.20.3",
33
- "@moonrepo/core-linux-arm64-musl": "^0.20.3",
34
- "@moonrepo/core-linux-x64-gnu": "^0.20.3",
35
- "@moonrepo/core-linux-x64-musl": "^0.20.3",
36
- "@moonrepo/core-macos-arm64": "^0.20.3",
37
- "@moonrepo/core-macos-x64": "^0.20.3",
38
- "@moonrepo/core-windows-x64-msvc": "^0.20.3"
32
+ "@moonrepo/core-linux-arm64-gnu": "^0.21.1",
33
+ "@moonrepo/core-linux-arm64-musl": "^0.21.1",
34
+ "@moonrepo/core-linux-x64-gnu": "^0.21.1",
35
+ "@moonrepo/core-linux-x64-musl": "^0.21.1",
36
+ "@moonrepo/core-macos-arm64": "^0.21.1",
37
+ "@moonrepo/core-macos-x64": "^0.21.1",
38
+ "@moonrepo/core-windows-x64-msvc": "^0.21.1"
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, path.join(__dirname, binary));
43
+ fs.linkSync(binPath, linkPath);
42
44
  } catch {
43
- fs.copyFileSync(binPath, path.join(__dirname, binary));
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 (error) {}
69
+ } catch {}
66
70
  }