Skip to content

Commit

Permalink
fix: don't include fonts to the library
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Dec 3, 2024
1 parent efcce9b commit 72fe24a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import type { Preview } from '@storybook/svelte'
import Root from './Root.svelte'

import '@fontsource/ibm-plex-sans-kr/300.css'
import '@fontsource/ibm-plex-sans-kr/400.css'
import '@fontsource/ibm-plex-sans-kr/500.css'
import '@fontsource/ibm-plex-sans-kr/600.css'
import '@fontsource/ibm-plex-sans-kr/700.css'

const preview: Preview = {
parameters: {
controls: {
Expand All @@ -10,7 +16,6 @@ const preview: Preview = {
}
}
},
// @ts-expect-error
decorators: [() => Root]
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite-plugin-dts": "^4.3.0",
"@fontsource/ibm-plex-sans-kr": "^5.1.0",
"vite-tsconfig-paths": "^5.0.1"
},
"peerDependencies": {
"@melt-ui/svelte": "*",
"svelte": "5"
},
"dependencies": {
"@fontsource/ibm-plex-sans-kr": "^5.1.0",
"clsx": "^2.1.1",
"js-cookie": "^3.0.5",
"svelte-component-actions": "^1.1.0"
Expand Down
6 changes: 0 additions & 6 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
// Reexport your entry components here

import '@fontsource/ibm-plex-sans-kr/300.css'
import '@fontsource/ibm-plex-sans-kr/400.css'
import '@fontsource/ibm-plex-sans-kr/500.css'
import '@fontsource/ibm-plex-sans-kr/600.css'
import '@fontsource/ibm-plex-sans-kr/700.css'

// System / Utils
export * from './system/context.js'
export * from './assets/index.js'
Expand Down

0 comments on commit 72fe24a

Please sign in to comment.