From 0aee00bc729353f326a71acfbf6bf2298992f604 Mon Sep 17 00:00:00 2001 From: Tim Smart Date: Fri, 10 Feb 2023 17:10:03 +1300 Subject: [PATCH] fix: DiscordREST package.json import --- src/DiscordREST.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DiscordREST.ts b/src/DiscordREST.ts index b2f8992..ff30078 100644 --- a/src/DiscordREST.ts +++ b/src/DiscordREST.ts @@ -1,5 +1,5 @@ import { millis } from "@effect/data/Duration" -import Pkg from "../package.json" assert { type: "json" } +import Pkg from "./package.json" assert { type: "json" } import { ResponseWithData, RestResponse } from "./DiscordREST/types.js" import { rateLimitFromHeaders, diff --git a/tsconfig.json b/tsconfig.json index 381effb..3d955a9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "baseUrl": ".", "rootDir": "src", "outDir": "dist", - "resolveJsonModule": false, + "resolveJsonModule": true, "skipLibCheck": true, "moduleResolution": "NodeNext", "module": "ESNext",