Skip to content

Commit

Permalink
fix exports in package.json for v6
Browse files Browse the repository at this point in the history
  • Loading branch information
mggower committed Apr 3, 2024
1 parent a7b8a9b commit 9e51ef6
Showing 1 changed file with 51 additions and 9 deletions.
60 changes: 51 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "High-performance network visualization library, rendering to WebGL as well as other targets",
"source": "src/index.umd.ts",
"main": "./index.js",
"exports": "./index.js",
"types": "./index.d.ts",
"scripts": {
"clean": "rm -rf dist && rm -rf .parcel-cache",
Expand Down Expand Up @@ -32,6 +31,56 @@
"distDir": "./dist/umd"
}
},
"exports": {
".": {
"default": "./index.js",
"types": "./index.d.ts"
},
"./renderers/image": {
"default": "./renderers/image/index.js",
"types": "./renderers/image/index.d.ts"
},
"./renderers/webgl": {
"default": "./renderers/webgl/index.js",
"types": "./renderers/webgl/index.d.ts"
},
"./bindings/react/*": {
"default": "./bindings/react/*.js",
"types": "./bindings/react/*.d.ts"
},
"./bindings/native/*": {
"default": "./bindings/native/*.js",
"types": "./bindings/native/*.d.ts"
},
"./layout/cluster": {
"default": "./layout/cluster/index.js",
"types": "./layout/cluster/index.d.ts"
},
"./layout/collide": {
"default": "./layout/collide/index.js",
"types": "./layout/collide/index.d.ts"
},
"./layout/components": {
"default": "./layout/components/index.js",
"types": "./layout/components/index.d.ts"
},
"./layout/fisheye": {
"default": "./layout/fisheye/index.js",
"types": "./layout/fisheye/index.d.ts"
},
"./layout/force": {
"default": "./layout/force/index.js",
"types": "./layout/force/index.d.ts"
},
"./layout/hierarchy": {
"default": "./layout/hierarchy/index.js",
"types": "./layout/hierarchy/index.d.ts"
},
"./layout/radial": {
"default": "./layout/radial/index.js",
"types": "./layout/radial/index.d.ts"
}
},
"author": "James Conkling <[email protected]> jameslaneconkling.github.io",
"license": "ISC",
"dependencies": {
Expand Down Expand Up @@ -82,14 +131,7 @@
"vite": "^4.4.9",
"vitest": "^0.34.4"
},
"keywords": [
"graph",
"network",
"infovis",
"visualization",
"react",
"webgl"
],
"keywords": ["graph", "network", "infovis", "visualization", "react", "webgl"],
"peerDependencies": {
"react": ">=16.0"
},
Expand Down

0 comments on commit 9e51ef6

Please sign in to comment.