From 37ed26c2b69a00641da5c89ea7a92920fdb4e489 Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Mon, 8 Jul 2024 22:36:37 +0800 Subject: [PATCH] fix: drop the import optimize in vite. --- astro.config.ts | 2 +- package-lock.json | 36 ++++++++++++++++++++++++++++-------- package.json | 4 ++-- 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index f562c21..5d08f53 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -65,7 +65,7 @@ export default defineConfig({ }, vite: { // Add this for avoiding the needless import optimize in Vite. - optimizeDeps: { exclude: ['@napi-rs/canvas'] }, + optimizeDeps: { exclude: ['@napi-rs/canvas', 'opendal'] }, }, build: { assets: 'cats', diff --git a/package-lock.json b/package-lock.json index c37e108..7806759 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@astrojs/node": "^8.3.2", "@astrojs/rss": "^4.0.7", "astro": "^4.11.5", - "drizzle-orm": "^0.31.2", + "drizzle-orm": "^0.31.3", "fuse.js": "^7.0.0", "lodash": "^4.17.21", "luxon": "^3.4.4", @@ -33,7 +33,7 @@ "@types/qrcode-svg": "^1.1.4", "@types/unist": "^3.0.2", "aplayer": "^1.10.1", - "astro-uploader": "^1.1.1", + "astro-uploader": "^1.1.2", "bootstrap": "^5.3.3", "prettier": "^3.3.2", "prettier-plugin-astro": "^0.14.0", @@ -2158,6 +2158,25 @@ "url": "https://opencollective.com/popperjs" } }, + "node_modules/@prisma/client": { + "version": "5.16.1", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.16.1.tgz", + "integrity": "sha512-wM9SKQjF0qLxdnOZIVAIMKiz6Hu7vDt4FFAih85K1dk/Rr2mdahy6d3QP41K62N9O0DJJA//gUDA3Mp49xsKIg==", + "hasInstallScript": true, + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=16.13" + }, + "peerDependencies": { + "prisma": "*" + }, + "peerDependenciesMeta": { + "prisma": { + "optional": true + } + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.18.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", @@ -2902,9 +2921,9 @@ } }, "node_modules/astro-uploader": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/astro-uploader/-/astro-uploader-1.1.1.tgz", - "integrity": "sha512-Pja+lINI1WsqSklaCdXl/B4YmXDgnCG2Lcr+lLjcIPDBG/fGX/XkA35rZhj5Z1tihqbjIX8CnNsgLedB76H9nQ==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/astro-uploader/-/astro-uploader-1.1.2.tgz", + "integrity": "sha512-8YtFPS0Cpn5oW3WvuG7d/1xl3C0+H0FEzT8MSuTfOj1woQxkI2sLSwHjZ0Zwe1+TIgwobOnOseEYEb40anfbgQ==", "dev": true, "license": "MIT", "dependencies": { @@ -3658,9 +3677,9 @@ "license": "MIT" }, "node_modules/drizzle-orm": { - "version": "0.31.2", - "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.31.2.tgz", - "integrity": "sha512-QnenevbnnAzmbNzQwbhklvIYrDE8YER8K7kSrAWQSV1YvFCdSQPzj+jzqRdTSsV2cDqSpQ0NXGyL1G9I43LDLg==", + "version": "0.31.3", + "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.31.3.tgz", + "integrity": "sha512-EpBqJeeUHH3jQrXSojCnclCoP5jMZafzSQs0NO1cu7t6cf4F+8acC9DjyWhanCqEmRn+0nJyAEU6xHQDYTEjnQ==", "license": "Apache-2.0", "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", @@ -3671,6 +3690,7 @@ "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1", + "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", diff --git a/package.json b/package.json index 2a8d1fb..8a62f56 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@astrojs/node": "^8.3.2", "@astrojs/rss": "^4.0.7", "astro": "^4.11.5", - "drizzle-orm": "^0.31.2", + "drizzle-orm": "^0.31.3", "fuse.js": "^7.0.0", "lodash": "^4.17.21", "luxon": "^3.4.4", @@ -65,7 +65,7 @@ "@types/qrcode-svg": "^1.1.4", "@types/unist": "^3.0.2", "aplayer": "^1.10.1", - "astro-uploader": "^1.1.1", + "astro-uploader": "^1.1.2", "bootstrap": "^5.3.3", "prettier": "^3.3.2", "prettier-plugin-astro": "^0.14.0",