diff --git a/package.json b/package.json index bb1c243..667baf5 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "0.7.0-rc.15", "description": "High-performance network visualization library, rendering to WebGL as well as other targets", "main": "./index.js", - "exports": "./index.js", "types": "./index.d.ts", "scripts": { "clean": "rm -rf dist && rm -rf .parcel-cache", @@ -37,6 +36,28 @@ "distDir": "./dist" } }, + "exports": { + ".": { + "default": "./index.js", + "types": "./index.d.ts" + }, + "./renderers/*": { + "default": "./renderers/*/index.js", + "types": "./renderers/*/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/*": { + "default": "./layout/*/index.js", + "types": "./layout/*/index.d.ts" + } + }, "author": "James Conkling jameslaneconkling.github.io", "license": "ISC", "dependencies": { @@ -81,14 +102,7 @@ "vite": "^4.5.0", "vitest": "^0.34.6" }, - "keywords": [ - "graph", - "network", - "infovis", - "visualization", - "react", - "webgl" - ], + "keywords": ["graph", "network", "infovis", "visualization", "react", "webgl"], "peerDependencies": { "react": ">=16.0" },