Skip to content

Commit

Permalink
fix(package): specify types in package.json and exports field
Browse files Browse the repository at this point in the history
Add support for native ESM with TypeScript in Node.js 16 mode
  • Loading branch information
remarkablemark committed Jan 17, 2023
1 parent 9d8bf6e commit 21fb028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"description": "HTML to DOM parser.",
"author": "Mark <mark@remarkablemark.org>",
"main": "index.js",
"types": "index.d.ts",
"module": "index.mjs",
"exports": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.js"
},
Expand Down

0 comments on commit 21fb028

Please sign in to comment.