@storm-software/workspace-tools 1.52.10 → 1.52.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.52.10",
3
+ "version": "1.52.11",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -19799,9 +19799,7 @@ function runExecutor(options, context) {
19799
19799
  const packageTxt = packageName === context.projectName ? `package "${packageName}"` : `package "${packageName}" from project "${context.projectName}"`;
19800
19800
  if (projectPackageJson.private === true) {
19801
19801
  console.warn(`Skipped ${packageTxt}, because it has \`"private": true\` in ${packageJsonPath}`);
19802
- return {
19803
- success: true
19804
- };
19802
+ return new Promise((resolve) => resolve({ success: true }));
19805
19803
  }
19806
19804
  const npmPublishCommandSegments = ["npm publish --json"];
19807
19805
  const npmViewCommandSegments = [`npm view ${packageName} versions dist-tags --json`];
@@ -19838,9 +19836,7 @@ function runExecutor(options, context) {
19838
19836
  console.warn(
19839
19837
  `Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
19840
19838
  );
19841
- return {
19842
- success: true
19843
- };
19839
+ return new Promise((resolve) => resolve({ success: true }));
19844
19840
  }
19845
19841
  if (resultJson.versions.includes(currentVersion)) {
19846
19842
  try {
@@ -19868,9 +19864,7 @@ function runExecutor(options, context) {
19868
19864
  `
19869
19865
  );
19870
19866
  }
19871
- return {
19872
- success: true
19873
- };
19867
+ return new Promise((resolve) => resolve({ success: true }));
19874
19868
  } catch (err) {
19875
19869
  try {
19876
19870
  const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
@@ -19886,18 +19880,14 @@ function runExecutor(options, context) {
19886
19880
  console.error("npm dist-tag add stdout:");
19887
19881
  console.error(JSON.stringify(stdoutData, null, 2));
19888
19882
  }
19889
- return {
19890
- success: false
19891
- };
19883
+ return new Promise((resolve) => resolve({ success: false }));
19892
19884
  }
19893
19885
  } catch (err2) {
19894
19886
  console.error(
19895
19887
  "Something unexpected went wrong when processing the npm dist-tag add output\n",
19896
19888
  err2
19897
19889
  );
19898
- return {
19899
- success: false
19900
- };
19890
+ return new Promise((resolve) => resolve({ success: false }));
19901
19891
  }
19902
19892
  }
19903
19893
  }
@@ -19908,9 +19898,7 @@ function runExecutor(options, context) {
19908
19898
  "Something unexpected went wrong when checking for existing dist-tags.\n",
19909
19899
  err
19910
19900
  );
19911
- return {
19912
- success: false
19913
- };
19901
+ return new Promise((resolve) => resolve({ success: false }));
19914
19902
  }
19915
19903
  }
19916
19904
  }
@@ -19937,9 +19925,7 @@ function runExecutor(options, context) {
19937
19925
  } else {
19938
19926
  console.log(`Published to ${registry} with tag "${tag}"`);
19939
19927
  }
19940
- return {
19941
- success: true
19942
- };
19928
+ return new Promise((resolve) => resolve({ success: true }));
19943
19929
  } catch (err) {
19944
19930
  try {
19945
19931
  const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
@@ -19954,17 +19940,13 @@ function runExecutor(options, context) {
19954
19940
  console.error("npm publish stdout:");
19955
19941
  console.error(JSON.stringify(stdoutData, null, 2));
19956
19942
  }
19957
- return {
19958
- success: false
19959
- };
19943
+ return new Promise((resolve) => resolve({ success: false }));
19960
19944
  } catch (err2) {
19961
19945
  console.error(
19962
19946
  "Something unexpected went wrong when processing the npm publish output\n",
19963
19947
  err2
19964
19948
  );
19965
- return {
19966
- success: false
19967
- };
19949
+ return new Promise((resolve) => resolve({ success: false }));
19968
19950
  }
19969
19951
  }
19970
19952
  }