Skip to content

Commit

Permalink
fix: fix missing "types" field in package.json
Browse files Browse the repository at this point in the history
TypeScript was not correctly picking up `remark-mermaid-dataurl`'s
types, because there was no `"types"` field in the `package.json` file.

Fixes: 1dd939b
  • Loading branch information
aloisklink committed May 11, 2023
1 parent 40eed00 commit 3fd6c17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix missing `"types"` field in `package.json`. Types should now be correctly
exported.

## [2.1.0] - 2023-05-10

### Added
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"src/",
"dist-types/"
],
"types": "./dist-types/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/aloisklink/remark-mermaid-dataurl.git"
Expand Down

0 comments on commit 3fd6c17

Please sign in to comment.