Skip to content

Commit

Permalink
fix: Add typesVersions to package.json so tsconfig can find types of …
Browse files Browse the repository at this point in the history
…cjs export
  • Loading branch information
travisstebbins committed Jan 31, 2025
1 parent 61c4928 commit 337e306
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/legend-graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@
"type": "module",
"exports": {
".": "./lib/index.js",
"./cjs": "./lib/bundles/bundle.cjs.js",
"./cjs": {
"import": "./lib/index.js",
"require": "./lib/bundles/bundle.cjs.js"
},
"./test": "./lib/__test__.js"
},
"module": "lib/index.js",
"types": "lib/index.d.ts",
"typesVersions": {
"*": {
"cjs": [
"./lib/index.d.ts"
]
}
},
"scripts": {
"build": "yarn clean && yarn build:ts",
"build:ts": "tsc --project ./tsconfig.build.json",
Expand Down

0 comments on commit 337e306

Please sign in to comment.