Skip to content

Commit 0dfcd04

Browse files
authored
debug (wip)
1 parent 13ada62 commit 0dfcd04

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/version.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ async function latest(repo) {
2929
const tagsRaw = await repo.git.raw(['tag', '--sort=-v:refname']);
3030
const allTags = tagsRaw.split('\n').filter(Boolean).slice(0, MAX_TAGS_LIMIT);
3131

32+
console.log('allTags:\n', allTags);
33+
3234
for (let tag of allTags) {
3335
const res = repo.filter(tag);
3436
if (res !== null) {
@@ -52,6 +54,9 @@ async function main() {
5254
let { version: srcVer } = await latest(src);
5355
let { version: dstVer } = await latest(dst);
5456

57+
console.log('srcVer:', srcVer);
58+
console.log('dstVer:', dstVer);
59+
5560
if (!dstVer || semver.gt(srcVer, dstVer)) {
5661
console.log(srcVer);
5762
} else {

0 commit comments

Comments
 (0)