Skip to content

Commit

Permalink
Fix webpack build error 'dependency to an entry point is not allowed'
Browse files Browse the repository at this point in the history
  • Loading branch information
elhigu committed May 26, 2016
1 parent 21cede3 commit 8f1e2bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/make-knex.js
Expand Up @@ -8,7 +8,6 @@ import QueryInterface from '../query/methods';
import * as helpers from '../helpers';
import { assign } from 'lodash'
import BatchInsert from './batchInsert';
import Knex from "../index";

export default function makeKnex(client) {

Expand Down Expand Up @@ -58,7 +57,7 @@ export default function makeKnex(client) {

// The `__knex__` is used if you need to duck-type check whether this
// is a knex builder, without a full on `instanceof` check.
knex.VERSION = knex.__knex__ = Knex.VERSION;
knex.VERSION = knex.__knex__ = require('../../package.json').version;

// Hook up the "knex" object as an EventEmitter.
const ee = new EventEmitter()
Expand Down

0 comments on commit 8f1e2bb

Please sign in to comment.