Skip to content

Commit e65e424

Browse files
committed
Update to Svelte 4 and bump other dependencies
1 parent 10ac4ba commit e65e424

File tree

4 files changed

+23
-34
lines changed

4 files changed

+23
-34
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM node:22-alpine AS build
44
WORKDIR /app
55

66
COPY package.json .
7-
RUN npm install --legacy-peer-deps
7+
RUN npm install
88

99
COPY . .
1010
RUN npm run build

package.json

+14-16
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,25 @@
66
"build": "vite build",
77
"package": "svelte-kit package",
88
"preview": "vite preview",
9-
"prepare": "svelte-kit sync",
10-
"check": "svelte-check --tsconfig ./tsconfig.json",
11-
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
9+
"prepare": "svelte-kit sync"
1210
},
1311
"devDependencies": {
1412
"@jimmyverburgt/svelte-input-otp": "^0.0.3",
15-
"@paypal/paypal-js": "^5.1.4",
16-
"@sveltejs/adapter-node": "^1.1.0",
17-
"@sveltejs/kit": "^1.0.7",
18-
"mdsvex": "^0.10.6",
19-
"postcss": "^8.4.21",
13+
"@paypal/paypal-js": "^5.1.6",
14+
"@sveltejs/adapter-node": "^5.2.8",
15+
"@sveltejs/kit": "^2.7.2",
16+
"@sveltejs/vite-plugin-svelte": "^3.1.2",
17+
"mdsvex": "^0.12.3",
18+
"postcss": "^8.4.47",
2019
"postcss-import": "^15.1.0",
21-
"svelte": "^3.55.0",
22-
"svelte-check": "^3.0.1",
23-
"svelte-preprocess": "^5.0.0",
24-
"svelte-turnstile": "^0.5.0",
20+
"svelte": "^4.2.19",
21+
"svelte-preprocess": "^6.0.3",
22+
"svelte-turnstile": "^0.5.1",
2523
"svelte-use-click-outside": "^1.0.0",
26-
"tslib": "^2.4.1",
27-
"typescript": "^4.9.4",
28-
"unist-util-visit": "^4.1.1",
29-
"vite": "4.0.5"
24+
"tslib": "^2.8.0",
25+
"typescript": "^5.6.3",
26+
"unist-util-visit": "^4.1.2",
27+
"vite": "^5.4.9"
3028
},
3129
"type": "module"
3230
}

svelte.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import adapter from "@sveltejs/adapter-node";
2-
import preprocess from "svelte-preprocess";
2+
import { sveltePreprocess } from "svelte-preprocess";
33
import atImport from "postcss-import";
44
import { mdsvex } from "mdsvex";
55
import { markdown } from "./src/lib/markdown.js";
@@ -11,7 +11,7 @@ const config = {
1111
extensions: [ ".svelte", ".md" ],
1212

1313
preprocess: [
14-
preprocess({
14+
sveltePreprocess({
1515
postcss: {
1616
plugins: [
1717
atImport({

tsconfig.json

+6-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
{
22
"extends": "./.svelte-kit/tsconfig.json",
3-
"compilerOptions": {
4-
"allowJs": true,
5-
"checkJs": true,
6-
"esModuleInterop": true,
7-
"forceConsistentCasingInFileNames": true,
8-
"resolveJsonModule": true,
9-
"skipLibCheck": true,
10-
"sourceMap": true,
11-
"strict": true,
12-
"paths": {
13-
"$lib": ["./src/lib"],
14-
"$lib/*": ["./src/lib/*"]
15-
}
16-
}
17-
}
3+
"compilerOptions": {
4+
"allowJs": false,
5+
"forceConsistentCasingInFileNames": true,
6+
"strict": true
7+
}
8+
}

0 commit comments

Comments
 (0)