Skip to content

Commit e287d15

Browse files
fix build errors
Type Generation Error (ContentsList.svelte.ts) Missing @sveltejs/kit Dependency Repository Format Warning (publint):
1 parent 675276d commit e287d15

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"name": "@communitiesuk/svelte-component-library",
33
"version": "0.1.0",
4-
"repository":"https://github.com/communitiesuk/oflog_svelte_component_library",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/communitiesuk/oflog_svelte_component_library.git"
7+
},
58
"publishConfig": {
6-
"registry": "https://npm.pkg.github.com"},
9+
"registry": "https://npm.pkg.github.com"
10+
},
711
"author": "Ibrahim-Haizel",
812
"description": "A collection of reusable Svelte components",
913
"scripts": {
@@ -39,7 +43,8 @@
3943
}
4044
},
4145
"peerDependencies": {
42-
"svelte": "^5.0.0"
46+
"svelte": "^5.0.0",
47+
"@sveltejs/kit": "^2.0.0"
4348
},
4449
"devDependencies": {
4550
"@sveltejs/adapter-auto": "^3.3.0",

src/lib/components/ui/ContentsList.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
<script lang="ts">
2-
import { clsx } from "clsx";
3-
4-
type ContentItem = {
1+
<script context="module" lang="ts">
2+
export type ContentItem = {
53
href?: string;
64
text: string;
75
active?: boolean;
86
items?: ContentItem[];
97
};
8+
</script>
9+
10+
<script lang="ts">
11+
import { clsx } from "clsx";
1012
1113
type Props = {
1214
contents: ContentItem[];

0 commit comments

Comments
 (0)