From 134c6bbb5f2560fd1fa7b751ef1d9188265ac367 Mon Sep 17 00:00:00 2001 From: Xinrea Date: Sun, 31 Aug 2025 11:01:32 +0800 Subject: [PATCH] chore: update dependencies --- package.json | 2 +- tailwind.config.cjs | 27 --------------------------- tailwind.config.js | 30 ++++++++++++++++++++++++++++++ tsconfig.json | 19 +++++++++++++++---- yarn.lock | 8 ++++---- 5 files changed, 50 insertions(+), 36 deletions(-) delete mode 100644 tailwind.config.cjs create mode 100644 tailwind.config.js diff --git a/package.json b/package.json index 61331f1..682b54e 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "tailwindcss": "^3.3.0", "ts-node": "^10.9.1", "tslib": "^2.4.1", - "typescript": "^4.6.4", + "typescript": "^5.0.0", "vite": "^4.0.0", "vitepress": "^1.6.3", "vitepress-plugin-mermaid": "^2.0.17" diff --git a/tailwind.config.cjs b/tailwind.config.cjs deleted file mode 100644 index bf00fe9..0000000 --- a/tailwind.config.cjs +++ /dev/null @@ -1,27 +0,0 @@ -import flowbitePlugin from 'flowbite/plugin' - -export default { - content: ['./src/**/*.{html,js,svelte,ts}', './node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'], - darkMode: 'class', - theme: { - extend: { - colors: { - // flowbite-svelte - primary: { - 50: '#FFF5F2', - 100: '#FFF1EE', - 200: '#FFE4DE', - 300: '#FFD5CC', - 400: '#FFBCAD', - 500: '#FE795D', - 600: '#EF562F', - 700: '#EB4F27', - 800: '#CC4522', - 900: '#A5371B' - } - } - } - }, - - plugins: [flowbitePlugin] -}; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..7d57665 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,30 @@ +import flowbitePlugin from "flowbite/plugin"; + +export default { + content: [ + "./src/**/*.{html,js,svelte,ts}", + "./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}", + ], + darkMode: "class", + theme: { + extend: { + colors: { + // flowbite-svelte + primary: { + 50: "#FFF5F2", + 100: "#FFF1EE", + 200: "#FFE4DE", + 300: "#FFD5CC", + 400: "#FFBCAD", + 500: "#FE795D", + 600: "#EF562F", + 700: "#EB4F27", + 800: "#CC4522", + 900: "#A5371B", + }, + }, + }, + }, + + plugins: [flowbitePlugin], +}; diff --git a/tsconfig.json b/tsconfig.json index d383031..a94e61a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,23 @@ { - "extends": "@tsconfig/svelte/tsconfig.json", "compilerOptions": { - "target": "ESNext", + "moduleResolution": "node", + "target": "es2017", + "isolatedModules": true, + /** + To have warnings/errors of the Svelte compiler at the correct position, + enable source maps by default. + */ + "sourceMap": true, + + "strict": false, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, "useDefineForClassFields": true, "module": "ESNext", "resolveJsonModule": true, "baseUrl": ".", + "verbatimModuleSyntax": true, /** * Typecheck JS in `.svelte` and `.js` files by default. * Disable checkJs if you'd like to use dynamic types in JS. @@ -13,8 +25,7 @@ * of JS in `.svelte` files. */ "allowJs": true, - "checkJs": true, - "isolatedModules": true + "checkJs": true }, "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"], "references": [{ "path": "./tsconfig.node.json" }] diff --git a/yarn.lock b/yarn.lock index fd36347..b2dd934 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3794,10 +3794,10 @@ tslib@^2.4.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== -typescript@^4.6.4: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typescript@^5.0.0: + version "5.9.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.2.tgz#d93450cddec5154a2d5cabe3b8102b83316fb2a6" + integrity sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A== typescript@^5.0.3: version "5.8.3"