diff --git a/src/converters/assimp.ts b/src/converters/assimp.ts index 869f28e..69f3258 100644 --- a/src/converters/assimp.ts +++ b/src/converters/assimp.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/calibre.ts b/src/converters/calibre.ts index 153de16..1d06695 100644 --- a/src/converters/calibre.ts +++ b/src/converters/calibre.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/dvisvgm.ts b/src/converters/dvisvgm.ts index 76ef5c1..a48bc69 100644 --- a/src/converters/dvisvgm.ts +++ b/src/converters/dvisvgm.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/ffmpeg.ts b/src/converters/ffmpeg.ts index 8207c61..f7d183f 100644 --- a/src/converters/ffmpeg.ts +++ b/src/converters/ffmpeg.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; // This could be done dynamically by running `ffmpeg -formats` and parsing the output export const properties = { diff --git a/src/converters/graphicsmagick.ts b/src/converters/graphicsmagick.ts index 5551341..4af168e 100644 --- a/src/converters/graphicsmagick.ts +++ b/src/converters/graphicsmagick.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/imagemagick.ts b/src/converters/imagemagick.ts index eb2eaa7..69eb359 100644 --- a/src/converters/imagemagick.ts +++ b/src/converters/imagemagick.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; // declare possible conversions export const properties = { diff --git a/src/converters/inkscape.ts b/src/converters/inkscape.ts index 4497e2f..dce123b 100644 --- a/src/converters/inkscape.ts +++ b/src/converters/inkscape.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/libheif.ts b/src/converters/libheif.ts index b88e177..3df1f52 100644 --- a/src/converters/libheif.ts +++ b/src/converters/libheif.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/libjxl.ts b/src/converters/libjxl.ts index 6ff825f..336ad51 100644 --- a/src/converters/libjxl.ts +++ b/src/converters/libjxl.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; // declare possible conversions export const properties = { diff --git a/src/converters/libreoffice.ts b/src/converters/libreoffice.ts index 73249dc..02f389a 100644 --- a/src/converters/libreoffice.ts +++ b/src/converters/libreoffice.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/msgconvert.ts b/src/converters/msgconvert.ts index 0c0b663..612a2ef 100644 --- a/src/converters/msgconvert.ts +++ b/src/converters/msgconvert.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/pandoc.ts b/src/converters/pandoc.ts index e5b1db1..c14c98b 100644 --- a/src/converters/pandoc.ts +++ b/src/converters/pandoc.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/potrace.ts b/src/converters/potrace.ts index 6027491..b18f202 100644 --- a/src/converters/potrace.ts +++ b/src/converters/potrace.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/resvg.ts b/src/converters/resvg.ts index 3155483..fcdc2e4 100644 --- a/src/converters/resvg.ts +++ b/src/converters/resvg.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/src/converters/vips.ts b/src/converters/vips.ts index b89db12..310053f 100644 --- a/src/converters/vips.ts +++ b/src/converters/vips.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; // declare possible conversions export const properties = { diff --git a/src/converters/xelatex.ts b/src/converters/xelatex.ts index 784acdc..6bd0802 100644 --- a/src/converters/xelatex.ts +++ b/src/converters/xelatex.ts @@ -1,5 +1,5 @@ import { execFile as execFileOriginal } from "node:child_process"; -import { ExecFileFn } from "./types.ts"; +import { ExecFileFn } from "./types"; export const properties = { from: { diff --git a/tests/converters/assimp.test.ts b/tests/converters/assimp.test.ts index e032093..ea3479b 100644 --- a/tests/converters/assimp.test.ts +++ b/tests/converters/assimp.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/assimp.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/assimp"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert); diff --git a/tests/converters/calibre.test.ts b/tests/converters/calibre.test.ts index 91c1b23..773017d 100644 --- a/tests/converters/calibre.test.ts +++ b/tests/converters/calibre.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/calibre.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/calibre"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert); diff --git a/tests/converters/dvisvgm.test.ts b/tests/converters/dvisvgm.test.ts index a638f13..2723801 100644 --- a/tests/converters/dvisvgm.test.ts +++ b/tests/converters/dvisvgm.test.ts @@ -1,8 +1,8 @@ import type { ExecFileException } from "node:child_process"; import { beforeEach, expect, test } from "bun:test"; -import { convert } from "../../src/converters/dvisvgm.ts"; -import { ExecFileFn } from "../../src/converters/types.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/dvisvgm"; +import { ExecFileFn } from "../../src/converters/types"; +import { runCommonTests } from "./helpers/commonTests"; let calls: string[][] = []; diff --git a/tests/converters/ffmpeg.test.ts b/tests/converters/ffmpeg.test.ts index 01d4633..6f0afc6 100644 --- a/tests/converters/ffmpeg.test.ts +++ b/tests/converters/ffmpeg.test.ts @@ -1,5 +1,5 @@ import { beforeEach, expect, test } from "bun:test"; -import { convert } from "../../src/converters/ffmpeg.ts"; +import { convert } from "../../src/converters/ffmpeg"; let calls: string[][] = []; diff --git a/tests/converters/graphicsmagick.test.ts b/tests/converters/graphicsmagick.test.ts index 625ec0d..81fbfe4 100644 --- a/tests/converters/graphicsmagick.test.ts +++ b/tests/converters/graphicsmagick.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/graphicsmagick.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/graphicsmagick"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert); diff --git a/tests/converters/helpers/commonTests.ts b/tests/converters/helpers/commonTests.ts index 9b6b4f0..64483b3 100644 --- a/tests/converters/helpers/commonTests.ts +++ b/tests/converters/helpers/commonTests.ts @@ -1,11 +1,11 @@ import { test } from "bun:test"; -import { ConvertFnWithExecFile } from "../../../src/converters/types.ts"; +import { ConvertFnWithExecFile } from "../../../src/converters/types"; import { runConvertFailTest, runConvertLogsStderror, runConvertLogsStderrorAndStdout, runConvertSuccessTest, -} from "./converters.ts"; +} from "./converters"; export function runCommonTests(convert: ConvertFnWithExecFile) { test("convert resolves when execFile succeeds", async () => { diff --git a/tests/converters/helpers/converters.ts b/tests/converters/helpers/converters.ts index f941bc9..12942f6 100644 --- a/tests/converters/helpers/converters.ts +++ b/tests/converters/helpers/converters.ts @@ -1,6 +1,6 @@ import type { ExecFileException } from "node:child_process"; import { expect } from "bun:test"; -import { ConvertFnWithExecFile, ExecFileFn } from "../../../src/converters/types.ts"; +import { ConvertFnWithExecFile, ExecFileFn } from "../../../src/converters/types"; export async function runConvertSuccessTest(convertFn: ConvertFnWithExecFile) { const originalConsoleLog = console.log; diff --git a/tests/converters/imagemagick.test.ts b/tests/converters/imagemagick.test.ts index 4916177..dd47b7a 100644 --- a/tests/converters/imagemagick.test.ts +++ b/tests/converters/imagemagick.test.ts @@ -1,8 +1,8 @@ import type { ExecFileException } from "node:child_process"; import { beforeEach, expect, test } from "bun:test"; -import { convert } from "../../src/converters/imagemagick.ts"; -import { ExecFileFn } from "../../src/converters/types.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/imagemagick"; +import { ExecFileFn } from "../../src/converters/types"; +import { runCommonTests } from "./helpers/commonTests"; let calls: string[][] = []; diff --git a/tests/converters/inkscape.test.ts b/tests/converters/inkscape.test.ts index ad15a3b..a75ea3b 100644 --- a/tests/converters/inkscape.test.ts +++ b/tests/converters/inkscape.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/inkscape.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/inkscape"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert); diff --git a/tests/converters/libheif.test.ts b/tests/converters/libheif.test.ts index 9fb72fc..48d8154 100644 --- a/tests/converters/libheif.test.ts +++ b/tests/converters/libheif.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/libheif.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/libheif"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert); diff --git a/tests/converters/libjxl.test.ts b/tests/converters/libjxl.test.ts index ad4e5f4..7171bdb 100644 --- a/tests/converters/libjxl.test.ts +++ b/tests/converters/libjxl.test.ts @@ -1,8 +1,8 @@ import type { ExecFileException } from "node:child_process"; import { beforeEach, expect, test } from "bun:test"; -import { convert } from "../../src/converters/libjxl.ts"; -import { ExecFileFn } from "../../src/converters/types.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/libjxl"; +import { ExecFileFn } from "../../src/converters/types"; +import { runCommonTests } from "./helpers/commonTests"; let command: string = ""; diff --git a/tests/converters/msgconvert.test.ts b/tests/converters/msgconvert.test.ts index ffdf840..7ef0dca 100644 --- a/tests/converters/msgconvert.test.ts +++ b/tests/converters/msgconvert.test.ts @@ -1,7 +1,7 @@ import type { ExecFileException } from "node:child_process"; import { expect, test } from "bun:test"; -import { convert } from "../../src/converters/msgconvert.ts"; -import { ExecFileFn } from "../../src/converters/types.ts"; +import { convert } from "../../src/converters/msgconvert"; +import { ExecFileFn } from "../../src/converters/types"; test("convert rejects conversion if input filetype is not msg and output type is not eml", async () => { const mockExecFile: ExecFileFn = ( diff --git a/tests/converters/potrace.test.ts b/tests/converters/potrace.test.ts index 61c3895..90dd86b 100644 --- a/tests/converters/potrace.test.ts +++ b/tests/converters/potrace.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/potrace.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/potrace"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert); diff --git a/tests/converters/resvg.test.ts b/tests/converters/resvg.test.ts index ce7be18..88b3aba 100644 --- a/tests/converters/resvg.test.ts +++ b/tests/converters/resvg.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/resvg.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/resvg"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert); diff --git a/tests/converters/vips.test.ts b/tests/converters/vips.test.ts index ec6420d..b97be81 100644 --- a/tests/converters/vips.test.ts +++ b/tests/converters/vips.test.ts @@ -1,8 +1,8 @@ import type { ExecFileException } from "node:child_process"; import { beforeEach, expect, test } from "bun:test"; -import { ExecFileFn } from "../../src/converters/types.ts"; -import { convert } from "../../src/converters/vips.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { ExecFileFn } from "../../src/converters/types"; +import { convert } from "../../src/converters/vips"; +import { runCommonTests } from "./helpers/commonTests"; let calls: string[][] = []; diff --git a/tests/converters/xelatex.test.ts b/tests/converters/xelatex.test.ts index f05ea15..5e5f0b0 100644 --- a/tests/converters/xelatex.test.ts +++ b/tests/converters/xelatex.test.ts @@ -1,6 +1,6 @@ import { test } from "bun:test"; -import { convert } from "../../src/converters/xelatex.ts"; -import { runCommonTests } from "./helpers/commonTests.ts"; +import { convert } from "../../src/converters/xelatex"; +import { runCommonTests } from "./helpers/commonTests"; runCommonTests(convert);