Fix typescript build
This commit is contained in:
@@ -34,14 +34,14 @@ class ArtifactPathValidator {
|
|||||||
}
|
}
|
||||||
verifyPathsNotEmpty() {
|
verifyPathsNotEmpty() {
|
||||||
if (this.paths.length == 0) {
|
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);
|
this.reportError(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
verifyNotDirectory(path) {
|
verifyNotDirectory(path) {
|
||||||
const isDir = fs_1.statSync(path).isDirectory();
|
const isDir = fs_1.statSync(path).isDirectory();
|
||||||
if (isDir) {
|
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);
|
this.reportError(message);
|
||||||
}
|
}
|
||||||
return !isDir;
|
return !isDir;
|
||||||
|
|||||||
Reference in New Issue
Block a user