diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-05 09:11:58 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-05 09:11:58 +0800 |
commit | 0af1bf11c86361010fa741541244a9e76674bccf (patch) | |
tree | 1b9ff4df4d78ce7d3cd5f94670e62ac6ccc97b57 /packages/instant | |
parent | a138ee7e836a2ddb7a2ae317fe56dddaca5703ff (diff) | |
download | dexon-sol-tools-0af1bf11c86361010fa741541244a9e76674bccf.tar.gz dexon-sol-tools-0af1bf11c86361010fa741541244a9e76674bccf.tar.zst dexon-sol-tools-0af1bf11c86361010fa741541244a9e76674bccf.zip |
Use git sha and npm version from constants
Diffstat (limited to 'packages/instant')
-rw-r--r-- | packages/instant/src/index.umd.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts index b92fa3a7c..d172f4145 100644 --- a/packages/instant/src/index.umd.ts +++ b/packages/instant/src/index.umd.ts @@ -2,7 +2,13 @@ import * as _ from 'lodash'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_CLASS, INJECTED_DIV_ID } from './constants'; +import { + DEFAULT_ZERO_EX_CONTAINER_SELECTOR, + GIT_SHA as GIT_SHA_FROM_CONSTANT, + INJECTED_DIV_CLASS, + INJECTED_DIV_ID, + NPM_PACKAGE_VERSION, +} from './constants'; import { ZeroExInstantOverlay, ZeroExInstantOverlayProps } from './index'; import { analytics } from './util/analytics'; import { assert } from './util/assert'; @@ -117,5 +123,5 @@ export const render = (config: ZeroExInstantConfig, selector: string = DEFAULT_Z }; // Write version info to the exported object for debugging -export const GIT_SHA = process.env.GIT_SHA; -export const NPM_VERSION = process.env.NPM_PACKAGE_VERSION; +export const GIT_SHA = GIT_SHA_FROM_CONSTANT; +export const NPM_VERSION = NPM_PACKAGE_VERSION; |