@storm-software/workspace-tools 1.89.1 → 1.89.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 +7 -0
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/npm-publish/executor.js +22 -0
package/package.json
CHANGED
|
@@ -100,6 +100,7 @@ ${err}
|
|
|
100
100
|
|
|
101
101
|
Note: If this is the first time this package has been published to NPM, this can be ignored.`
|
|
102
102
|
);
|
|
103
|
+
console.log("");
|
|
103
104
|
}
|
|
104
105
|
try {
|
|
105
106
|
if (!isDryRun) {
|
|
@@ -126,7 +127,18 @@ Note: If this is the first time this package has been published to NPM, this can
|
|
|
126
127
|
}
|
|
127
128
|
return new Promise((resolve) => resolve({ success: true }));
|
|
128
129
|
} catch (err) {
|
|
130
|
+
console.log("");
|
|
131
|
+
console.error("An error occured checking existing dist-tags.");
|
|
132
|
+
console.error(err);
|
|
133
|
+
console.log("");
|
|
129
134
|
try {
|
|
135
|
+
console.warn(
|
|
136
|
+
`An error occurred while checking for existing dist-tags
|
|
137
|
+
${err}
|
|
138
|
+
|
|
139
|
+
Note: If this is the first time this package has been published to NPM, this can be ignored.`
|
|
140
|
+
);
|
|
141
|
+
console.log("");
|
|
130
142
|
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
131
143
|
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"))) {
|
|
132
144
|
console.error(
|
|
@@ -154,6 +166,12 @@ ${err2}`
|
|
|
154
166
|
}
|
|
155
167
|
}
|
|
156
168
|
} catch (err) {
|
|
169
|
+
console.log("");
|
|
170
|
+
console.error(
|
|
171
|
+
"An error occured trying to run the npm dist-tag add command."
|
|
172
|
+
);
|
|
173
|
+
console.error(err);
|
|
174
|
+
console.log("");
|
|
157
175
|
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
158
176
|
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"))) {
|
|
159
177
|
console.error(
|
|
@@ -184,6 +202,10 @@ ${err}`
|
|
|
184
202
|
}
|
|
185
203
|
return new Promise((resolve) => resolve({ success: true }));
|
|
186
204
|
} catch (err) {
|
|
205
|
+
console.log("");
|
|
206
|
+
console.error("An error occured running npm publish.");
|
|
207
|
+
console.error(err);
|
|
208
|
+
console.log("");
|
|
187
209
|
try {
|
|
188
210
|
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
189
211
|
console.error("npm publish error please see below for more information:");
|