zx-bulk-release 1.17.7 → 1.18.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 CHANGED
@@ -1,3 +1,13 @@
1
+ ## [1.18.0](https://github.com/semrel-extra/zx-bulk-release/compare/v1.17.7...v1.18.0) (2022-07-09)
2
+
3
+ ### Features
4
+ * feat: do not publish to npm private packages ([5a7ddea](https://github.com/semrel-extra/zx-bulk-release/commit/5a7ddead35b95adfc5f0450084ca78ead0edc531))
5
+ * feat: do not publish to npm private packages ([2e236d8](https://github.com/semrel-extra/zx-bulk-release/commit/2e236d83de4342a6ee6b9e937e6a4dd20d1b3a2e))
6
+
7
+ ### Fixes & improvements
8
+ * fix: fetch is not defined ([8e6cca1](https://github.com/semrel-extra/zx-bulk-release/commit/8e6cca1d69aaeaec75de8404746163d9e2db9193))
9
+ * fix: correct extract private field ([5624baa](https://github.com/semrel-extra/zx-bulk-release/commit/5624baa10eee03e5f327e7d51529883b40a4a961))
10
+
1
11
  ## [1.17.7](https://github.com/semrel-extra/zx-bulk-release/compare/v1.17.6...v1.17.7) (2022-07-06)
2
12
 
3
13
  ### Fixes & improvements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zx-bulk-release",
3
- "version": "1.17.7",
3
+ "version": "1.18.0",
4
4
  "description": "zx-based alternative for multi-semantic-release",
5
5
  "type": "module",
6
6
  "exports": "./src/main/js/index.js",
@@ -1,5 +1,5 @@
1
1
  import {parseEnv} from './config.js'
2
- import {$, ctx, fs, path, tempy, copy, INI} from 'zx-extra'
2
+ import {$, ctx, fs, path, tempy, copy, INI, fetch} from 'zx-extra'
3
3
 
4
4
  export const fetchPkg = async (pkg, {env = $.env} = {}) => {
5
5
  try {
@@ -36,7 +36,8 @@ export const fetchManifest = async (pkg, {nothrow, env = $.env} = {}) => {
36
36
  }
37
37
 
38
38
  export const npmPublish = (pkg) => ctx(async ($) => {
39
- const {absPath: cwd, name, version} = pkg
39
+ const {absPath: cwd, name, version, manifest} = pkg
40
+ if (manifest.private) return
40
41
  const {npmRegistry, npmToken, npmConfig} = parseEnv($.env)
41
42
  const npmrc = npmConfig ? npmConfig : path.resolve(cwd, '.npmrc')
42
43