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 Feb 28, 2024
1 parent 73a603b commit 7f764dd
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 7f764dd

Please sign in to comment.