Fix typescript build

This commit is contained in:
Nick Cipollo
2021-05-24 11:23:05 -04:00
parent 15abc13cc4
commit d1125b4510

View File

@@ -34,14 +34,14 @@ class ArtifactPathValidator {
}
verifyPathsNotEmpty() {
if (this.paths.length == 0) {
const message = `Artifact pattern :${this.pattern} did not match any files`;
const message = `Artifact pattern:${this.pattern} did not match any files`;
this.reportError(message);
}
}
verifyNotDirectory(path) {
const isDir = fs_1.statSync(path).isDirectory();
if (isDir) {
const message = `Artifact is a directory :${path}. Directories can not be uploaded to a release.`;
const message = `Artifact is a directory:${path}. Directories can not be uploaded to a release.`;
this.reportError(message);
}
return !isDir;