Skip to content

Commit

Permalink
specify types for "." export (#60)
Browse files Browse the repository at this point in the history
Since the types file does not have the same name as the js file, we need to specify it explicitly https://stackoverflow.com/a/70020984/2747370
  • Loading branch information
ChristopherChudzicki authored Jan 18, 2023
1 parent 25be106 commit d9b92dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### MathBox Changelog

### Unreleased

- Support Typescript `moduleResolution: node16`.

### 2.3.0

- improved TS defintions for color, vector, matrix, and quaternion based properties. [#55](https://github.com/unconed/mathbox/pull/55)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"module": "./build/esm/index.js",
"exports": {
".": {
"types": "./build/esm/types.d.ts",
"import": "./build/esm/index.js"
},
"./mathbox.css": {
Expand Down

0 comments on commit d9b92dd

Please sign in to comment.