From da4427ca4f57708fe9807915cf20af4e921b1772 Mon Sep 17 00:00:00 2001 From: Grant Forrest Date: Sun, 17 Nov 2024 16:10:02 -0500 Subject: [PATCH] create dir if not exists --- packages/cli/src/schema.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/src/schema.ts b/packages/cli/src/schema.ts index 68253e06..c40272e8 100644 --- a/packages/cli/src/schema.ts +++ b/packages/cli/src/schema.ts @@ -273,6 +273,7 @@ export async function writeSchemaVersionsIndex({ }) { // make it first if it doesn't exist await makeDir(`${tempOutput}/schemaVersions`); + await makeDir(`${output}/schemaVersions`); const historicalSchemaVersions = await fs.readdir(`${output}/schemaVersions`); const newSchemaVersions = await fs.readdir(`${tempOutput}/schemaVersions`); const schemaVersions = Array.from(