Fixes #262 normalize artifact paths

This commit is contained in:
Nick Cipollo
2022-10-04 08:08:09 -04:00
parent 889eb279f8
commit f3ea29dca7
3 changed files with 22 additions and 0 deletions

13
lib/PathNormalizer.js Normal file
View File

@@ -0,0 +1,13 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PathNormalizer = void 0;
const path_1 = __importDefault(require("path"));
class PathNormalizer {
static normalizePath(pathString) {
return path_1.default.resolve(pathString).split(path_1.default.sep).join("/");
}
}
exports.PathNormalizer = PathNormalizer;