Skip to content

Commit

Permalink
fix(build): Add types: and default: entries to exports['./core']
Browse files Browse the repository at this point in the history
In the 'blockly/core' export:

- Replace the browser: entrypoint with a default: one.
- Add a types: entrypoint for core.
  • Loading branch information
cpcallen committed Mar 13, 2024
1 parent c72630d commit df2da72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
"default": "./index.js"
},
"./core": {
"browser": "./blockly_compressed.js",
"node": "./core-node.js"
"types": "./core.d.ts",
"node": "./core-node.js",
"default": "./blockly_compressed.js"
},
"./blocks": {
"types": "./blocks.d.ts",
Expand Down

0 comments on commit df2da72

Please sign in to comment.