From d31c459441c1bce15157c851ca51bb78c881f8c2 Mon Sep 17 00:00:00 2001 From: jszczypk Date: Thu, 27 Nov 2025 15:42:23 +0100 Subject: [PATCH] Fix import syntax for fs-extra module (#112) * Fix import syntax for fs-extra module * Fix import syntax for fs-extra module * Fix import syntax for fs-extra module * Fix missing newline at end of morph-editor.ts --- src/tools/morph-editor.ts | 4 ++-- src/tools/search.ts | 2 +- src/tools/text-editor.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/morph-editor.ts b/src/tools/morph-editor.ts index e6585e6..561a1b2 100644 --- a/src/tools/morph-editor.ts +++ b/src/tools/morph-editor.ts @@ -1,4 +1,4 @@ -import * as fs from "fs-extra"; +import fs from "fs-extra"; import * as path from "path"; import axios from "axios"; import { ToolResult } from "../types/index.js"; @@ -390,4 +390,4 @@ export class MorphEditorTool { getApiKey(): string { return this.morphApiKey; } -} \ No newline at end of file +} diff --git a/src/tools/search.ts b/src/tools/search.ts index a125fac..3303fbf 100644 --- a/src/tools/search.ts +++ b/src/tools/search.ts @@ -1,7 +1,7 @@ import { spawn } from "child_process"; import { ToolResult } from "../types/index.js"; import { ConfirmationService } from "../utils/confirmation-service.js"; -import * as fs from "fs-extra"; +import fs from "fs-extra"; import * as path from "path"; export interface SearchResult { diff --git a/src/tools/text-editor.ts b/src/tools/text-editor.ts index 409f4d8..4baa0c6 100644 --- a/src/tools/text-editor.ts +++ b/src/tools/text-editor.ts @@ -1,4 +1,4 @@ -import * as fs from "fs-extra"; +import fs from "fs-extra"; import * as path from "path"; import { writeFile as writeFilePromise } from "fs/promises"; import { ToolResult, EditorCommand } from "../types/index.js";