bulk-release 2.15.0 → 2.15.2

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,3 +1,13 @@
1
+ ## [2.15.2](https://github.com/semrel-extra/zx-bulk-release/compare/v2.15.1...v2.15.2) (2024-02-25)
2
+
3
+ ### Fixes & improvements
4
+ * perf: update zx-extra to v2.6.7 ([c910cbb](https://github.com/semrel-extra/zx-bulk-release/commit/c910cbb3bb188dd01815281e3c82512d6cbc80a3))
5
+
6
+ ## [2.15.1](https://github.com/semrel-extra/zx-bulk-release/compare/v2.15.0...v2.15.1) (2024-02-09)
7
+
8
+ ### Fixes & improvements
9
+ * perf: apply npmRestore to updated pkgs only ([daa4080](https://github.com/semrel-extra/zx-bulk-release/commit/daa4080f402a4a68ce97e21089dde98995c23486))
10
+
1
11
  ## [2.15.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.14.0...v2.15.0) (2024-02-08)
2
12
 
3
13
  ### Features
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bulk-release",
3
3
  "alias": "bulk-release",
4
- "version": "2.15.0",
4
+ "version": "2.15.2",
5
5
  "description": "zx-based alternative for multi-semantic-release",
6
6
  "type": "module",
7
7
  "exports": {
@@ -28,14 +28,14 @@
28
28
  "@semrel-extra/topo": "^1.14.1",
29
29
  "cosmiconfig": "^9.0.0",
30
30
  "queuefy": "^1.2.1",
31
- "tar-stream": "^3.1.6",
32
- "zx-extra": "^2.6.4"
31
+ "tar-stream": "^3.1.7",
32
+ "zx-extra": "^2.6.7"
33
33
  },
34
34
  "devDependencies": {
35
- "c8": "^8.0.1",
36
- "esbuild": "^0.20.0",
35
+ "c8": "^9.1.0",
36
+ "esbuild": "^0.20.1",
37
37
  "uvu": "^0.5.6",
38
- "verdaccio": "^5.29.0"
38
+ "verdaccio": "^5.29.2"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -1,6 +1,7 @@
1
1
  import {log} from '../log.js'
2
2
  import {$, fs, INI, fetch, tempy} from 'zx-extra'
3
3
  import {unzip} from '../util.js'
4
+ import {Readable} from 'node:stream'
4
5
 
5
6
  // https://stackoverflow.com/questions/19978452/how-to-extract-single-file-from-tar-gz-archive-using-node-js
6
7
 
@@ -26,7 +27,7 @@ export const fetchPkg = async (pkg) => {
26
27
  })
27
28
  clearTimeout(timeoutId)
28
29
 
29
- await unzip(tarball.body, {cwd, strip: 1, omit: ['package.json']})
30
+ await unzip(Readable.from(tarball.body), {cwd, strip: 1, omit: ['package.json']})
30
31
 
31
32
  log({pkg})(`fetch duration '${id}': ${Date.now() - now}`)
32
33
  pkg.fetched = true
@@ -49,6 +49,7 @@ export const run = async ({cwd = process.cwd(), env, flags = {}} = {}) => within
49
49
 
50
50
  if (!pkg.releaseType) {
51
51
  report.setStatus('skipped', name)
52
+ pkg.skipped = true
52
53
  return
53
54
  }
54
55
  if (flags.build !== false) {
@@ -3,5 +3,5 @@ import {npmRestore} from '../api/npm.js'
3
3
 
4
4
  export const clean = async (cwd, packages) => {
5
5
  await unsetUserConfig(cwd)
6
- await Promise.all(Object.values(packages).map(npmRestore))
6
+ await Promise.all(Object.values(packages).filter(pkg => !pkg.skipped).map(npmRestore))
7
7
  }