diff --git a/packages/redux-devtools-cli/package.json b/packages/redux-devtools-cli/package.json index ebe85f69..fb02714e 100644 --- a/packages/redux-devtools-cli/package.json +++ b/packages/redux-devtools-cli/package.json @@ -50,7 +50,7 @@ "electron": "^9.2.0", "express": "^4.17.1", "getport": "^0.1.0", - "graphql": "^15.3.0", + "graphql": "^14.7.0", "knex": "^0.19.5", "lodash": "^4.17.19", "minimist": "^1.2.5", diff --git a/packages/redux-devtools-cli/src/db/connector.ts b/packages/redux-devtools-cli/src/db/connector.ts index 7dd027c5..e162ef1e 100644 --- a/packages/redux-devtools-cli/src/db/connector.ts +++ b/packages/redux-devtools-cli/src/db/connector.ts @@ -15,9 +15,9 @@ export default function connector(options: SCServer.SCServerOptions) { /* eslint-disable no-console */ knex.migrate - .latest() + .latest({ loadExtensions: ['.js'] }) .then(function () { - return knex.seed.run(); + return knex.seed.run({ loadExtensions: ['.js'] }); }) .then(function () { console.log(' \x1b[0;32m[Done]\x1b[0m Migrations are finished\n'); diff --git a/packages/redux-devtools-cli/src/db/migrations/index.ts b/packages/redux-devtools-cli/src/db/migrations/index.ts index 9836366b..2795edc3 100644 --- a/packages/redux-devtools-cli/src/db/migrations/index.ts +++ b/packages/redux-devtools-cli/src/db/migrations/index.ts @@ -1,4 +1,4 @@ -import knexModule from 'knex'; +import type knexModule from 'knex'; export function up(knex: knexModule) { return Promise.all([ diff --git a/packages/redux-devtools-cli/src/db/seeds/index.ts b/packages/redux-devtools-cli/src/db/seeds/index.ts index efefb9ff..85eb9266 100644 --- a/packages/redux-devtools-cli/src/db/seeds/index.ts +++ b/packages/redux-devtools-cli/src/db/seeds/index.ts @@ -1,4 +1,4 @@ -import knexModule from 'knex'; +import type knexModule from 'knex'; export function seed(knex: knexModule) { return Promise.all([knex('remotedev_apps').del()]).then(function () { diff --git a/yarn.lock b/yarn.lock index 1f4f06a0..97717fda 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9700,6 +9700,13 @@ graphql-upload@^8.0.2: http-errors "^1.7.3" object-path "^0.11.4" +graphql@^14.7.0: + version "14.7.0" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.7.0.tgz#7fa79a80a69be4a31c27dda824dc04dac2035a72" + integrity sha512-l0xWZpoPKpppFzMfvVyFmp9vLN7w/ZZJPefUicMCepfJeQ8sMcztloGYY9DfjVPo6tIUDzU5Hw3MUbIjj9AVVA== + dependencies: + iterall "^1.2.2" + graphql@^15.3.0: version "15.3.0" resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.3.0.tgz#3ad2b0caab0d110e3be4a5a9b2aa281e362b5278" @@ -11072,7 +11079,7 @@ istanbul-reports@^3.0.2: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -iterall@^1.1.3, iterall@^1.2.1: +iterall@^1.1.3, iterall@^1.2.1, iterall@^1.2.2: version "1.3.0" resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.3.0.tgz#afcb08492e2915cbd8a0884eb93a8c94d0d72fea" integrity sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==