aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/instant/.npmignore2
-rw-r--r--packages/instant/package.json7
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx3
-rw-r--r--packages/instant/tsconfig.json11
-rw-r--r--tsconfig.json1
5 files changed, 9 insertions, 15 deletions
diff --git a/packages/instant/.npmignore b/packages/instant/.npmignore
index 579d65af0..a4f7810c0 100644
--- a/packages/instant/.npmignore
+++ b/packages/instant/.npmignore
@@ -1,5 +1,5 @@
.*
*
*/
-!lib/src/**/*
+!lib/**/*
!umd/**/* \ No newline at end of file
diff --git a/packages/instant/package.json b/packages/instant/package.json
index 1813d61e5..69319e854 100644
--- a/packages/instant/package.json
+++ b/packages/instant/package.json
@@ -5,9 +5,8 @@
"node": ">=6.12"
},
"description": "0x Instant React Component",
- "private": true,
- "main": "lib/src/index.js",
- "types": "lib/src/index.d.ts",
+ "main": "lib/index.js",
+ "types": "lib/index.d.ts",
"scripts": {
"build": "yarn build:all",
"build:all": "run-p build:umd:prod build:commonjs",
@@ -99,6 +98,6 @@
"webpack-dev-server": "^3.1.9"
},
"publishConfig": {
- "access": "private"
+ "access": "public"
}
}
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx
index 9435d8c7c..9814aabf8 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -20,8 +20,6 @@ import { Heartbeater } from '../util/heartbeater';
import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory';
import { providerStateFactory } from '../util/provider_state_factory';
-fonts.include();
-
export type ZeroExInstantProviderProps = ZeroExInstantProviderRequiredProps &
Partial<ZeroExInstantProviderOptionalProps>;
@@ -88,6 +86,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
}
constructor(props: ZeroExInstantProviderProps) {
super(props);
+ fonts.include();
const initialAppState = ZeroExInstantProvider._mergeDefaultStateWithProps(this.props);
this._store = store.create(initialAppState);
}
diff --git a/packages/instant/tsconfig.json b/packages/instant/tsconfig.json
index 28a6190b8..14b0ad8f7 100644
--- a/packages/instant/tsconfig.json
+++ b/packages/instant/tsconfig.json
@@ -2,16 +2,11 @@
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "lib",
- "rootDir": ".",
+ "rootDir": "src",
"jsx": "react",
- "allowSyntheticDefaultImports": true,
"noImplicitAny": true,
- "module": "ESNext",
- "moduleResolution": "node",
- "lib": ["es2015", "dom"],
- "target": "es5",
- "sourceMap": true
+ "allowSyntheticDefaultImports": true
},
- "include": ["./src/**/*", "./test/**/*"],
+ "include": ["./src/**/*"],
"exclude": ["./src/index.umd.ts"]
}
diff --git a/tsconfig.json b/tsconfig.json
index bbcb0a6d2..eaaca8e4e 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -34,6 +34,7 @@
{ "path": "./packages/dev-utils" },
{ "path": "./packages/ethereum-types" },
{ "path": "./packages/fill-scenarios" },
+ { "path": "./packages/instant" },
{ "path": "./packages/json-schemas" },
{ "path": "./packages/metacoin" },
{ "path": "./packages/migrations" },