Skip to content

Commit

Permalink
chore: add "." in exports
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Apr 11, 2023
1 parent bc41a9c commit 868d7a8
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 50 deletions.
154 changes: 107 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
"dist"
],
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./SOffline.svelte": {
"types": "./dist/components/SOffline.svelte.d.ts",
"svelte": "./dist/components/SOffline.svelte",
"default": "./dist/components/SOffline.svelte"
}
},
"./package.json": "./package.json"
},
"type": "module",
"scripts": {
Expand All @@ -27,7 +31,7 @@
"preview": "vite preview",
"package": "svelte-package",
"package:watch": "svelte-package --watch",
"prepublishOnly": "npm run package && npx publint",
"prepublishOnly": "npm run build && npx publint",
"test": "echo 'test!'",
"postinstall": "svelte-kit sync",
"prepare": "is-ci || husky install",
Expand Down

0 comments on commit 868d7a8

Please sign in to comment.