Fix tsconfig.json file bug (#415)
* add tsconfig file * Fix tsconfig file bug
This commit is contained in:
Родитель
41e257e385
Коммит
9aad1c7ca5
|
@ -16,6 +16,12 @@ export function IsValidYamlFile(filePath:string): Boolean {
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
console.log("start - yamlFileValidetor script");
|
console.log("start - yamlFileValidetor script");
|
||||||
const pullRequestDiffFiles = await getPullRequestDiffFiles();
|
const pullRequestDiffFiles = await getPullRequestDiffFiles();
|
||||||
|
|
||||||
|
if(pullRequestDiffFiles === null){
|
||||||
|
console.log("No changes files in PR");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
const changedYamlFiles = pullRequestDiffFiles.filter(filePath => filePath.endsWith('.yaml') || filePath.endsWith('.yml'));
|
const changedYamlFiles = pullRequestDiffFiles.filter(filePath => filePath.endsWith('.yaml') || filePath.endsWith('.yml'));
|
||||||
|
|
||||||
if (changedYamlFiles.length === 0) {
|
if (changedYamlFiles.length === 0) {
|
||||||
|
|
|
@ -15,5 +15,8 @@
|
||||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||||
|
},
|
||||||
|
"include": [".script/**/*"],
|
||||||
|
"exclude": []
|
||||||
}
|
}
|
||||||
}
|
}
|
Загрузка…
Ссылка в новой задаче