Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 0bba933

Browse files
committed
Fixed build issue
1 parent ba9b1a9 commit 0bba933

File tree

9 files changed

+27
-18
lines changed

9 files changed

+27
-18
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
# Artifacts
66
node_modules
77
dist
8-
.svelte-kit
8+
build
9+
.svelte-kit
10+
pagefind/

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"files": {
3-
"ignore": ["dist", ".svelte-kit"]
3+
"ignore": ["dist", "build", ".svelte-kit", "node_modules", "pagefind"]
44
},
55
"overrides": [
66
{

packages/floating-ui-svelte/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@skeletonlabs/floating-ui-svelte",
33
"version": "0.3.2",
44
"scripts": {
5-
"build": "svelte-package --input ./src",
5+
"build": "svelte-kit sync && svelte-package --input ./src",
66
"build:watch": "pnpm build --watch",
77
"test": "vitest run",
88
"test:watch": "pnpm test --watch"
@@ -22,6 +22,7 @@
2222
"svelte": "^5.0.0"
2323
},
2424
"devDependencies": {
25+
"@sveltejs/kit": "^2.15.1",
2526
"@sveltejs/package": "^2.3.7",
2627
"@sveltejs/vite-plugin-svelte": "^5.0.3",
2728
"@testing-library/jest-dom": "^6.6.3",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @ts-check
2+
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
3+
4+
/** @type {import('@sveltejs/kit').Config} */
5+
const config = {
6+
preprocess: [vitePreprocess()],
7+
};
8+
9+
export default config;

packages/floating-ui-svelte/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "./.svelte-kit/tsconfig.json",
23
"compilerOptions": {
34
"allowJs": true,
45
"checkJs": true,

pnpm-lock.yaml

Lines changed: 9 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/docs/.gitkeep

Whitespace-only changes.

sites/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"@skeletonlabs/floating-ui-svelte": "workspace:^",
15-
"@sveltejs/adapter-auto": "^3.3.1",
15+
"@sveltejs/adapter-static": "^3.0.8",
1616
"@sveltejs/kit": "^2.15.1",
1717
"@sveltejs/vite-plugin-svelte": "^5.0.3",
1818
"autoprefixer": "^10.4.20",

sites/docs/svelte.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
import adapter from "@sveltejs/adapter-auto";
1+
import adapter from "@sveltejs/adapter-static";
22
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
33

44
/** @type {import('@sveltejs/kit').Config} */
55
const config = {
6-
// Consult https://svelte.dev/docs/kit/integrations
7-
// for more information about preprocessors
86
preprocess: vitePreprocess(),
9-
107
kit: {
11-
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
12-
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
13-
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
148
adapter: adapter(),
159
},
1610
};

0 commit comments

Comments
 (0)