mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(schema): update db-entries generation job (#120)
On Node 16.x.x fs.rmdir throw err if dir does not exist Also from Node 16.x.x fs.rmdir will be deprecated, use fs.rm instead
This commit is contained in:
parent
8de4fdf5a4
commit
34e979d7d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue