fix for webpack bundle

This commit is contained in:
Artur Stolear
2020-01-22 17:52:55 +02:00
parent 5ed9f1a870
commit ee69b451cc
11 changed files with 59 additions and 38 deletions

View File

@@ -4,6 +4,7 @@ import * as os from "os";
import * as path from "path";
import * as semver from "semver";
import * as http from "typed-rest-client/HttpClient";
import cmp from "semver-compare";
import { inject, injectable } from "inversify";
@@ -184,7 +185,7 @@ class GitVersionTool implements IGitVersionTool {
return workDir.replace(/\\/g, "/");
}
private getArguments(workDir: string, options: IGitVersionOptions) {
private getArguments(workDir: string, options: IGitVersionOptions): string[] {
const args = [
workDir,
"/output",
@@ -220,8 +221,6 @@ class GitVersionTool implements IGitVersionTool {
}
}
const cmp = require("semver-compare");
@injectable()
class VersionManager implements IVersionManager {