bulk-release 2.8.0 → 2.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 +5 -0
- package/README.md +1 -0
- package/package.json +2 -2
- package/src/main/js/processor.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [2.9.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.8.0...v2.9.0) (2023-05-29)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
* feat: introduce `-v` flag to print own version ([a921559](https://github.com/semrel-extra/zx-bulk-release/commit/a9215598aedb204136d3c28ef3f8c2a1cbebff54))
|
|
5
|
+
|
|
1
6
|
## [2.8.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.7.0...v2.8.0) (2023-05-25)
|
|
2
7
|
|
|
3
8
|
### 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.0",
|
|
5
5
|
"description": "zx-based alternative for multi-semantic-release",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -29,7 +29,7 @@
|
|
|
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
34
|
"verdaccio": "^5.24.1"
|
|
35
35
|
},
|
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
|
|