chore: add exports field to package.json (#1864)

Add an `exports` field to resolve a Vite development warning. The `package.json#svelte` entry field is deprecated and will eventually no longer be used.
This commit is contained in:
Hyunseung 2023-12-17 02:19:57 +09:00 committed by GitHub
commit 7bef3fae62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,13 @@
"license": "Apache-2.0",
"description": "Svelte implementation of the Carbon Design System",
"svelte": "./src/index.js",
"exports": {
".": {
"svelte": "./src/index.js"
},
"./css/*": "./css/*",
"./src/*": "./src/*"
},
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"types": "./types/index.d.ts",