zx-bulk-release 2.1.3 → 2.1.5
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 +10 -0
- package/package.json +1 -1
- package/src/main/js/build.js +2 -1
- package/src/main/js/config.js +1 -1
- package/src/main/js/npm.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.1.5](https://github.com/semrel-extra/zx-bulk-release/compare/v2.1.4...v2.1.5) (2023-03-22)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* fix: add `--ignore-failed-read` tar flag ([096134d](https://github.com/semrel-extra/zx-bulk-release/commit/096134dec953023373109d559b519efea2f41ca5))
|
|
5
|
+
|
|
6
|
+
## [2.1.4](https://github.com/semrel-extra/zx-bulk-release/compare/v2.1.3...v2.1.4) (2023-03-22)
|
|
7
|
+
|
|
8
|
+
### Fixes & improvements
|
|
9
|
+
* fix: separate `buildCmd` & `testCmd` directives ([1112d5c](https://github.com/semrel-extra/zx-bulk-release/commit/1112d5c4b16a7a1020402f77a33780627952be87))
|
|
10
|
+
|
|
1
11
|
## [2.1.3](https://github.com/semrel-extra/zx-bulk-release/compare/v2.1.2...v2.1.3) (2023-03-22)
|
|
2
12
|
|
|
3
13
|
### Fixes & improvements
|
package/package.json
CHANGED
package/src/main/js/build.js
CHANGED
|
@@ -13,8 +13,9 @@ export const build = async (pkg, packages, run = runCmd, self = build) => {
|
|
|
13
13
|
await fetchPkg(pkg)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
if (!pkg.fetched
|
|
16
|
+
if (!pkg.fetched) {
|
|
17
17
|
await run(pkg, 'buildCmd')
|
|
18
|
+
await run(pkg, 'testCmd')
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
pkg.built = true
|
package/src/main/js/config.js
CHANGED
|
@@ -30,7 +30,7 @@ export const getConfig = async (...cwds) =>
|
|
|
30
30
|
export const normalizeConfig = config => ({
|
|
31
31
|
...config,
|
|
32
32
|
npmFetch: config.npmFetch || config.fetch || config.fetchPkg,
|
|
33
|
-
buildCmd: config.
|
|
33
|
+
buildCmd: config.buildCmd || config.cmd
|
|
34
34
|
})
|
|
35
35
|
|
|
36
36
|
export const parseEnv = (env = process.env) => {
|
package/src/main/js/npm.js
CHANGED
|
@@ -11,7 +11,7 @@ export const fetchPkg = async (pkg, {env = $.env} = {}) => {
|
|
|
11
11
|
const {npmRegistry, npmToken, npmConfig} = parseEnv(env)
|
|
12
12
|
const bearerToken = getBearerToken(npmRegistry, npmToken, npmConfig)
|
|
13
13
|
const tarball = getTarballUrl(npmRegistry, pkg.name, pkg.version)
|
|
14
|
-
await $.raw`wget --timeout=10 --header='Authorization: ${bearerToken}' -qO- ${tarball} | tar -xvzk --strip-components=1 --exclude='package.json' -C ${cwd}`
|
|
14
|
+
await $.raw`wget --timeout=10 --header='Authorization: ${bearerToken}' -qO- ${tarball} | tar -xvzk --ignore-failed-read --strip-components=1 --exclude='package.json' -C ${cwd}`
|
|
15
15
|
|
|
16
16
|
pkg.fetched = true
|
|
17
17
|
} catch (e) {
|