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('--------------------------------------');