Skip to content

Commit

Permalink
fix(package.json): "." declaration in exports (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: Mirco Steyer <m.steyer@finatix.de>
  • Loading branch information
MircoSteyer and Mirco Steyer committed Nov 19, 2023
1 parent 26a75d4 commit 85afdb0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-cameras-nail.md
@@ -0,0 +1,5 @@
---
'svelte-preprocess-delegate-events': patch
---

fix: fix exports of package.json for ESM resolution
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -129,6 +129,9 @@ dist
.yarn/install-state.gz
.pnp.*

# Jetbrains IDEs
.idea

# ----------------------------------------------------------------------
# svelte-preprocess-delegate-events
# ----------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -27,6 +27,10 @@
"!/**/spec"
],
"exports": {
".": {
"types": "./index.d.ts",
"default": "./src/index.js"
},
"./package.json": "./package.json",
"./preprocess": "./src/preprocess/index.js",
"./runtime": "./src/runtime/index.js"
Expand Down

0 comments on commit 85afdb0

Please sign in to comment.