Skip to content

Commit

Permalink
fix: add an exports map (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 5, 2022
1 parent 5b63fe6 commit 60890de
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .changeset/wild-students-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'imagetools-core': patch
'rollup-plugin-imagetools': patch
'vite-imagetools': patch
---

fix: add an exports map
11 changes: 8 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "imagetools-core",
"version": "3.2.1",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": "dist/index.mjs",
"require": "dist/index.cjs",
"types": "dist/index.d.ts"
}
},
"files": [
"dist"
],
Expand Down
11 changes: 8 additions & 3 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "rollup-plugin-imagetools",
"version": "3.0.10",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": "dist/index.mjs",
"require": "dist/index.cjs",
"types": "dist/index.d.ts"
}
},
"license": "MIT",
"files": [
"dist"
Expand Down
11 changes: 8 additions & 3 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"name": "vite-imagetools",
"description": "Load and transform images using a toolbox of import directives!",
"version": "4.0.9",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": "dist/index.mjs",
"require": "dist/index.cjs",
"types": "dist/index.d.ts"
}
},
"files": [
"dist"
],
Expand Down

0 comments on commit 60890de

Please sign in to comment.