mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚚 Explicitely add extensions to all imports
This commit is contained in:
parent
b5b7014c00
commit
b53307c824
99 changed files with 168 additions and 169 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { beforeEach, describe, expect, it, mock } from "bun:test";
|
||||
import sharp from "sharp";
|
||||
import { BlurhashPreprocessor } from "./blurhash";
|
||||
import { BlurhashPreprocessor } from "./blurhash.ts";
|
||||
|
||||
describe("BlurhashPreprocessor", () => {
|
||||
let preprocessor: BlurhashPreprocessor;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { encode } from "blurhash";
|
||||
import sharp from "sharp";
|
||||
import type { MediaPreprocessor } from "./media-preprocessor";
|
||||
import type { MediaPreprocessor } from "./media-preprocessor.ts";
|
||||
|
||||
export class BlurhashPreprocessor implements MediaPreprocessor {
|
||||
public async process(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { beforeEach, describe, expect, it } from "bun:test";
|
||||
import sharp from "sharp";
|
||||
import type { Config } from "~/packages/config-manager/config.type";
|
||||
import { ImageConversionPreprocessor } from "./image-conversion";
|
||||
import { ImageConversionPreprocessor } from "./image-conversion.ts";
|
||||
|
||||
describe("ImageConversionPreprocessor", () => {
|
||||
let preprocessor: ImageConversionPreprocessor;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
import sharp from "sharp";
|
||||
import type { Config } from "~/packages/config-manager/config.type";
|
||||
import type { MediaPreprocessor } from "./media-preprocessor";
|
||||
import type { MediaPreprocessor } from "./media-preprocessor.ts";
|
||||
|
||||
/**
|
||||
* Supported input media formats.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue