emit exit code only in lint mode

This commit is contained in:
Tobias Koppers 2018-09-20 18:00:11 +02:00
父節點 1f6b92de3e
當前提交 44955b7600
共有 3 個文件被更改,包括 3 次插入3 次删除

查看文件

@ -65,8 +65,8 @@ const makeDefinitionsForSchema = absSchemaPath => {
"/"
)}.d.ts need to be updated`
);
process.exitCode = 1;
}
process.exitCode = 1;
}
},
err => {

查看文件

@ -124,8 +124,8 @@ const formatSchema = schemaPath => {
console.error(
`schemas/${basename.replace(/\\/g, "/")} need to be updated`
);
process.exitCode = 1;
}
process.exitCode = 1;
}
});
};

查看文件

@ -137,8 +137,8 @@ for (const sourceFile of program.getSourceFiles()) {
);
}
console.log();
process.exitCode = 1;
}
process.exitCode = 1;
}
}
}