Skip to content

Commit

Permalink
fix(*): re-enable allowSyntheticDefaultImports for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <[email protected]>
  • Loading branch information
willsoto committed Feb 24, 2019
1 parent 365236c commit ffe4bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions lib/core.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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;
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit ffe4bce

Please sign in to comment.