From a32045f52ad5e2f5b615f5c2620863aee45ca5ee Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Thu, 9 Jan 2025 13:44:36 +0900 Subject: [PATCH] fix: import path doesn't have '.js' extension --- packages/backend/src/@types/twemoji.d.ts | 2 +- packages/backend/src/core/MfmService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/@types/twemoji.d.ts b/packages/backend/src/@types/twemoji.d.ts index 8574f103ed..deefab6d44 100644 --- a/packages/backend/src/@types/twemoji.d.ts +++ b/packages/backend/src/@types/twemoji.d.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -declare module '@twemoji/parser/dist/lib/regex' { +declare module '@twemoji/parser/dist/lib/regex.js' { const regex: RegExp; export default { default: regex }; } diff --git a/packages/backend/src/core/MfmService.ts b/packages/backend/src/core/MfmService.ts index 90a657b484..9ed160b8d3 100644 --- a/packages/backend/src/core/MfmService.ts +++ b/packages/backend/src/core/MfmService.ts @@ -7,7 +7,7 @@ import { URL } from 'node:url'; import { Inject, Injectable } from '@nestjs/common'; import * as parse5 from 'parse5'; import { Window, XMLSerializer } from 'happy-dom'; -import twemojiRegex from '@twemoji/parser/dist/lib/regex'; +import twemojiRegex from '@twemoji/parser/dist/lib/regex.js'; import { DI } from '@/di-symbols.js'; import type { Config } from '@/config.js'; import { intersperse } from '@/misc/prelude/array.js';