zx-bulk-release 1.7.0 → 1.7.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 +6 -0
- package/README.md +5 -0
- package/package.json +1 -1
- package/src/main/js/index.js +8 -5
- package/src/test/js/integration.test.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [1.7.1](https://github.com/semrel-extra/zx-bulk-release/compare/v1.7.0...v1.7.1) (2022-06-25)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* fix: fix yarn install cwd ([c6f0ae3](https://github.com/semrel-extra/zx-bulk-release/commit/c6f0ae3e0e9e8feca251a567e273380e278fe2a9))
|
|
5
|
+
* fix: update yarn assets after build/fetch ([b2958c4](https://github.com/semrel-extra/zx-bulk-release/commit/b2958c4d3de768bf993faad4816bbb7116d7bd78))
|
|
6
|
+
|
|
1
7
|
## [1.7.0](https://github.com/semrel-extra/zx-bulk-release/compare/v1.6.0...v1.7.0) (2022-06-25)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/README.md
CHANGED
package/package.json
CHANGED
package/src/main/js/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {fs} from 'zx-extra'
|
|
1
|
+
import {fs, ctx} from 'zx-extra'
|
|
2
2
|
import {topo} from '@semrel-extra/topo'
|
|
3
3
|
import {updateDeps} from './deps.js'
|
|
4
4
|
import {getSemanticChanges, resolvePkgVersion} from './analyze.js'
|
|
5
5
|
import {publish, getLatest} from './publish.js'
|
|
6
6
|
import {build} from './build.js'
|
|
7
7
|
|
|
8
|
-
export const run =
|
|
9
|
-
|
|
10
|
-
const {packages, queue} = await topo({cwd})
|
|
8
|
+
export const run = ({cwd = process.cwd(), env = process.env, flags = {}} = {}) => ctx(async ($) => {
|
|
9
|
+
const {packages, queue, root} = await topo({cwd})
|
|
11
10
|
const dryRun = flags['dry-run'] || flags.dryRun
|
|
12
11
|
|
|
13
12
|
for (let name of queue) {
|
|
@@ -26,9 +25,13 @@ export const run = async ({cwd = process.cwd(), env = process.env, flags = {}} =
|
|
|
26
25
|
console.log(`semantic changes of '${name}'`, changes)
|
|
27
26
|
|
|
28
27
|
pkg.build = await build(pkg, packages)
|
|
28
|
+
|
|
29
|
+
$.cwd = cwd
|
|
30
|
+
await $`yarn`
|
|
31
|
+
|
|
29
32
|
if (dryRun) continue
|
|
30
33
|
|
|
31
34
|
await fs.writeJson(pkg.manifestPath, pkg.manifest, {spaces: 2})
|
|
32
35
|
await publish(pkg, env)
|
|
33
36
|
}
|
|
34
|
-
}
|
|
37
|
+
})
|