Fix typescript build
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user