Merge pull request #5019 from dimaMachina/patch-2

add `"./package.json": "./package.json",` in `exports` field in `package.json`
This commit is contained in:
Moritz Klack
2025-02-21 16:32:10 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@xyflow/svelte": patch
---
Add `"./package.json" to the `exports` field so that users can import it

View File

@@ -34,6 +34,7 @@
"type": "module",
"module": "./dist/lib/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/lib/index.d.ts",
"svelte": "./dist/lib/index.js",