Skip to content

Commit

Permalink
fix(ogimage): Corrected package.json exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Nov 17, 2024
1 parent 3ed44ec commit 9030b50
Showing 1 changed file with 9 additions and 7 deletions.
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 9030b50

Please sign in to comment.