From 08d6351d256d324fa9d826ab1b296a9fc7668fcc Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 21 Jun 2024 11:09:06 +0530 Subject: [PATCH] Fix deployments dir check in the script to publish records --- demo/scripts/publish-records.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/scripts/publish-records.ts b/demo/scripts/publish-records.ts index efb2a72..71783d8 100644 --- a/demo/scripts/publish-records.ts +++ b/demo/scripts/publish-records.ts @@ -91,7 +91,7 @@ async function publishRecordsFromDir (recordsDir: string): Promise { // 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('--------------------------------------');