From 4948510195d02ad76cf7918f47f92756eea48f18 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Tue, 31 Jan 2023 16:26:37 +0100 Subject: [PATCH] Upgrade packages --- package-lock.json | 1 - package.json | 1 - svelte.config.js | 12 ++++++------ tsconfig.json | 7 ++++++- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 00151ea..f68a4bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,6 @@ "sade": "^1.8.1", "svelte": "^3.44.0", "svelte-check": "^3.0.3", - "svelte-preprocess": "^5.0.1", "svelte2tsx": "^0.6.0", "tailwindcss": "^3.1.5", "tslib": "^2.3.1", diff --git a/package.json b/package.json index 6f7a8e1..82db8e4 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "sade": "^1.8.1", "svelte": "^3.44.0", "svelte-check": "^3.0.3", - "svelte-preprocess": "^5.0.1", "svelte2tsx": "^0.6.0", "tailwindcss": "^3.1.5", "tslib": "^2.3.1", diff --git a/svelte.config.js b/svelte.config.js index e554cee..bb5c5c4 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -3,6 +3,12 @@ import { vitePreprocess } from "@sveltejs/kit/vite" /** @type {import('@sveltejs/kit').Config} */ const config = { + kit: { + adapter: adapter({ + precompress: true, + }), + }, + package: { exports: (filePath) => { return !filePath.startsWith("server/") @@ -15,12 +21,6 @@ const config = { // Consult https://kit.svelte.dev/docs/integrations#preprocessors // for more information about preprocessors preprocess: vitePreprocess(), - - kit: { - adapter: adapter({ - precompress: true, - }), - }, } export default config diff --git a/tsconfig.json b/tsconfig.json index 794b95b..a48bcc9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,12 @@ "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, - "strict": true + "strict": true, + "paths": { + "$lib": ["./src/lib"], + "$lib/*": ["./src/lib/*"], + "$locales/*": ["./locales/*.json"] + } } // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias //