From 2823e3fd45a9397f2eef0c88db214134e11ff7f8 Mon Sep 17 00:00:00 2001 From: kanno <812137533@qq.com> Date: Tue, 25 Jul 2023 11:29:48 +0800 Subject: [PATCH] fix: typesVersion only exports url --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0cc23d4..5e45f4f 100644 --- a/package.json +++ b/package.json @@ -30,13 +30,18 @@ "import": "./dist/index.mjs", "require": "./dist/index.js" }, - "./url": { + "./url.js": { "types":"./dist/url.d.ts", "import": "./dist/url.mjs", "require": "./dist/url.js" }, "./*": "./*" }, + "typesVersions": { + "*": { + "url.js": ["./dist/url.d.ts"] + } + }, "author": "Kanno", "license": "MIT", "homepage": "https://github.com/nonzzz/vite-plugin-cdn",