fix strategy 'Tag' versioning (#287)
* fix - remove \n in getTag method * build ts * recommitpull/291/head v2.0-alpha-13
parent
3ebdb0e678
commit
c317d144c3
|
@ -2437,7 +2437,7 @@ class Versioning {
|
||||||
*/
|
*/
|
||||||
static getTag() {
|
static getTag() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
return this.git(['tag', '--points-at', 'HEAD']);
|
return (yield this.git(['tag', '--points-at', 'HEAD'])).trim();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -265,7 +265,7 @@ export default class Versioning {
|
||||||
* Get the tag if there is one pointing at HEAD
|
* Get the tag if there is one pointing at HEAD
|
||||||
*/
|
*/
|
||||||
static async getTag() {
|
static async getTag() {
|
||||||
return this.git(['tag', '--points-at', 'HEAD']);
|
return (await this.git(['tag', '--points-at', 'HEAD'])).trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue