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 a542e17
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 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,28 @@
"distDir": "./dist/umd"
}
},
"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 <[email protected]> jameslaneconkling.github.io",
"license": "ISC",
"dependencies": {
Expand Down Expand Up @@ -82,14 +103,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 a542e17

Please sign in to comment.