Skip to content

Commit a13a8bd

Browse files
SnaveSutitgitbutler-client
authored andcommitted
🐛 Fix blueprint format failing to save
1 parent ee50bb3 commit a13a8bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/formats/blueprint/codec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ export const BLUEPRINT_CODEC = registerDeletableHandlerPatch({
395395
content: this.compile!(),
396396
// eslint-disable-next-line @typescript-eslint/naming-convention
397397
custom_writer: (content: string, path: string) => {
398-
if (fs.existsSync(PathModule.dirname(path))) {
398+
const { existsSync } = getFsModule()
399+
if (existsSync(PathModule.dirname(path))) {
399400
Project!.save_path = path
400401
this.write!(content, path)
401402
} else {

0 commit comments

Comments
 (0)