diff --git a/packages/cdn/package.json b/packages/cdn/package.json index 085167129..e11bf1493 100644 --- a/packages/cdn/package.json +++ b/packages/cdn/package.json @@ -16,6 +16,15 @@ ], "type": "module", "sideEffects": false, + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "scripts": { "build": "pkgroll", "lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'", @@ -48,19 +57,6 @@ "publishConfig": { "registry": "https://registry.npmjs.org" }, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, - "typesVersions": { - "*": { - "*": [ - "dist/index" - ] - } - }, "volta": { "extends": "../../package.json" } diff --git a/packages/core/package.json b/packages/core/package.json index f347ee8e7..57290fb50 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -14,6 +14,23 @@ ], "type": "module", "sideEffects": false, + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./blurhash/decode": { + "types": "./dist/blurhash/decode.d.ts", + "default": "./dist/blurhash/decode.js" + }, + "./blurhash/ssr": { + "types": "./dist/blurhash/ssr.d.ts", + "default": "./dist/blurhash/ssr.js" + } + }, "scripts": { "build": "pkgroll", "lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'", @@ -52,27 +69,6 @@ "publishConfig": { "registry": "https://registry.npmjs.org" }, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./blurhash/decode": { - "types": "./dist/blurhash/decode.d.ts", - "default": "./dist/blurhash/decode.js" - }, - "./blurhash/ssr": { - "types": "./dist/blurhash/ssr.d.ts", - "default": "./dist/blurhash/ssr.js" - } - }, - "typesVersions": { - "*": { - "*": [ - "dist/index" - ] - } - }, "volta": { "extends": "../../package.json" } diff --git a/packages/solid/package.json b/packages/solid/package.json index c8fb95285..b01438579 100644 --- a/packages/solid/package.json +++ b/packages/solid/package.json @@ -18,7 +18,6 @@ "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", - "browser": {}, "exports": { "solid": { "types": "./dist/index.d.ts", @@ -29,7 +28,6 @@ "default": "./dist/index.js" } }, - "typesVersions": {}, "scripts": { "start": "tsup --watch", "build": "rollup --config", diff --git a/packages/wc/package.json b/packages/wc/package.json index ce5e3990d..f062b145e 100644 --- a/packages/wc/package.json +++ b/packages/wc/package.json @@ -12,10 +12,14 @@ "author": "Simon Ihmig ", "repository": "https://github.com/simonihmig/responsive-image", "type": "module", - "main": "dist/src/index.js", - "module": "dist/src/index.js", + "main": "./dist/src/index.js", + "module": "./dist/src/index.js", + "types": "./dist/src/index.d.ts", "exports": { - ".": "./dist/src/index.js" + ".": { + "types": "./dist/src/index.d.ts", + "default": "./dist/src/index.js" + } }, "files": [ "dist"