Skip to content

Commit

Permalink
Cleanup package.json exports fields
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Dec 27, 2024
1 parent 7db9508 commit ff0fb3d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 39 deletions.
22 changes: 9 additions & 13 deletions packages/cdn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:'",
Expand Down Expand Up @@ -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"
}
Expand Down
38 changes: 17 additions & 21 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:'",
Expand Down Expand Up @@ -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"
}
Expand Down
2 changes: 0 additions & 2 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -29,7 +28,6 @@
"default": "./dist/index.js"
}
},
"typesVersions": {},
"scripts": {
"start": "tsup --watch",
"build": "rollup --config",
Expand Down
10 changes: 7 additions & 3 deletions packages/wc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
"author": "Simon Ihmig <[email protected]>",
"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"
Expand Down

0 comments on commit ff0fb3d

Please sign in to comment.