diff --git a/packages/schemas/src/gen/index.ts b/packages/schemas/src/gen/index.ts index e9b61da9b..837362c15 100644 --- a/packages/schemas/src/gen/index.ts +++ b/packages/schemas/src/gen/index.ts @@ -101,7 +101,7 @@ const generate = async () => { const tsTypesFilename = '../foundations'; const header = '// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n\n'; - await fs.rmdir(generatedDirectory, { recursive: true }); + await fs.rm(generatedDirectory, { recursive: true, force: true }); await fs.mkdir(generatedDirectory, { recursive: true }); // Postgres custom types