From 0d95ad69d3f4e1f1ef05cbe4aec5c0da4ca2be47 Mon Sep 17 00:00:00 2001 From: kravetsone <57632712+kravetsone@users.noreply.github.com> Date: Sat, 21 Dec 2024 18:24:23 +0300 Subject: [PATCH] chore: fix import --- src/updates.ts | 2 +- tsconfig.json | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/updates.ts b/src/updates.ts index 9b96378..c9c6b8d 100644 --- a/src/updates.ts +++ b/src/updates.ts @@ -5,9 +5,9 @@ import { } from "@gramio/contexts"; import type { APIMethodParams, TelegramUpdate } from "@gramio/types"; import type { CaughtMiddlewareHandler } from "middleware-io"; -import { UpdateQueue, sleep } from "queue.js"; import { Composer } from "./composer.js"; import { TelegramError } from "./errors.js"; +import { UpdateQueue, sleep } from "./queue.js"; import type { AnyBot } from "./types.js"; export class Updates { diff --git a/tsconfig.json b/tsconfig.json index af57c59..d1e5287 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,10 @@ { "compilerOptions": { "lib": ["ESNext"], - "target": "ES2022", - "module": "NodeNext", - "moduleDetection": "force", - - /* Bundler mode */ - "moduleResolution": "NodeNext", + "module": "ESNext", + "target": "ESNext", + "moduleResolution": "Bundler", + "esModuleInterop": true, /* Linting */ "skipLibCheck": true, "strict": true, @@ -16,8 +14,9 @@ "composite": true, "baseUrl": "./src", "rootDir": "./src", - "outDir": "./dist" + "outDir": "./dist", + "allowImportingTsExtensions": true, + "noEmit": true }, - "include": ["./src"], - "exclude": ["./dist"] + "include": ["./src"] }