Skip to content

Commit

Permalink
fix(core): import/require export conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Jul 9, 2024
1 parent 24fe346 commit a537cd2
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 18 deletions.
39 changes: 30 additions & 9 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,40 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"types": "./dist/index.d.mts",
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"default": "./dist/index.mjs"
},
"./blurhash": {
"types": "./dist/blurhash.d.ts",
"import": "./dist/blurhash.mjs",
"require": "./dist/blurhash.cjs"
"types": "./dist/blurhash.d.mts",
"import": {
"types": "./dist/blurhash.d.mts",
"default": "./dist/blurhash.mjs"
},
"require": {
"types": "./dist/blurhash.d.cts",
"default": "./dist/blurhash.cjs"
},
"default": "./dist/blurhash.mjs"
},
"./thumbhash": {
"types": "./dist/thumbhash.d.ts",
"import": "./dist/thumbhash.mjs",
"require": "./dist/thumbhash.cjs"
"types": "./dist/thumbhash.d.mts",
"import": {
"types": "./dist/thumbhash.d.mts",
"default": "./dist/thumbhash.mjs"
},
"require": {
"types": "./dist/thumbhash.d.cts",
"default": "./dist/thumbhash.cjs"
},
"default": "./dist/thumbhash.mjs"
},
"./*": "./*"
},
Expand Down
39 changes: 30 additions & 9 deletions packages/unlazy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,40 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"types": "./dist/index.d.mts",
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"default": "./dist/index.mjs"
},
"./blurhash": {
"types": "./dist/blurhash.d.ts",
"import": "./dist/blurhash.mjs",
"require": "./dist/blurhash.cjs"
"types": "./dist/blurhash.d.mts",
"import": {
"types": "./dist/blurhash.d.mts",
"default": "./dist/blurhash.mjs"
},
"require": {
"types": "./dist/blurhash.d.cts",
"default": "./dist/blurhash.cjs"
},
"default": "./dist/blurhash.mjs"
},
"./thumbhash": {
"types": "./dist/thumbhash.d.ts",
"import": "./dist/thumbhash.mjs",
"require": "./dist/thumbhash.cjs"
"types": "./dist/thumbhash.d.mts",
"import": {
"types": "./dist/thumbhash.d.mts",
"default": "./dist/thumbhash.mjs"
},
"require": {
"types": "./dist/thumbhash.d.cts",
"default": "./dist/thumbhash.cjs"
},
"default": "./dist/thumbhash.mjs"
}
},
"main": "./dist/index.cjs",
Expand Down

0 comments on commit a537cd2

Please sign in to comment.