enablement-build-monorepo-version 1.0.5 → 1.0.6
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/index.mjs +3 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -172,7 +172,6 @@ async function main(options) {
|
|
|
172
172
|
changeList.push(results[i].value.name)
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
let plist=[];
|
|
176
175
|
for(let i=0;i<results.length;i++) {
|
|
177
176
|
if(results[i].value.packageFolder!==packageFolder) continue;
|
|
178
177
|
if(options.version) {
|
|
@@ -182,14 +181,14 @@ async function main(options) {
|
|
|
182
181
|
if(results[i].value.changed) {
|
|
183
182
|
console.log(`##vso[task.setvariable variable=${safeName};isoutput=true;]${results[i].value.version}`);
|
|
184
183
|
if(options.saveVersion) {
|
|
185
|
-
|
|
184
|
+
scanlist.push(updateVersion(packageFolder,results[i].value.name,results[i].value.version));
|
|
186
185
|
}
|
|
187
186
|
} else {
|
|
188
187
|
console.log(`##vso[task.setvariable variable=${safeName};isoutput=true;]${results[i].value.previous}`);
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
if(options.tag) {
|
|
192
|
-
|
|
191
|
+
scanlist.push(new Promise((resolve,reject)=>{
|
|
193
192
|
let v = results[i].value.version;
|
|
194
193
|
if(!v) v=getCurrentVersion(options.prefixPath,packageFolder,results[i].value.name)?.version;
|
|
195
194
|
let rev=results[i].value.name+'@'+v;
|
|
@@ -209,10 +208,6 @@ async function main(options) {
|
|
|
209
208
|
}));
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
|
-
if(plist.length>0) {
|
|
213
|
-
let result = await Promise.allSettled(plist)
|
|
214
|
-
if(options.debug) console.log(result);
|
|
215
|
-
}
|
|
216
211
|
}
|
|
217
212
|
|
|
218
213
|
// write current hashes
|
|
@@ -243,7 +238,6 @@ async function main(options) {
|
|
|
243
238
|
console.log(`CHANGED - ${JSON.stringify(changeList)}`);
|
|
244
239
|
console.log(`##vso[task.setvariable variable=changed;isoutput=true]${JSON.stringify(changeList)}`);
|
|
245
240
|
}
|
|
246
|
-
|
|
247
241
|
mainResolve("DONE");
|
|
248
242
|
},mainreject);
|
|
249
243
|
});
|
|
@@ -301,6 +295,7 @@ if (process.argv.length === 2) {
|
|
|
301
295
|
const text = await main(options);
|
|
302
296
|
console.log(text);
|
|
303
297
|
} catch (e) {
|
|
298
|
+
console.log("KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK")
|
|
304
299
|
console.log(e);
|
|
305
300
|
process.exit(1);
|
|
306
301
|
}
|