diff --git a/package.json b/package.json index 90d4d87a..c3926874 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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 jameslaneconkling.github.io", "license": "ISC", "dependencies": { @@ -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" },