From 0c87da7cb3229c6039eedbba87d10db98188296d Mon Sep 17 00:00:00 2001 From: ulxsth Date: Fri, 28 Mar 2025 05:19:18 +0900 Subject: [PATCH] fix: import --- src/commands/hello.ts | 2 +- src/commands/log.ts | 2 +- src/gitIndex.ts | 2 +- src/scripts/debug/tree.ts | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/commands/hello.ts b/src/commands/hello.ts index 3df91b3..0c85f81 100644 --- a/src/commands/hello.ts +++ b/src/commands/hello.ts @@ -1,4 +1,4 @@ -import type { Command } from './command.d.ts'; +import type { Command } from '../types/command.js'; const helloCommand: Command = { exec: (_: Array): void => { diff --git a/src/commands/log.ts b/src/commands/log.ts index 4ea942e..51a0fb7 100644 --- a/src/commands/log.ts +++ b/src/commands/log.ts @@ -1,7 +1,7 @@ import * as fs from "fs"; import path from "path"; import zlib from "zlib"; -import type { Command } from '../types/command.d.ts'; +import type { Command } from '../types/command.js'; const logCommand: Command = { exec: (_args: Array): void => { diff --git a/src/gitIndex.ts b/src/gitIndex.ts index 849ce56..5415761 100644 --- a/src/gitIndex.ts +++ b/src/gitIndex.ts @@ -2,7 +2,7 @@ import fs from "fs"; import path from "path"; import type { GitIndex, GitIndexEntry, GitIndexExtension } from "./types/gitIndex.d.ts"; import { createHash } from "crypto"; -import { blob2Hash, GitBlobObject, saveBlob } from "./blob.ts"; +import { blob2Hash, GitBlobObject, saveBlob } from "./blob.js"; export const loadIndex = (): GitIndex => { // * Index を Buffer として呼び出し diff --git a/src/scripts/debug/tree.ts b/src/scripts/debug/tree.ts index e34a1d8..37790dc 100644 --- a/src/scripts/debug/tree.ts +++ b/src/scripts/debug/tree.ts @@ -1,4 +1,3 @@ -import { createHash } from "crypto"; import { GitTreeObject, loadTree, saveTree } from "../../tree.js"; const testTree: GitTreeObject = {