Skip to content

Commit

Permalink
fix(esm): fix ESM types by adding index.d.mts
Browse files Browse the repository at this point in the history
Fixes #205
  • Loading branch information
remarkablemark committed Dec 1, 2023
1 parent 767d79c commit 73ae1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jspm_packages
# Build files
cjs/
dist/
esm/index.d.mts

# Vim swap files
*.swp
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"author": "Mark <[email protected]>",
"main": "./cjs/index.js",
"module": "./esm/index.mjs",
"types": "./cjs/index.d.ts",
"exports": {
"types": "./cjs/index.d.ts",
"import": "./esm/index.mjs",
"require": "./cjs/index.js"
},
"scripts": {
"build": "run-s build:*",
"build:cjs": "tsc",
"build:esm": "awk '!/sourceMappingURL/' cjs/index.d.ts > esm/index.d.mts",
"build:umd": "rollup --config --failAfterWarnings",
"clean": "rm -rf cjs coverage dist",
"lint": "eslint --ignore-path .gitignore .",
Expand Down

0 comments on commit 73ae1d4

Please sign in to comment.