Skip to content

Commit

Permalink
update debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
ncipollo committed Oct 4, 2022
1 parent f3ea29d commit b072aaa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
23 changes: 23 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ const Globber_1 = __nccwpck_require__(8259);
const Artifact_1 = __nccwpck_require__(8568);
const untildify_1 = __importDefault(__nccwpck_require__(6732));
const ArtifactPathValidator_1 = __nccwpck_require__(7818);
const PathNormalizer_1 = __nccwpck_require__(8103);
class FileArtifactGlobber {
constructor(globber = new Globber_1.FileGlobber()) {
this.globber = globber;
Expand All @@ -246,6 +247,7 @@ class FileArtifactGlobber {
const split = /[,\n]/;
return artifact.split(split)
.map(path => path.trimStart())
.map(path => PathNormalizer_1.PathNormalizer.normalizePath(path))
.map(path => FileArtifactGlobber.expandPath(path))
.map(pattern => this.globPattern(pattern, errorsFailBuild))
.map((globResult) => FileArtifactGlobber.validatePattern(errorsFailBuild, globResult[1], globResult[0]))
Expand Down Expand Up @@ -826,6 +828,27 @@ class CoreOutputs {
exports.CoreOutputs = CoreOutputs;


/***/ }),

/***/ 8103:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {

"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(__nccwpck_require__(1017));
class PathNormalizer {
static normalizePath(pathString) {
return pathString.split(path_1.default.sep).join("/");
}
}
exports.PathNormalizer = PathNormalizer;


/***/ }),

/***/ 7579:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/ArtifactGlobber.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const Globber_1 = require("./Globber");
const Artifact_1 = require("./Artifact");
const untildify_1 = __importDefault(require("untildify"));
const ArtifactPathValidator_1 = require("./ArtifactPathValidator");
const PathNormalizer_1 = require("./PathNormalizer");
class FileArtifactGlobber {
constructor(globber = new Globber_1.FileGlobber()) {
this.globber = globber;
Expand All @@ -40,6 +41,7 @@ class FileArtifactGlobber {
const split = /[,\n]/;
return artifact.split(split)
.map(path => path.trimStart())
.map(path => PathNormalizer_1.PathNormalizer.normalizePath(path))
.map(path => FileArtifactGlobber.expandPath(path))
.map(pattern => this.globPattern(pattern, errorsFailBuild))
.map((globResult) => FileArtifactGlobber.validatePattern(errorsFailBuild, globResult[1], globResult[0]))
Expand Down
2 changes: 1 addition & 1 deletion lib/PathNormalizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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("/");
return pathString.split(path_1.default.sep).join("/");
}
}
exports.PathNormalizer = PathNormalizer;

0 comments on commit b072aaa

Please sign in to comment.