Skip to content

Commit

Permalink
Refactoring to have the package.json appropriately included (fixes we…
Browse files Browse the repository at this point in the history
…bpack issues for web-helper(and other end user solutions for kosu.js))
  • Loading branch information
Freydal committed Oct 17, 2019
1 parent dc85724 commit b0b18ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/kosu-contract-helpers/src/Kosu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { artifacts } from "@kosu/system-contracts";
import { KosuOptions, KosuUtils } from "@kosu/types";
import Web3 from "web3";

import * as packageJson from "../package.json";

import { EventEmitter } from "./EventEmitter";
import { KosuToken } from "./KosuToken";
import { OrderGateway } from "./OrderGateway";
Expand All @@ -15,7 +17,7 @@ import { ValidatorRegistry } from "./ValidatorRegistry";
import { Voting } from "./Voting";

// tslint:disable-next-line: no-var-requires
const version = process.env.npm_package_version || require("../package.json").version;
const version = process.env.npm_package_version || packageJson.version;

/**
* The `Kosu` class assists in interacting with the Kosu contract system and
Expand Down

0 comments on commit b0b18ec

Please sign in to comment.