Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 5007b2c

Browse files
committed
fix: failure when trying to delete non-existant enums.ts
1 parent 08c18f2 commit 5007b2c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/sdk/src/ts-schema-generator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,9 @@ export class TsSchemaGenerator {
15041504
));
15051505
}
15061506
else {
1507-
fs.unlinkSync(enumsOutputFile);
1507+
if (fs.existsSync(enumsOutputFile)) {
1508+
fs.unlinkSync(enumsOutputFile);
1509+
}
15081510
}
15091511

15101512
const modelsOutputFile = path.join(options.outDir, 'models.ts');

0 commit comments

Comments
 (0)