@yarn-tool/publish-retry 2.0.0 → 2.0.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 +23 -0
- package/index.js +1 -2
- package/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.2](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/publish-retry@2.0.1...@yarn-tool/publish-retry@2.0.2) (2024-05-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🛠 Build System
|
|
11
|
+
|
|
12
|
+
* update typescript ([ffa656a](https://github.com/bluelovers/ws-yarn-workspaces/commit/ffa656aefe53966db445d52234eb0efe4651e3dd))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 📌 Dependencies
|
|
16
|
+
|
|
17
|
+
* update deps ([f731d88](https://github.com/bluelovers/ws-yarn-workspaces/commit/f731d88db6e63d180e2db2e493beb42e84eb8e16))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## [2.0.1](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/publish-retry@2.0.0...@yarn-tool/publish-retry@2.0.1) (2024-02-28)
|
|
22
|
+
|
|
23
|
+
**Note:** Version bump only for package @yarn-tool/publish-retry
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# [2.0.0](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/publish-retry@1.0.7...@yarn-tool/publish-retry@2.0.0) (2023-10-10)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @yarn-tool/publish-retry
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.publishRetry =
|
|
3
|
+
exports.publishRetry = publishRetry;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ws_pkg_list_1 = require("ws-pkg-list");
|
|
6
6
|
const bluebird_1 = tslib_1.__importDefault(require("bluebird"));
|
|
@@ -25,6 +25,5 @@ async function publishRetry(cwd) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
exports.publishRetry = publishRetry;
|
|
29
28
|
exports.default = publishRetry;
|
|
30
29
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAMA,oCA0BC;;AAhCD,6CAA4C;AAC5C,gEAAgC;AAChC,0DAAmE;AACnE,yDAAwD;AACxD,gDAA+D;AAExD,KAAK,UAAU,YAAY,CAAC,GAAY;IAE9C,OAAO,kBAAQ,CAAC,OAAO,CAAC,IAAA,2BAAa,EAAC,GAAG,CAAC,CAAC;SACzC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACxB,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;QAE9B,IAAI,IAAI,GAAG,MAAM,IAAA,uCAAwB,EAAC,GAAG,CAAC,CAAC;QAE/C,IAAI,CAAC,IAAI,EACT,CAAC;YACA,sBAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAEvE,MAAM,EAAE,GAAG,MAAM,IAAA,yBAAU,EAAC,KAAK,EAAE;gBAClC,SAAS;aACT,EAAE;gBACF,GAAG;gBACH,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YAEH,sBAAO,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;YAEjC,MAAM,kBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IAEF,CAAC,CAAC,CACF;AACF,CAAC;AAED,kBAAe,YAAY,CAAA","sourcesContent":["import { wsPkgListable } from 'ws-pkg-list';\nimport Bluebird from 'bluebird';\nimport { isPublishedByPackageJSON } from '@yarn-tool/is-published';\nimport { async as crossSpawn } from 'cross-spawn-extra';\nimport { consoleLogger as console } from 'debug-color2/logger';\n\nexport async function publishRetry(cwd?: string)\n{\n\treturn Bluebird.resolve(wsPkgListable(cwd))\n\t\t.mapSeries(async (row) => {\n\t\t\tconst { location: cwd } = row;\n\n\t\t\tlet bool = await isPublishedByPackageJSON(row);\n\n\t\t\tif (!bool)\n\t\t\t{\n\t\t\t\tconsole.bgYellow.red.info(`try to publish ${row.name}@${row.version}`);\n\n\t\t\t\tconst cp = await crossSpawn('npm', [\n\t\t\t\t\t'publish',\n\t\t\t\t], {\n\t\t\t\t\tcwd,\n\t\t\t\t\tstdio: 'inherit',\n\t\t\t\t});\n\n\t\t\t\tconsole.log(cp.status, cp.error);\n\n\t\t\t\tawait Bluebird.delay(1000);\n\t\t\t}\n\n\t\t})\n\t;\n}\n\nexport default publishRetry\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/publish-retry",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yarn",
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
"tsc:showConfig": "ynpx get-current-tsconfig -p"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@yarn-tool/is-published": "^2.0.
|
|
76
|
-
"cross-spawn-extra": "^
|
|
75
|
+
"@yarn-tool/is-published": "^2.0.2",
|
|
76
|
+
"cross-spawn-extra": "^3.0.3",
|
|
77
77
|
"debug-color2": "^1.3.2",
|
|
78
78
|
"tslib": ">=2",
|
|
79
|
-
"ws-pkg-list": "^3.0.
|
|
79
|
+
"ws-pkg-list": "^3.0.2"
|
|
80
80
|
},
|
|
81
81
|
"packageManager": "yarn@1.22.19",
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "089606f66f3c5501a8f3fdfc42e5a85b57f4d0e9"
|
|
86
86
|
}
|