enablement-build-monorepo-version 1.0.2 → 1.0.4
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 +7 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -152,7 +152,7 @@ async function main(options) {
|
|
|
152
152
|
}
|
|
153
153
|
previous=JSON.parse(data);
|
|
154
154
|
|
|
155
|
-
if(options.changed || options.version) {
|
|
155
|
+
if(options.changed || options.version || options.tag) {
|
|
156
156
|
|
|
157
157
|
let dependencies={};
|
|
158
158
|
if(options.dependencies) {
|
|
@@ -190,7 +190,9 @@ async function main(options) {
|
|
|
190
190
|
}
|
|
191
191
|
if(options.tag) {
|
|
192
192
|
plist.push(new Promise((resolve,reject)=>{
|
|
193
|
-
let
|
|
193
|
+
let v = results[i].value.version;
|
|
194
|
+
if(!v) v=getCurrentVersion(options.prefixPath,packageFolder,results[i].value.name)?.version;
|
|
195
|
+
let rev=results[i].value.name+'@'+v;
|
|
194
196
|
exec(`git describe --tags ${rev}`, (err, tag, stderr) => {
|
|
195
197
|
if (err) {
|
|
196
198
|
exec(`git tag ${rev} -m "${rev}"`, (err, tag, stderr) => {
|
|
@@ -206,8 +208,9 @@ async function main(options) {
|
|
|
206
208
|
}));
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
|
-
if(plist.length>0
|
|
210
|
-
|
|
211
|
+
if(plist.length>0) {
|
|
212
|
+
let result = await Promise.allSettled(plist)
|
|
213
|
+
if(options.debug) console.log(result);
|
|
211
214
|
}
|
|
212
215
|
}
|
|
213
216
|
|