Merge pull request #1283 from 0xProject/feature/instant/make-instant-public-and-fix-publishing

[instant] Make package public and fix publishing
This commit is contained in:
Francesco Agosti 2018-11-21 06:38:21 -08:00 committed by GitHub
commit f66b695a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 15 deletions

View File

@ -1,5 +1,5 @@
.* .*
* *
*/ */
!lib/src/**/* !lib/**/*
!umd/**/* !umd/**/*

View File

@ -5,9 +5,8 @@
"node": ">=6.12" "node": ">=6.12"
}, },
"description": "0x Instant React Component", "description": "0x Instant React Component",
"private": true, "main": "lib/index.js",
"main": "lib/src/index.js", "types": "lib/index.d.ts",
"types": "lib/src/index.d.ts",
"scripts": { "scripts": {
"build": "yarn build:all", "build": "yarn build:all",
"build:all": "run-p build:umd:prod build:commonjs", "build:all": "run-p build:umd:prod build:commonjs",
@ -99,6 +98,6 @@
"webpack-dev-server": "^3.1.9" "webpack-dev-server": "^3.1.9"
}, },
"publishConfig": { "publishConfig": {
"access": "private" "access": "public"
} }
} }

View File

@ -20,8 +20,6 @@ import { Heartbeater } from '../util/heartbeater';
import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory'; import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory';
import { providerStateFactory } from '../util/provider_state_factory'; import { providerStateFactory } from '../util/provider_state_factory';
fonts.include();
export type ZeroExInstantProviderProps = ZeroExInstantProviderRequiredProps & export type ZeroExInstantProviderProps = ZeroExInstantProviderRequiredProps &
Partial<ZeroExInstantProviderOptionalProps>; Partial<ZeroExInstantProviderOptionalProps>;
@ -88,6 +86,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
} }
constructor(props: ZeroExInstantProviderProps) { constructor(props: ZeroExInstantProviderProps) {
super(props); super(props);
fonts.include();
const initialAppState = ZeroExInstantProvider._mergeDefaultStateWithProps(this.props); const initialAppState = ZeroExInstantProvider._mergeDefaultStateWithProps(this.props);
this._store = store.create(initialAppState); this._store = store.create(initialAppState);
} }

View File

@ -2,16 +2,11 @@
"extends": "../../tsconfig", "extends": "../../tsconfig",
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": ".", "rootDir": "src",
"jsx": "react", "jsx": "react",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true, "noImplicitAny": true,
"module": "ESNext", "allowSyntheticDefaultImports": true
"moduleResolution": "node",
"lib": ["es2015", "dom"],
"target": "es5",
"sourceMap": true
}, },
"include": ["./src/**/*", "./test/**/*"], "include": ["./src/**/*"],
"exclude": ["./src/index.umd.ts"] "exclude": ["./src/index.umd.ts"]
} }

View File

@ -34,6 +34,7 @@
{ "path": "./packages/dev-utils" }, { "path": "./packages/dev-utils" },
{ "path": "./packages/ethereum-types" }, { "path": "./packages/ethereum-types" },
{ "path": "./packages/fill-scenarios" }, { "path": "./packages/fill-scenarios" },
{ "path": "./packages/instant" },
{ "path": "./packages/json-schemas" }, { "path": "./packages/json-schemas" },
{ "path": "./packages/metacoin" }, { "path": "./packages/metacoin" },
{ "path": "./packages/migrations" }, { "path": "./packages/migrations" },