zx-bulk-release 1.19.3 → 1.20.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/package.json +1 -1
- package/src/main/js/index.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [1.20.0](https://github.com/semrel-extra/zx-bulk-release/compare/v1.19.3...v1.20.0) (2022-07-20)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
* feat: set custom env if passed ([8acd852](https://github.com/semrel-extra/zx-bulk-release/commit/8acd8524124d06f54ac54d113b7049fe6b778851))
|
|
5
|
+
|
|
1
6
|
## [1.19.3](https://github.com/semrel-extra/zx-bulk-release/compare/v1.19.2...v1.19.3) (2022-07-20)
|
|
2
7
|
|
|
3
8
|
### Fixes & improvements
|
package/package.json
CHANGED
package/src/main/js/index.js
CHANGED
|
@@ -2,9 +2,11 @@ import {analyze} from './analyze.js'
|
|
|
2
2
|
import {publish} from './publish.js'
|
|
3
3
|
import {build} from './build.js'
|
|
4
4
|
import {topo} from './topo.js'
|
|
5
|
+
import {within, $} from 'zx-extra'
|
|
5
6
|
|
|
6
|
-
export const run = async ({cwd = process.cwd(), env
|
|
7
|
+
export const run = async ({cwd = process.cwd(), env, flags = {}} = {}) => within(async () => {
|
|
7
8
|
console.log('zx-bulk-release')
|
|
9
|
+
$.env = {...process.env, ...env}
|
|
8
10
|
|
|
9
11
|
try {
|
|
10
12
|
const {packages, queue, root} = await topo({cwd, flags})
|
|
@@ -28,4 +30,4 @@ export const run = async ({cwd = process.cwd(), env = process.env, flags = {}} =
|
|
|
28
30
|
throw e
|
|
29
31
|
}
|
|
30
32
|
console.log('Great success!')
|
|
31
|
-
}
|
|
33
|
+
})
|