From 485f02bbd06c3d3f9f9a080aece55fac2749a214 Mon Sep 17 00:00:00 2001 From: Artem Niehrieiev Date: Tue, 22 Oct 2024 07:38:06 +0000 Subject: [PATCH] Refactor package.json and yarn.lock for optional ibm_db dependency --- rocketadmin-agent/package.json | 11 ++++++++++- yarn.lock | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/rocketadmin-agent/package.json b/rocketadmin-agent/package.json index c149a965..e11bd008 100644 --- a/rocketadmin-agent/package.json +++ b/rocketadmin-agent/package.json @@ -6,6 +6,13 @@ "private": true, "license": "UNLICENSED", "type": "module", + "packageExtensions": { + "ibm_db": { + "dependencies": { + "node-gyp": "^10.2.0" + } + } + }, "scripts": { "prebuild": "rimraf dist", "build": "nest build", @@ -34,7 +41,6 @@ "argon2": "^0.41.1", "crypto-js": "^4.2.0", "get-port": "^7.1.0", - "ibm_db": "^3.2.4", "knex": "3.1.0", "mongodb": "^6.9.0", "mysql2": "^3.11.3", @@ -49,6 +55,9 @@ "winston": "^3.14.2", "yarn": "^1.22.22" }, + "optionalDependencies": { + "ibm_db": "^3.2.4" + }, "devDependencies": { "@nestjs/cli": "^10.4.5", "@nestjs/schematics": "^10.1.4", diff --git a/yarn.lock b/yarn.lock index 22d296c2..4febc2cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11483,6 +11483,9 @@ __metadata: typescript: ^5.6.2 winston: ^3.14.2 yarn: ^1.22.22 + dependenciesMeta: + ibm_db: + optional: true languageName: unknown linkType: soft