Fix deployments dir check in the script to publish records
All checks were successful
Lint / lint (18.x) (pull_request) Successful in 1m12s
Tests / cli_tests (18.x) (pull_request) Successful in 8m16s

This commit is contained in:
Prathamesh Musale 2024-06-21 11:09:06 +05:30
parent aff309eaad
commit 08d6351d25

View File

@ -91,7 +91,7 @@ async function publishRecordsFromDir (recordsDir: string): Promise<void> {
// Check if deployment record files exist
const deploymentRecordsDir = path.resolve(recordsDir, 'deployments');
if (!fs.statSync(deploymentRecordsDir).isDirectory()) {
if (!fs.existsSync(deploymentRecordsDir) || !fs.statSync(deploymentRecordsDir).isDirectory()) {
return;
}
console.log('--------------------------------------');