From 709443e87f3f10cf03e481e4d3a120824154bdc7 Mon Sep 17 00:00:00 2001 From: NeatRabbit Date: Sun, 12 May 2024 02:03:59 +0900 Subject: [PATCH 1/2] Update index.d.ts Modify the index.d.ts in the conf module to import it directly --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 9d771ab..77b87db 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import {type Except} from 'type-fest'; -import Conf, {type Options as ConfigOptions} from 'conf'; +import Conf, {type Options as ConfigOptions} from 'conf/dist/source/index'; -export {Schema} from 'conf'; +export {Schema} from 'conf/dist/source/index'; export type Options> = Except, 'configName' | 'projectName' | 'projectVersion' | 'projectSuffix'> & { /** From 311bc3ec90a17a2ae098baca7220890b98dce1dc Mon Sep 17 00:00:00 2001 From: NeatRabbit Date: Sun, 12 May 2024 02:28:07 +0900 Subject: [PATCH 2/2] Update package.json remove tsd config --- package.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/package.json b/package.json index e1a9f18..ba4c1f8 100644 --- a/package.json +++ b/package.json @@ -58,12 +58,5 @@ "node", "browser" ] - }, - "tsd": { - "compilerOptions": { - "module": "node16", - "moduleResolution": "node16", - "moduleDetection": "force" - } } }