Skip to content

Commit

Permalink
Update to Svelte 4 and bump other dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Oct 20, 2024
1 parent 10ac4ba commit e65e424
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM node:22-alpine AS build
WORKDIR /app

COPY package.json .
RUN npm install --legacy-peer-deps
RUN npm install

COPY . .
RUN npm run build
Expand Down
30 changes: 14 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@
"build": "vite build",
"package": "svelte-kit package",
"preview": "vite preview",
"prepare": "svelte-kit sync",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@jimmyverburgt/svelte-input-otp": "^0.0.3",
"@paypal/paypal-js": "^5.1.4",
"@sveltejs/adapter-node": "^1.1.0",
"@sveltejs/kit": "^1.0.7",
"mdsvex": "^0.10.6",
"postcss": "^8.4.21",
"@paypal/paypal-js": "^5.1.6",
"@sveltejs/adapter-node": "^5.2.8",
"@sveltejs/kit": "^2.7.2",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"mdsvex": "^0.12.3",
"postcss": "^8.4.47",
"postcss-import": "^15.1.0",
"svelte": "^3.55.0",
"svelte-check": "^3.0.1",
"svelte-preprocess": "^5.0.0",
"svelte-turnstile": "^0.5.0",
"svelte": "^4.2.19",
"svelte-preprocess": "^6.0.3",
"svelte-turnstile": "^0.5.1",
"svelte-use-click-outside": "^1.0.0",
"tslib": "^2.4.1",
"typescript": "^4.9.4",
"unist-util-visit": "^4.1.1",
"vite": "4.0.5"
"tslib": "^2.8.0",
"typescript": "^5.6.3",
"unist-util-visit": "^4.1.2",
"vite": "^5.4.9"
},
"type": "module"
}
4 changes: 2 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import adapter from "@sveltejs/adapter-node";
import preprocess from "svelte-preprocess";
import { sveltePreprocess } from "svelte-preprocess";
import atImport from "postcss-import";
import { mdsvex } from "mdsvex";
import { markdown } from "./src/lib/markdown.js";
Expand All @@ -11,7 +11,7 @@ const config = {
extensions: [ ".svelte", ".md" ],

preprocess: [
preprocess({
sveltePreprocess({
postcss: {
plugins: [
atImport({
Expand Down
21 changes: 6 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"paths": {
"$lib": ["./src/lib"],
"$lib/*": ["./src/lib/*"]
}
}
}
"compilerOptions": {
"allowJs": false,
"forceConsistentCasingInFileNames": true,
"strict": true
}
}

0 comments on commit e65e424

Please sign in to comment.