Skip to content

Commit

Permalink
fix(ogimage): Corrected package.json exports (#11724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Nov 20, 2024
1 parent 7543b1b commit f1f05ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .changesets/11724.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- fix(ogimage): Corrected package.json exports (#11724) by @Tobbe

Fix publish warnings in our ogImage package. Making TS types available for anyone using this package
16 changes: 9 additions & 7 deletions packages/ogimage-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,29 @@
"directory": "packages/ogimage-gen"
},
"license": "MIT",
"type": "commonjs",
"exports": {
"./plugin": {
"types": "./dist/vite-plugin-ogimage-gen.d.ts",
"import": "./dist/vite-plugin-ogimage-gen.js",
"default": "./cjsWrappers/plugin.js",
"types": "./dist/vite-plugin-ogimage-gen.d.ts"
"default": "./cjsWrappers/plugin.js"
},
"./middleware": {
"types": "./dist/OgImageMiddleware.d.ts",
"import": "./dist/OgImageMiddleware.js",
"default": "./cjsWrappers/middleware.js",
"react-server": "./empty.js",
"types": "./dist/OgImageMiddleware.d.ts"
"default": "./cjsWrappers/middleware.js"
},
"./hooks": {
"types": "./dist/hooks.d.ts",
"import": "./dist/hooks.js",
"default": "./cjsWrappers/hooks.js",
"types": "./dist/hooks.d.ts"
"default": "./cjsWrappers/hooks.js"
}
},
"files": [
"dist",
"cjsWrappers"
"cjsWrappers",
"empty.js"
],
"scripts": {
"build": "tsx ./build.mts && yarn build:types",
Expand Down

0 comments on commit f1f05ce

Please sign in to comment.