Skip to content

Commit

Permalink
fix: indicate to svelte-aware tooling that headless and lib are svelt…
Browse files Browse the repository at this point in the history
…e libraries
  • Loading branch information
quentinderoubaix committed Dec 20, 2023
1 parent e6d32d8 commit a511084
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions svelte/headless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,42 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./components/*": {
"types": "./dist/components/*/*.d.ts",
"svelte": "./dist/components/*/*.js",
"default": "./dist/components/*/*.js"
},
"./config": {
"types": "./dist/config.d.ts",
"svelte": "./dist/config.js",
"default": "./dist/config.js"
},
"./slot": {
"types": "./dist/slot.d.ts",
"svelte": "./dist/slot.js",
"default": "./dist/slot.js"
},
"./types": {
"types": "./dist/types.d.ts",
"svelte": "./dist/types.js",
"default": "./dist/types.js"
},
"./services/*": {
"types": "./dist/generated/services/*.d.ts",
"svelte": "./dist/generated/services/*.js",
"default": "./dist/generated/services/*.js"
},
"./services/transitions/*": {
"types": "./dist/generated/services/transitions/*.d.ts",
"svelte": "./dist/generated/services/transitions/*.js",
"default": "./dist/generated/services/transitions/*.js"
},
"./utils/*": {
"types": "./dist/generated/utils/*.d.ts",
"svelte": "./dist/generated/utils/*.js",
"default": "./dist/generated/utils/*.js"
}
},
Expand Down
8 changes: 8 additions & 0 deletions svelte/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,42 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"default": "./dist/index.js"
},
"./components/*": {
"types": "./dist/components/*/index.d.ts",
"svelte": "./dist/components/*/index.js",
"default": "./dist/components/*/index.js"
},
"./config": {
"types": "./dist/generated/config.d.ts",
"svelte": "./dist/generated/config.js",
"default": "./dist/generated/config.js"
},
"./slot": {
"types": "./dist/generated/slot.d.ts",
"svelte": "./dist/generated/slot.js",
"default": "./dist/generated/slot.js"
},
"./types": {
"types": "./dist/generated/types.d.ts",
"svelte": "./dist/generated/types.js",
"default": "./dist/generated/types.js"
},
"./services/*": {
"types": "./dist/generated/services/*.d.ts",
"svelte": "./dist/generated/services/*.js",
"default": "./dist/generated/services/*.js"
},
"./services/transitions/*": {
"types": "./dist/generated/services/transitions/*.d.ts",
"svelte": "./dist/generated/services/transitions/*.js",
"default": "./dist/generated/services/transitions/*.js"
},
"./utils/*": {
"types": "./dist/generated/utils/*.d.ts",
"svelte": "./dist/generated/utils/*.js",
"default": "./dist/generated/utils/*.js"
}
},
Expand Down

0 comments on commit a511084

Please sign in to comment.