@storm-software/workspace-tools 1.297.22 → 1.297.24

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.
@@ -23,8 +23,6 @@ var _prettier = require('prettier');
23
23
  var _prettierpluginpackagejson = require('prettier-plugin-packagejson'); var _prettierpluginpackagejson2 = _interopRequireDefault(_prettierpluginpackagejson);
24
24
 
25
25
  // src/executors/npm-publish/publish-status.ts
26
- var PUBLISH_VISIBILITY_ATTEMPTS = 360;
27
- var PUBLISH_VISIBILITY_INTERVAL_MS = 5e3;
28
26
  function commandOutputToString(output) {
29
27
  if (Buffer.isBuffer(output)) {
30
28
  return output.toString();
@@ -49,29 +47,6 @@ ${stdout}
49
47
  ${stderr}`;
50
48
  return output.includes("E409") && output.includes(`previously staged version "${version}"`);
51
49
  }
52
- async function waitForPublishedVersion({
53
- version,
54
- tag,
55
- gitHead,
56
- attempts = PUBLISH_VISIBILITY_ATTEMPTS,
57
- intervalMs = PUBLISH_VISIBILITY_INTERVAL_MS,
58
- getMetadata,
59
- wait = (milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds))
60
- }) {
61
- for (let attempt = 0; attempt < attempts; attempt++) {
62
- try {
63
- const metadata = await getMetadata();
64
- if (metadata.version === version && _optionalChain([metadata, 'access', _7 => _7["dist-tags"], 'optionalAccess', _8 => _8[tag]]) === version && metadata.gitHead === gitHead) {
65
- return true;
66
- }
67
- } catch (e2) {
68
- }
69
- if (attempt < attempts - 1) {
70
- await wait(intervalMs);
71
- }
72
- }
73
- return false;
74
- }
75
50
 
76
51
  // src/executors/npm-publish/executor.ts
77
52
  var LARGE_BUFFER = 1024 * 1e6;
@@ -97,7 +72,7 @@ async function npmPublishExecutorFn(options, context) {
97
72
  github.error("The `npm-publish` executor requires a `projectName`.");
98
73
  return { success: false };
99
74
  }
100
- const projectConfig = _optionalChain([context, 'access', _9 => _9.projectsConfigurations, 'optionalAccess', _10 => _10.projects, 'optionalAccess', _11 => _11[context.projectName]]);
75
+ const projectConfig = _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'optionalAccess', _8 => _8.projects, 'optionalAccess', _9 => _9[context.projectName]]);
101
76
  if (!projectConfig) {
102
77
  github.error(
103
78
  `Could not find project configuration for \`${context.projectName}\``
@@ -108,7 +83,7 @@ async function npmPublishExecutorFn(options, context) {
108
83
  context.root,
109
84
  options.packageRoot || _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", projectConfig.root)
110
85
  );
111
- const projectRoot = _optionalChain([context, 'access', _12 => _12.projectsConfigurations, 'access', _13 => _13.projects, 'access', _14 => _14[context.projectName], 'optionalAccess', _15 => _15.root]) ? _chunkCQDBLKPFjs.joinPaths.call(void 0,
86
+ const projectRoot = _optionalChain([context, 'access', _10 => _10.projectsConfigurations, 'access', _11 => _11.projects, 'access', _12 => _12[context.projectName], 'optionalAccess', _13 => _13.root]) ? _chunkCQDBLKPFjs.joinPaths.call(void 0,
112
87
  context.root,
113
88
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
114
89
  context.projectsConfigurations.projects[context.projectName].root
@@ -183,9 +158,6 @@ async function npmPublishExecutorFn(options, context) {
183
158
  }
184
159
  await replaceDepsAliases(jiti, packageRoot, context.root, packageManager);
185
160
  await _chunkVXOPWQTJjs.addPackageJsonGitHead.call(void 0, packageRoot);
186
- const publishPackageJson = JSON.parse(
187
- await _promises.readFile.call(void 0, packageJsonPath, "utf8")
188
- );
189
161
  const currentVersion = options.version || packageJson.version;
190
162
  const npmPublishCommandSegments = [`npm publish --json`];
191
163
  const npmViewCommandSegments = [
@@ -229,128 +201,36 @@ async function npmPublishExecutorFn(options, context) {
229
201
  if (tag) {
230
202
  npmPublishCommandSegments.push(`--tag="${tag}" `);
231
203
  }
232
- const npmViewPublishedVersionCommandSegments = [
233
- `npm view ${packageName}@${currentVersion} version dist-tags gitHead --json`
234
- ];
235
- if (registry) {
236
- npmViewPublishedVersionCommandSegments.push(`--registry="${registry}" `);
237
- }
238
- const waitForRegistryVisibility = () => waitForPublishedVersion({
239
- version: currentVersion,
240
- tag,
241
- gitHead: publishPackageJson.gitHead,
242
- getMetadata: () => {
243
- const result = _child_process.execSync.call(void 0,
244
- npmViewPublishedVersionCommandSegments.join(" "),
245
- {
246
- cwd: packageRoot,
247
- env: {
248
- NPM_ID_TOKEN: token,
249
- ...process.env,
250
- FORCE_COLOR: "true"
251
- },
252
- maxBuffer: LARGE_BUFFER,
253
- killSignal: "SIGTERM"
254
- }
255
- );
256
- const parsed = JSON.parse(result.toString());
257
- return Array.isArray(parsed) ? parsed[parsed.length - 1] || {} : parsed;
258
- }
259
- });
260
204
  if (!isDryRun) {
261
205
  try {
262
- try {
263
- const result = _child_process.execSync.call(void 0, npmViewCommandSegments.join(" "), {
264
- cwd: packageRoot,
265
- env: {
266
- NPM_ID_TOKEN: token,
267
- ...process.env,
268
- FORCE_COLOR: "true"
269
- },
270
- maxBuffer: LARGE_BUFFER,
271
- killSignal: "SIGTERM"
272
- });
273
- const resultJson = JSON.parse(result.toString());
274
- const distTags = resultJson["dist-tags"] || {};
275
- if (distTags[tag] === currentVersion) {
276
- console.warn(
277
- `Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
278
- );
279
- return { success: true };
280
- }
281
- } catch (err) {
282
- console.debug(
283
- `An error occurred while checking for existing dist-tags. Please note: if this is the first time this package has been published to npm, this can be ignored.
284
-
285
- Error: ${JSON.stringify(
286
- err,
287
- null,
288
- 2
289
- )}`
206
+ const result = _child_process.execSync.call(void 0, npmViewCommandSegments.join(" "), {
207
+ cwd: packageRoot,
208
+ env: {
209
+ NPM_ID_TOKEN: token,
210
+ ...process.env,
211
+ FORCE_COLOR: "true"
212
+ },
213
+ maxBuffer: LARGE_BUFFER,
214
+ killSignal: "SIGTERM"
215
+ });
216
+ const resultJson = JSON.parse(result.toString());
217
+ const distTags = resultJson["dist-tags"] || {};
218
+ if (distTags[tag] === currentVersion) {
219
+ console.warn(
220
+ `Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
290
221
  );
291
- }
292
- try {
293
- if (!isDryRun) {
294
- const command = `npm dist-tag add ${packageName}@${currentVersion} ${tag} --registry="${registry}" `;
295
- console.debug(
296
- `Adding the dist-tag ${tag} - preparing to run the following: ${command}`
297
- );
298
- const result = _child_process.execSync.call(void 0, command, {
299
- cwd: packageRoot,
300
- env: {
301
- NPM_ID_TOKEN: token,
302
- ...process.env,
303
- FORCE_COLOR: "true"
304
- },
305
- maxBuffer: LARGE_BUFFER,
306
- killSignal: "SIGTERM"
307
- });
308
- console.info(
309
- `Added the dist-tag ${tag} to v${currentVersion} for registry "${registry}".
310
-
311
- Execution response: ${result.toString()}`
312
- );
313
- } else {
314
- console.info(
315
- `Would have added the dist-tag ${tag} to v${currentVersion} for registry "${registry}", but [dry-run] was set.
316
- `
317
- );
318
- }
319
222
  return { success: true };
320
- } catch (err) {
321
- try {
322
- const stdoutData = JSON.parse(_optionalChain([err, 'access', _16 => _16.stdout, 'optionalAccess', _17 => _17.toString, 'call', _18 => _18()]) || "{}");
323
- if (_optionalChain([stdoutData, 'optionalAccess', _19 => _19.error]) && !(_optionalChain([stdoutData, 'access', _20 => _20.error, 'optionalAccess', _21 => _21.code, 'optionalAccess', _22 => _22.includes, 'call', _23 => _23("E404")]) && _optionalChain([stdoutData, 'access', _24 => _24.error, 'optionalAccess', _25 => _25.summary, 'optionalAccess', _26 => _26.includes, 'call', _27 => _27("no such package available")])) && !(_optionalChain([err, 'access', _28 => _28.stderr, 'optionalAccess', _29 => _29.toString, 'call', _30 => _30(), 'access', _31 => _31.includes, 'call', _32 => _32("E404")]) && _optionalChain([err, 'access', _33 => _33.stderr, 'optionalAccess', _34 => _34.toString, 'call', _35 => _35(), 'access', _36 => _36.includes, 'call', _37 => _37("no such package available")]))) {
324
- const errorMessage = `An unexpected error occured while running the npm dist-tag add command:
325
-
326
- ${_optionalChain([stdoutData, 'optionalAccess', _38 => _38.error, 'optionalAccess', _39 => _39.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _40 => _40.error, 'optionalAccess', _41 => _41.summary])}${_optionalChain([stdoutData, 'optionalAccess', _42 => _42.error, 'optionalAccess', _43 => _43.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _44 => _44.error, 'optionalAccess', _45 => _45.code])})` : ""}
327
- ` : ""}${_optionalChain([stdoutData, 'optionalAccess', _46 => _46.error, 'optionalAccess', _47 => _47.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _48 => _48.error, 'optionalAccess', _49 => _49.detail])}
328
- ` : ""}`;
329
- github.error(errorMessage);
330
- return { success: false };
331
- }
332
- } catch (err2) {
333
- const stdoutData = JSON.parse(_optionalChain([err2, 'access', _50 => _50.stdout, 'optionalAccess', _51 => _51.toString, 'call', _52 => _52()]) || "{}");
334
- const errorMessage = `An unexpected error occured while processing the npm dist-tag add output:
335
-
336
- ${_optionalChain([stdoutData, 'optionalAccess', _53 => _53.error, 'optionalAccess', _54 => _54.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _55 => _55.error, 'optionalAccess', _56 => _56.summary])}${_optionalChain([stdoutData, 'optionalAccess', _57 => _57.error, 'optionalAccess', _58 => _58.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _59 => _59.error, 'optionalAccess', _60 => _60.code])})` : ""}
337
- ` : ""}${_optionalChain([stdoutData, 'optionalAccess', _61 => _61.error, 'optionalAccess', _62 => _62.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _63 => _63.error, 'optionalAccess', _64 => _64.detail])}
338
- ` : ""}`;
339
- github.error(errorMessage);
340
- return { success: false };
341
- }
342
223
  }
343
224
  } catch (err) {
344
- const stdoutData = JSON.parse(_optionalChain([err, 'access', _65 => _65.stdout, 'optionalAccess', _66 => _66.toString, 'call', _67 => _67()]) || "{}");
345
- if (!(_optionalChain([stdoutData, 'access', _68 => _68.error, 'optionalAccess', _69 => _69.code, 'optionalAccess', _70 => _70.includes, 'call', _71 => _71("E404")]) && _optionalChain([stdoutData, 'access', _72 => _72.error, 'optionalAccess', _73 => _73.summary, 'optionalAccess', _74 => _74.toLowerCase, 'call', _75 => _75(), 'access', _76 => _76.includes, 'call', _77 => _77("not found")])) && !(_optionalChain([err, 'access', _78 => _78.stderr, 'optionalAccess', _79 => _79.toString, 'call', _80 => _80(), 'access', _81 => _81.includes, 'call', _82 => _82("E404")]) && _optionalChain([err, 'access', _83 => _83.stderr, 'optionalAccess', _84 => _84.toString, 'call', _85 => _85(), 'access', _86 => _86.toLowerCase, 'call', _87 => _87(), 'access', _88 => _88.includes, 'call', _89 => _89("not found")]))) {
346
- const errorMessage = `An unexpected error occured while checking for existing dist-tags:
225
+ console.debug(
226
+ `An error occurred while checking for existing dist-tags. Please note: if this is the first time this package has been published to npm, this can be ignored.
347
227
 
348
- ${_optionalChain([stdoutData, 'optionalAccess', _90 => _90.error, 'optionalAccess', _91 => _91.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _92 => _92.error, 'optionalAccess', _93 => _93.summary])}${_optionalChain([stdoutData, 'optionalAccess', _94 => _94.error, 'optionalAccess', _95 => _95.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _96 => _96.error, 'optionalAccess', _97 => _97.code])})` : ""}
349
- ` : ""}${_optionalChain([stdoutData, 'optionalAccess', _98 => _98.error, 'optionalAccess', _99 => _99.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _100 => _100.error, 'optionalAccess', _101 => _101.detail])}
350
- ` : ""}`;
351
- github.error(errorMessage);
352
- return { success: false };
353
- }
228
+ Error: ${JSON.stringify(
229
+ err,
230
+ null,
231
+ 2
232
+ )}`
233
+ );
354
234
  }
355
235
  }
356
236
  try {
@@ -381,32 +261,21 @@ Execution response: ${result.toString()}` : ""}`
381
261
 
382
262
  Execution response: ${result.toString()}` : ""}`
383
263
  );
384
- if (!await waitForRegistryVisibility()) {
385
- github.error(
386
- `npm publish completed, but ${packageName}@${currentVersion} did not become visible in ${registry} with tag "${tag}" before the processing timeout.`
387
- );
388
- return { success: false };
389
- }
390
264
  }
391
265
  return { success: true };
392
266
  } catch (err) {
393
267
  if (!isDryRun && isPreviouslyStagedVersionError(err, currentVersion)) {
394
268
  console.warn(
395
- `npm reported that ${packageName}@${currentVersion} was previously staged. Waiting for npm to finish processing the package.`
269
+ `npm reported that ${packageName}@${currentVersion} was previously staged. Treating it as published.`
396
270
  );
397
- if (await waitForRegistryVisibility()) {
398
- console.info(
399
- `Confirmed ${packageName}@${currentVersion} is available in ${registry} with tag "${tag}" and the expected gitHead.`
400
- );
401
- return { success: true };
402
- }
271
+ return { success: true };
403
272
  }
404
273
  try {
405
- const stdoutData = JSON.parse(_optionalChain([err, 'access', _102 => _102.stdout, 'optionalAccess', _103 => _103.toString, 'call', _104 => _104()]) || "{}");
274
+ const stdoutData = JSON.parse(_optionalChain([err, 'access', _14 => _14.stdout, 'optionalAccess', _15 => _15.toString, 'call', _16 => _16()]) || "{}");
406
275
  const errorMessage = `An error occurred while publishing the npm package:
407
276
 
408
- ${_optionalChain([stdoutData, 'optionalAccess', _105 => _105.error, 'optionalAccess', _106 => _106.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _107 => _107.error, 'optionalAccess', _108 => _108.summary])}${_optionalChain([stdoutData, 'optionalAccess', _109 => _109.error, 'optionalAccess', _110 => _110.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _111 => _111.error, 'optionalAccess', _112 => _112.code])})` : ""}
409
- ` : ""}${_optionalChain([stdoutData, 'optionalAccess', _113 => _113.error, 'optionalAccess', _114 => _114.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _115 => _115.error, 'optionalAccess', _116 => _116.detail])}
277
+ ${_optionalChain([stdoutData, 'optionalAccess', _17 => _17.error, 'optionalAccess', _18 => _18.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _19 => _19.error, 'optionalAccess', _20 => _20.summary])}${_optionalChain([stdoutData, 'optionalAccess', _21 => _21.error, 'optionalAccess', _22 => _22.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _23 => _23.error, 'optionalAccess', _24 => _24.code])})` : ""}
278
+ ` : ""}${_optionalChain([stdoutData, 'optionalAccess', _25 => _25.error, 'optionalAccess', _26 => _26.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _27 => _27.error, 'optionalAccess', _28 => _28.detail])}
410
279
  ` : ""}`;
411
280
  github.error(errorMessage);
412
281
  return { success: false };
@@ -23,8 +23,6 @@ import { format } from "prettier";
23
23
  import prettierPlugin from "prettier-plugin-packagejson";
24
24
 
25
25
  // src/executors/npm-publish/publish-status.ts
26
- var PUBLISH_VISIBILITY_ATTEMPTS = 360;
27
- var PUBLISH_VISIBILITY_INTERVAL_MS = 5e3;
28
26
  function commandOutputToString(output) {
29
27
  if (Buffer.isBuffer(output)) {
30
28
  return output.toString();
@@ -49,29 +47,6 @@ ${stdout}
49
47
  ${stderr}`;
50
48
  return output.includes("E409") && output.includes(`previously staged version "${version}"`);
51
49
  }
52
- async function waitForPublishedVersion({
53
- version,
54
- tag,
55
- gitHead,
56
- attempts = PUBLISH_VISIBILITY_ATTEMPTS,
57
- intervalMs = PUBLISH_VISIBILITY_INTERVAL_MS,
58
- getMetadata,
59
- wait = (milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds))
60
- }) {
61
- for (let attempt = 0; attempt < attempts; attempt++) {
62
- try {
63
- const metadata = await getMetadata();
64
- if (metadata.version === version && metadata["dist-tags"]?.[tag] === version && metadata.gitHead === gitHead) {
65
- return true;
66
- }
67
- } catch {
68
- }
69
- if (attempt < attempts - 1) {
70
- await wait(intervalMs);
71
- }
72
- }
73
- return false;
74
- }
75
50
 
76
51
  // src/executors/npm-publish/executor.ts
77
52
  var LARGE_BUFFER = 1024 * 1e6;
@@ -183,9 +158,6 @@ async function npmPublishExecutorFn(options, context) {
183
158
  }
184
159
  await replaceDepsAliases(jiti, packageRoot, context.root, packageManager);
185
160
  await addPackageJsonGitHead(packageRoot);
186
- const publishPackageJson = JSON.parse(
187
- await readFile(packageJsonPath, "utf8")
188
- );
189
161
  const currentVersion = options.version || packageJson.version;
190
162
  const npmPublishCommandSegments = [`npm publish --json`];
191
163
  const npmViewCommandSegments = [
@@ -229,128 +201,36 @@ async function npmPublishExecutorFn(options, context) {
229
201
  if (tag) {
230
202
  npmPublishCommandSegments.push(`--tag="${tag}" `);
231
203
  }
232
- const npmViewPublishedVersionCommandSegments = [
233
- `npm view ${packageName}@${currentVersion} version dist-tags gitHead --json`
234
- ];
235
- if (registry) {
236
- npmViewPublishedVersionCommandSegments.push(`--registry="${registry}" `);
237
- }
238
- const waitForRegistryVisibility = () => waitForPublishedVersion({
239
- version: currentVersion,
240
- tag,
241
- gitHead: publishPackageJson.gitHead,
242
- getMetadata: () => {
243
- const result = execSync(
244
- npmViewPublishedVersionCommandSegments.join(" "),
245
- {
246
- cwd: packageRoot,
247
- env: {
248
- NPM_ID_TOKEN: token,
249
- ...process.env,
250
- FORCE_COLOR: "true"
251
- },
252
- maxBuffer: LARGE_BUFFER,
253
- killSignal: "SIGTERM"
254
- }
255
- );
256
- const parsed = JSON.parse(result.toString());
257
- return Array.isArray(parsed) ? parsed[parsed.length - 1] || {} : parsed;
258
- }
259
- });
260
204
  if (!isDryRun) {
261
205
  try {
262
- try {
263
- const result = execSync(npmViewCommandSegments.join(" "), {
264
- cwd: packageRoot,
265
- env: {
266
- NPM_ID_TOKEN: token,
267
- ...process.env,
268
- FORCE_COLOR: "true"
269
- },
270
- maxBuffer: LARGE_BUFFER,
271
- killSignal: "SIGTERM"
272
- });
273
- const resultJson = JSON.parse(result.toString());
274
- const distTags = resultJson["dist-tags"] || {};
275
- if (distTags[tag] === currentVersion) {
276
- console.warn(
277
- `Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
278
- );
279
- return { success: true };
280
- }
281
- } catch (err) {
282
- console.debug(
283
- `An error occurred while checking for existing dist-tags. Please note: if this is the first time this package has been published to npm, this can be ignored.
284
-
285
- Error: ${JSON.stringify(
286
- err,
287
- null,
288
- 2
289
- )}`
206
+ const result = execSync(npmViewCommandSegments.join(" "), {
207
+ cwd: packageRoot,
208
+ env: {
209
+ NPM_ID_TOKEN: token,
210
+ ...process.env,
211
+ FORCE_COLOR: "true"
212
+ },
213
+ maxBuffer: LARGE_BUFFER,
214
+ killSignal: "SIGTERM"
215
+ });
216
+ const resultJson = JSON.parse(result.toString());
217
+ const distTags = resultJson["dist-tags"] || {};
218
+ if (distTags[tag] === currentVersion) {
219
+ console.warn(
220
+ `Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
290
221
  );
291
- }
292
- try {
293
- if (!isDryRun) {
294
- const command = `npm dist-tag add ${packageName}@${currentVersion} ${tag} --registry="${registry}" `;
295
- console.debug(
296
- `Adding the dist-tag ${tag} - preparing to run the following: ${command}`
297
- );
298
- const result = execSync(command, {
299
- cwd: packageRoot,
300
- env: {
301
- NPM_ID_TOKEN: token,
302
- ...process.env,
303
- FORCE_COLOR: "true"
304
- },
305
- maxBuffer: LARGE_BUFFER,
306
- killSignal: "SIGTERM"
307
- });
308
- console.info(
309
- `Added the dist-tag ${tag} to v${currentVersion} for registry "${registry}".
310
-
311
- Execution response: ${result.toString()}`
312
- );
313
- } else {
314
- console.info(
315
- `Would have added the dist-tag ${tag} to v${currentVersion} for registry "${registry}", but [dry-run] was set.
316
- `
317
- );
318
- }
319
222
  return { success: true };
320
- } catch (err) {
321
- try {
322
- const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
323
- if (stdoutData?.error && !(stdoutData.error?.code?.includes("E404") && stdoutData.error?.summary?.includes("no such package available")) && !(err.stderr?.toString().includes("E404") && err.stderr?.toString().includes("no such package available"))) {
324
- const errorMessage = `An unexpected error occured while running the npm dist-tag add command:
325
-
326
- ${stdoutData?.error?.summary ? `Summary: ${stdoutData?.error?.summary}${stdoutData?.error?.code ? ` (${stdoutData?.error?.code})` : ""}
327
- ` : ""}${stdoutData?.error?.detail ? `Detail: ${stdoutData?.error?.detail}
328
- ` : ""}`;
329
- github.error(errorMessage);
330
- return { success: false };
331
- }
332
- } catch (err2) {
333
- const stdoutData = JSON.parse(err2.stdout?.toString() || "{}");
334
- const errorMessage = `An unexpected error occured while processing the npm dist-tag add output:
335
-
336
- ${stdoutData?.error?.summary ? `Summary: ${stdoutData?.error?.summary}${stdoutData?.error?.code ? ` (${stdoutData?.error?.code})` : ""}
337
- ` : ""}${stdoutData?.error?.detail ? `Detail: ${stdoutData?.error?.detail}
338
- ` : ""}`;
339
- github.error(errorMessage);
340
- return { success: false };
341
- }
342
223
  }
343
224
  } catch (err) {
344
- const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
345
- if (!(stdoutData.error?.code?.includes("E404") && stdoutData.error?.summary?.toLowerCase().includes("not found")) && !(err.stderr?.toString().includes("E404") && err.stderr?.toString().toLowerCase().includes("not found"))) {
346
- const errorMessage = `An unexpected error occured while checking for existing dist-tags:
225
+ console.debug(
226
+ `An error occurred while checking for existing dist-tags. Please note: if this is the first time this package has been published to npm, this can be ignored.
347
227
 
348
- ${stdoutData?.error?.summary ? `Summary: ${stdoutData?.error?.summary}${stdoutData?.error?.code ? ` (${stdoutData?.error?.code})` : ""}
349
- ` : ""}${stdoutData?.error?.detail ? `Detail: ${stdoutData?.error?.detail}
350
- ` : ""}`;
351
- github.error(errorMessage);
352
- return { success: false };
353
- }
228
+ Error: ${JSON.stringify(
229
+ err,
230
+ null,
231
+ 2
232
+ )}`
233
+ );
354
234
  }
355
235
  }
356
236
  try {
@@ -381,25 +261,14 @@ Execution response: ${result.toString()}` : ""}`
381
261
 
382
262
  Execution response: ${result.toString()}` : ""}`
383
263
  );
384
- if (!await waitForRegistryVisibility()) {
385
- github.error(
386
- `npm publish completed, but ${packageName}@${currentVersion} did not become visible in ${registry} with tag "${tag}" before the processing timeout.`
387
- );
388
- return { success: false };
389
- }
390
264
  }
391
265
  return { success: true };
392
266
  } catch (err) {
393
267
  if (!isDryRun && isPreviouslyStagedVersionError(err, currentVersion)) {
394
268
  console.warn(
395
- `npm reported that ${packageName}@${currentVersion} was previously staged. Waiting for npm to finish processing the package.`
269
+ `npm reported that ${packageName}@${currentVersion} was previously staged. Treating it as published.`
396
270
  );
397
- if (await waitForRegistryVisibility()) {
398
- console.info(
399
- `Confirmed ${packageName}@${currentVersion} is available in ${registry} with tag "${tag}" and the expected gitHead.`
400
- );
401
- return { success: true };
402
- }
271
+ return { success: true };
403
272
  }
404
273
  try {
405
274
  const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
package/dist/executors.js CHANGED
@@ -8,7 +8,7 @@ var _chunkZWUGCEBZjs = require('./chunk-ZWUGCEBZ.js');
8
8
 
9
9
 
10
10
  var _chunkVKLLVYQ5js = require('./chunk-VKLLVYQ5.js');
11
- require('./chunk-QKSR4AXD.js');
11
+ require('./chunk-BT6AO5S2.js');
12
12
 
13
13
 
14
14
  var _chunk65C6CGV3js = require('./chunk-65C6CGV3.js');
@@ -18,10 +18,10 @@ var _chunkULONYXYFjs = require('./chunk-ULONYXYF.js');
18
18
 
19
19
 
20
20
  var _chunk3AHXYCKAjs = require('./chunk-3AHXYCKA.js');
21
+ require('./chunk-KCQIASWP.js');
21
22
 
22
23
 
23
24
  var _chunkN5LZIOWWjs = require('./chunk-N5LZIOWW.js');
24
- require('./chunk-KCQIASWP.js');
25
25
 
26
26
 
27
27
  var _chunkIV2QQRXOjs = require('./chunk-IV2QQRXO.js');
@@ -30,10 +30,10 @@ var _chunkIV2QQRXOjs = require('./chunk-IV2QQRXO.js');
30
30
  var _chunkKDZH66U5js = require('./chunk-KDZH66U5.js');
31
31
 
32
32
 
33
- var _chunk6W7UEKUNjs = require('./chunk-6W7UEKUN.js');
33
+ var _chunkXXCBFZB6js = require('./chunk-XXCBFZB6.js');
34
34
 
35
35
 
36
- var _chunkXXCBFZB6js = require('./chunk-XXCBFZB6.js');
36
+ var _chunk6W7UEKUNjs = require('./chunk-6W7UEKUN.js');
37
37
 
38
38
 
39
39
  var _chunkWKCSKEFYjs = require('./chunk-WKCSKEFY.js');
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  napiExecutor
10
10
  } from "./chunk-U6J67ZUE.mjs";
11
- import "./chunk-2VEZJFVM.mjs";
11
+ import "./chunk-IM4QRS5J.mjs";
12
12
  import {
13
13
  sizeLimitExecutorFn
14
14
  } from "./chunk-I7RM7R7C.mjs";
@@ -18,22 +18,22 @@ import {
18
18
  import {
19
19
  getRegistryVersion
20
20
  } from "./chunk-QQ64FCAP.mjs";
21
+ import "./chunk-52ZDVDIY.mjs";
21
22
  import {
22
23
  esbuildExecutorFn
23
24
  } from "./chunk-XLOJK63P.mjs";
24
- import "./chunk-52ZDVDIY.mjs";
25
25
  import {
26
26
  cargoCheckExecutor
27
27
  } from "./chunk-36N55IVK.mjs";
28
28
  import {
29
29
  cargoClippyExecutor
30
30
  } from "./chunk-UZ25NC7M.mjs";
31
- import {
32
- cargoDocExecutor
33
- } from "./chunk-HGU4RMLB.mjs";
34
31
  import {
35
32
  cargoFormatExecutor
36
33
  } from "./chunk-LYZ5ACPN.mjs";
34
+ import {
35
+ cargoDocExecutor
36
+ } from "./chunk-HGU4RMLB.mjs";
37
37
  import {
38
38
  cargoBuildExecutor
39
39
  } from "./chunk-XMATGAG4.mjs";
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ var _chunkZWUGCEBZjs = require('./chunk-ZWUGCEBZ.js');
52
52
 
53
53
 
54
54
  var _chunkVKLLVYQ5js = require('./chunk-VKLLVYQ5.js');
55
- require('./chunk-QKSR4AXD.js');
55
+ require('./chunk-BT6AO5S2.js');
56
56
 
57
57
 
58
58
  var _chunk65C6CGV3js = require('./chunk-65C6CGV3.js');
@@ -62,10 +62,10 @@ var _chunkULONYXYFjs = require('./chunk-ULONYXYF.js');
62
62
 
63
63
 
64
64
  var _chunk3AHXYCKAjs = require('./chunk-3AHXYCKA.js');
65
+ require('./chunk-KCQIASWP.js');
65
66
 
66
67
 
67
68
  var _chunkN5LZIOWWjs = require('./chunk-N5LZIOWW.js');
68
- require('./chunk-KCQIASWP.js');
69
69
 
70
70
 
71
71
  var _chunkIV2QQRXOjs = require('./chunk-IV2QQRXO.js');
@@ -74,10 +74,10 @@ var _chunkIV2QQRXOjs = require('./chunk-IV2QQRXO.js');
74
74
  var _chunkKDZH66U5js = require('./chunk-KDZH66U5.js');
75
75
 
76
76
 
77
- var _chunk6W7UEKUNjs = require('./chunk-6W7UEKUN.js');
77
+ var _chunkXXCBFZB6js = require('./chunk-XXCBFZB6.js');
78
78
 
79
79
 
80
- var _chunkXXCBFZB6js = require('./chunk-XXCBFZB6.js');
80
+ var _chunk6W7UEKUNjs = require('./chunk-6W7UEKUN.js');
81
81
 
82
82
 
83
83
  var _chunkWKCSKEFYjs = require('./chunk-WKCSKEFY.js');
package/dist/index.mjs CHANGED
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  napiExecutor
54
54
  } from "./chunk-U6J67ZUE.mjs";
55
- import "./chunk-2VEZJFVM.mjs";
55
+ import "./chunk-IM4QRS5J.mjs";
56
56
  import {
57
57
  sizeLimitExecutorFn
58
58
  } from "./chunk-I7RM7R7C.mjs";
@@ -62,22 +62,22 @@ import {
62
62
  import {
63
63
  getRegistryVersion
64
64
  } from "./chunk-QQ64FCAP.mjs";
65
+ import "./chunk-52ZDVDIY.mjs";
65
66
  import {
66
67
  esbuildExecutorFn
67
68
  } from "./chunk-XLOJK63P.mjs";
68
- import "./chunk-52ZDVDIY.mjs";
69
69
  import {
70
70
  cargoCheckExecutor
71
71
  } from "./chunk-36N55IVK.mjs";
72
72
  import {
73
73
  cargoClippyExecutor
74
74
  } from "./chunk-UZ25NC7M.mjs";
75
- import {
76
- cargoDocExecutor
77
- } from "./chunk-HGU4RMLB.mjs";
78
75
  import {
79
76
  cargoFormatExecutor
80
77
  } from "./chunk-LYZ5ACPN.mjs";
78
+ import {
79
+ cargoDocExecutor
80
+ } from "./chunk-HGU4RMLB.mjs";
81
81
  import {
82
82
  cargoBuildExecutor
83
83
  } from "./chunk-XMATGAG4.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQKSR4AXDjs = require('../../../chunk-QKSR4AXD.js');
3
+ var _chunkBT6AO5S2js = require('../../../chunk-BT6AO5S2.js');
4
4
  require('../../../chunk-3MXZ2RJF.js');
5
5
  require('../../../chunk-H42WSDYM.js');
6
6
  require('../../../chunk-VXOPWQTJ.js');
@@ -12,4 +12,4 @@ require('../../../chunk-GUI4USIO.js');
12
12
  require('../../../chunk-CQDBLKPF.js');
13
13
 
14
14
 
15
- exports.default = _chunkQKSR4AXDjs.npmPublishExecutorFn;
15
+ exports.default = _chunkBT6AO5S2js.npmPublishExecutorFn;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  npmPublishExecutorFn
3
- } from "../../../chunk-2VEZJFVM.mjs";
3
+ } from "../../../chunk-IM4QRS5J.mjs";
4
4
  import "../../../chunk-EXRSULNO.mjs";
5
5
  import "../../../chunk-JZYF4DSL.mjs";
6
6
  import "../../../chunk-G4DPDEL3.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.297.22",
3
+ "version": "1.297.24",
4
4
  "description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
5
5
  "keywords": [
6
6
  "monorepo",
@@ -238,11 +238,11 @@
238
238
  "@size-limit/esbuild": "^11.2.0",
239
239
  "@size-limit/esbuild-why": "^11.2.0",
240
240
  "@size-limit/file": "^11.2.0",
241
- "@storm-software/config": "^1.138.88",
242
- "@storm-software/config-tools": "^1.190.152",
243
- "@storm-software/npm-tools": "^0.6.272",
244
- "@storm-software/prettier": "^0.59.205",
245
- "@storm-software/tsdown": "^0.45.313",
241
+ "@storm-software/config": "1.138.90",
242
+ "@storm-software/config-tools": "1.190.154",
243
+ "@storm-software/npm-tools": "0.6.274",
244
+ "@storm-software/prettier": "0.59.207",
245
+ "@storm-software/tsdown": "0.45.315",
246
246
  "defu": "^6.1.7",
247
247
  "esbuild": "^0.25.12",
248
248
  "fs-extra": "^11.4.1",
@@ -261,11 +261,11 @@
261
261
  },
262
262
  "devDependencies": {
263
263
  "@napi-rs/cli": "^3.10.9",
264
- "@storm-software/bun-tools": "^0.0.65",
265
- "@storm-software/esbuild": "^0.53.313",
266
- "@storm-software/package-constants": "^0.1.164",
267
- "@storm-software/pnpm-tools": "^0.7.166",
268
- "@storm-software/unbuild": "^0.57.313",
264
+ "@storm-software/bun-tools": "0.0.67",
265
+ "@storm-software/esbuild": "0.53.315",
266
+ "@storm-software/package-constants": "0.1.166",
267
+ "@storm-software/pnpm-tools": "0.7.168",
268
+ "@storm-software/unbuild": "0.57.315",
269
269
  "@types/micromatch": "^4.0.10",
270
270
  "@types/node": "^25.9.9",
271
271
  "@types/semver": "^7.8.0",
@@ -294,5 +294,5 @@
294
294
  "publishConfig": { "access": "public" },
295
295
  "executors": "./executors.json",
296
296
  "generators": "./generators.json",
297
- "gitHead": "3024fb5d376756064c200c95f2bc9978735d2a71"
297
+ "gitHead": "669ee54da1367f7049b6e5b5f6e27ab208940a47"
298
298
  }