From 05cdc4778d08d875021f91de94b741a1300bb045 Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Thu, 14 Feb 2019 08:38:14 +0100 Subject: [PATCH 1/2] `knex` is more a peerDependency than a direct dependency As `knex-csv-seeder` works with the majority of the `knex` version, we allow all `knex@0.x.x` to match with it. --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ffe014e..81a9676 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,13 @@ "url": "https://github.com/holyshared/knex-csv-seeder/issues" }, "homepage": "https://github.com/holyshared/knex-csv-seeder", + "peerDependencies": { + "knex": "0" + }, "dependencies": { "bluebird": "^3.3.5", "csv-parse": "~1.1", "iconv-lite": "~0.4", - "knex": "^0.11.5", "lodash": "^4.11.1" }, "devDependencies": { From ac32abc4c2cce85c45836f76dba69e652ea7e2ba Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Thu, 14 Feb 2019 08:41:56 +0100 Subject: [PATCH 2/2] Keep local knex dev dependency version for the tests --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 81a9676..9b095b5 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "eslint": "^2.8.0", "espower-coffee": "~1.0", "istanbul": "~0.4", + "knex": "^0.11.5", "mocha": "^2.5.3", "mysql": "^2.11.1", "power-assert": "^1.4.1"