zx-bulk-release 2.2.17 → 2.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 +5 -0
- package/README.md +1 -0
- package/package.json +2 -2
- package/src/main/js/deps.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [2.3.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.17...v2.3.0) (2023-03-28)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
* feat: introduce `onlyWorkspaceDeps` flag to identify `workspace` deps as the only graph edges ([b4aa4b5](https://github.com/semrel-extra/zx-bulk-release/commit/b4aa4b5e81c7ecc6658bac53b2188727e087aed6))
|
|
5
|
+
|
|
1
6
|
## [2.2.17](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.16...v2.2.17) (2023-03-28)
|
|
2
7
|
|
|
3
8
|
### Fixes & improvements
|
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@ GH_TOKEN=ghtoken GH_USER=username NPM_TOKEN=npmtoken npx zx-bulk-release [opts]
|
|
|
44
44
|
| `--concurrency` | `build/publish` threads limit | `os.cpus.length` |
|
|
45
45
|
| `--no-build` | Skip `buildCmd` invoke | |
|
|
46
46
|
| `--no-npm-fetch` | Disable npm artifacts fetching | |
|
|
47
|
+
| `--only-workspace-deps` | Recognize only `workspace:` deps as graph edges | |
|
|
47
48
|
| `--dry-run` / `--no-publish` | Disable any publish logic | |
|
|
48
49
|
| `--report` | Persist release state to file | |
|
|
49
50
|
| `--debug` | Enable [zx](https://github.com/google/zx#verbose) verbose mode | |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zx-bulk-release",
|
|
3
3
|
"alias": "bulk-release",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"description": "zx-based alternative for multi-semantic-release",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"docs": "mkdir -p docs && cp ./README.md ./docs/README.md"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@semrel-extra/topo": "^1.
|
|
25
|
+
"@semrel-extra/topo": "^1.7.0",
|
|
26
26
|
"cosmiconfig": "^8.1.3",
|
|
27
27
|
"queuefy": "^1.2.1",
|
|
28
28
|
"zx-extra": "^2.5.4"
|
package/src/main/js/deps.js
CHANGED
|
@@ -72,10 +72,11 @@ export const topo = async ({flags = {}, cwd} = {}) => {
|
|
|
72
72
|
? flags.ignore
|
|
73
73
|
: []
|
|
74
74
|
|
|
75
|
-
const
|
|
75
|
+
const depFilter = flags.onlyWorkspaceDeps ? ({version}) => version.startsWith('workspace:') : undefined
|
|
76
|
+
const pkgFilter = ({manifest: {private: _private, name}}) =>
|
|
76
77
|
!ignore.includes(name) && (flags.includePrivate || !_private)
|
|
77
78
|
|
|
78
|
-
return _topo({cwd,
|
|
79
|
+
return _topo({cwd, pkgFilter, depFilter})
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
export const traverseQueue = async ({queue, prev, cb}) => {
|