@yarn-tool/publish-retry 1.0.7 → 2.0.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 CHANGED
@@ -3,6 +3,22 @@
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.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)
7
+
8
+ **Note:** Version bump only for package @yarn-tool/publish-retry
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+ **Note:** Version bump only for package @yarn-tool/publish-retry
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.0.7](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/publish-retry@1.0.6...@yarn-tool/publish-retry@1.0.7) (2022-12-09)
7
23
 
8
24
  **Note:** Version bump only for package @yarn-tool/publish-retry
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,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;YACC,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;SAC3B;IAEF,CAAC,CAAC,CACF;AACF,CAAC;AA1BD,oCA0BC;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"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,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;AA1BD,oCA0BC;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": "1.0.7",
3
+ "version": "2.0.1",
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": "^1.0.9",
75
+ "@yarn-tool/is-published": "^2.0.1",
76
76
  "cross-spawn-extra": "^2.1.0",
77
77
  "debug-color2": "^1.3.2",
78
78
  "tslib": ">=2",
79
- "ws-pkg-list": "^2.0.14"
79
+ "ws-pkg-list": "^3.0.1"
80
80
  },
81
81
  "packageManager": "yarn@1.22.19",
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "b13fc0899f6dc27420cc74cd6dc71347d5e1d511"
85
+ "gitHead": "920c374dcedfbddfb32ae1f1f14033deefd2f80f"
86
86
  }