From 814e944e27fe4f8a8abff33ae0834a1f2d7b2b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Sun, 20 Mar 2022 14:43:26 +0100 Subject: [PATCH] fix(next): add `dts` for non node packages I talk with @antfu (sorry to ping you here ;) ), we need to add the `typedVersions`, we talk about it a few days/weeks ago: ``json "typesVersions": { "*": { "*": [ "./dist/*" ] } }, ``` --- packages/utils/package.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/utils/package.json b/packages/utils/package.json index ccafb47..83daf61 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -25,6 +25,9 @@ "vitest": "npm run vitest:cjs && npm run vitest:esm" }, "sideEffects": false, + "main": "lib/index.cjs", + "module": "lib/index.mjs", + "types": "lib/index.d.ts", "exports": { ".": { "require": "./lib/index.cjs", @@ -189,13 +192,17 @@ "import": "./lib/svg/size.mjs" } }, - "main": "lib/index.cjs", - "module": "lib/index.mjs", - "types": "lib/index.d.ts", "files": [ "lib", "*.d.ts" ], + "typesVersions": { + "*": { + "*": [ + "./dist/*" + ] + } + }, "dependencies": { "@antfu/install-pkg": "^0.1.0", "@antfu/utils": "^0.3.0",