diff --git a/lib/core.ts b/lib/core.ts index c67832a5..85f97160 100644 --- a/lib/core.ts +++ b/lib/core.ts @@ -1,5 +1,5 @@ import { DynamicModule, Provider } from "@nestjs/common"; -import * as Knex_ from "knex"; +import Knex from "knex"; import { Model } from "objection"; import { KNEX_CONNECTION, @@ -13,9 +13,6 @@ import { ObjectionModuleOptionsFactory } from "./interfaces"; -// Workaround due to https://github.com/rollup/rollup/issues/670 -const Knex = Knex_; - export class ObjectionCoreModule { public static forRoot(options: ObjectionModuleOptions): DynamicModule { const BaseModel = options.Model || Model; diff --git a/tsconfig.json b/tsconfig.json index 66c168a9..7a59e08a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "allowSyntheticDefaultImports": true, "baseUrl": ".", "emitDecoratorMetadata": true, "experimentalDecorators": true,