bulk-release 2.8.0 → 2.9.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 +10 -0
- package/README.md +1 -0
- package/package.json +4 -4
- package/src/main/js/cli.js +0 -0
- package/src/main/js/config.js +1 -1
- package/src/main/js/processor.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.9.1](https://github.com/semrel-extra/zx-bulk-release/compare/v2.9.0...v2.9.1) (2023-06-09)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* fix: set default build. cmd to `exit 0` ([23d8ee2](https://github.com/semrel-extra/zx-bulk-release/commit/23d8ee2f64f98ce0d8d4f57d97dbed1c4696a389))
|
|
5
|
+
|
|
6
|
+
## [2.9.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.8.0...v2.9.0) (2023-05-29)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
* feat: introduce `-v` flag to print own version ([a921559](https://github.com/semrel-extra/zx-bulk-release/commit/a9215598aedb204136d3c28ef3f8c2a1cbebff54))
|
|
10
|
+
|
|
1
11
|
## [2.8.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.7.0...v2.8.0) (2023-05-25)
|
|
2
12
|
|
|
3
13
|
### Features
|
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ GH_TOKEN=ghtoken GH_USER=username NPM_TOKEN=npmtoken npx zx-bulk-release [opts]
|
|
|
50
50
|
| `--report` | Persist release state to file | |
|
|
51
51
|
| `--snapshot` | Disable any publishing steps except of `npm` and `publishCmd` (if defined), then push packages to the `snapshot` channel | |
|
|
52
52
|
| `--debug` | Enable [zx](https://github.com/google/zx#verbose) verbose mode | |
|
|
53
|
+
| `--version` / `-v` | Print own version | |
|
|
53
54
|
|
|
54
55
|
### JS API
|
|
55
56
|
```js
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bulk-release",
|
|
3
3
|
"alias": "bulk-release",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.9.1",
|
|
5
5
|
"description": "zx-based alternative for multi-semantic-release",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@semrel-extra/topo": "^1.13.0",
|
|
27
|
-
"cosmiconfig": "^8.
|
|
27
|
+
"cosmiconfig": "^8.2.0",
|
|
28
28
|
"queuefy": "^1.2.1",
|
|
29
29
|
"zx-extra": "^2.5.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"c8": "^7.
|
|
32
|
+
"c8": "^7.14.0",
|
|
33
33
|
"uvu": "^0.5.6",
|
|
34
|
-
"verdaccio": "^5.
|
|
34
|
+
"verdaccio": "^5.25.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/src/main/js/cli.js
CHANGED
|
File without changes
|
package/src/main/js/config.js
CHANGED
package/src/main/js/processor.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os from 'node:os'
|
|
2
|
+
import {createRequire} from 'node:module'
|
|
2
3
|
import {$, fs, within} from 'zx-extra'
|
|
3
4
|
import {queuefy} from 'queuefy'
|
|
4
5
|
import {analyze} from './analyze.js'
|
|
@@ -13,12 +14,18 @@ import {fetchPkg, npmPublish} from './npm.js'
|
|
|
13
14
|
import {memoizeBy, tpl} from './util.js'
|
|
14
15
|
|
|
15
16
|
export const run = async ({cwd = process.cwd(), env, flags = {}} = {}) => within(async () => {
|
|
17
|
+
const {version: zbrVersion} = createRequire(import.meta.url)('../../../package.json')
|
|
18
|
+
if (flags.v || flags.version) {
|
|
19
|
+
console.log(zbrVersion)
|
|
20
|
+
return
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
const context = await createContext({flags, env, cwd})
|
|
17
24
|
const {report, packages, queue, prev, graphs} = context
|
|
18
25
|
const _runCmd = queuefy(runCmd, flags.concurrency || os.cpus().length)
|
|
19
26
|
|
|
20
27
|
report
|
|
21
|
-
.log()(
|
|
28
|
+
.log()(`zx-bulk-release@${zbrVersion}`)
|
|
22
29
|
.log()('queue:', queue)
|
|
23
30
|
.log()('graphs', graphs)
|
|
24
31
|
|