Merge branch 'development' of github.com:0xProject/0x-monorepo into development
* 'development' of github.com:0xProject/0x-monorepo: Fix command Move md files to lib folder during build Change exit code to failure Fix sra-spec `main` and `types` in package.json Issue #1025 BlockParam unroll fix: Use yarn version 1.9.4 on CI
This commit is contained in:
@@ -18,8 +18,8 @@ jobs:
|
||||
- yarn-packages-master
|
||||
- yarn-packages-
|
||||
- run:
|
||||
name: yarn
|
||||
command: yarn --frozen-lockfile install || true
|
||||
name: install-yarn
|
||||
command: sudo npm install --global yarn@1.9.4
|
||||
- run:
|
||||
name: yarn
|
||||
command: yarn --frozen-lockfile install
|
||||
@@ -254,4 +254,4 @@ workflows:
|
||||
- build
|
||||
- submit-coverage:
|
||||
requires:
|
||||
- test-rest
|
||||
- test-rest
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// tslint:disable:no-unused-variable
|
||||
// tslint:disable:no-unbound-method
|
||||
import { BaseContract } from '@0xproject/base-contract';
|
||||
import { BlockParam, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
||||
import * as ethers from 'ethers';
|
||||
|
||||
@@ -85,11 +85,13 @@ function logIfDefined(x: any): void {
|
||||
logIfDefined(packageError.error.stdout);
|
||||
logIfDefined(packageError.error.stack);
|
||||
});
|
||||
process.exit(1);
|
||||
} else {
|
||||
process.exit(0);
|
||||
}
|
||||
})().catch(err => {
|
||||
utils.log(`Unexpected error: ${err.message}`);
|
||||
process.exit(0);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
async function testInstallPackageAsync(
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"node": ">=6.12"
|
||||
},
|
||||
"description": "Standard Relayer API Open API Spec",
|
||||
"main": "lib/src/index.js",
|
||||
"types": "lib/src/index.d.ts",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"scripts": {
|
||||
"serve": "redoc-cli serve lib/api.json --watch",
|
||||
"watch_without_deps": "run-p build-json:watch serve",
|
||||
@@ -17,9 +17,10 @@
|
||||
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
|
||||
"test:circleci": "yarn test:coverage",
|
||||
"clean": "shx rm -rf lib",
|
||||
"build": "tsc && yarn build-json",
|
||||
"build": "tsc && yarn copy_md_files && yarn build-json",
|
||||
"build-json": "ts-node build_scripts/buildJson.ts",
|
||||
"build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' ",
|
||||
"copy_md_files": "copyfiles -u 2 './src/md/**/*.md' ./lib/md",
|
||||
"deploy-site": "discharge deploy"
|
||||
},
|
||||
"repository": {
|
||||
@@ -42,6 +43,7 @@
|
||||
"@types/node": "^10.5.3",
|
||||
"chai": "^4.0.1",
|
||||
"chokidar-cli": "^1.2.0",
|
||||
"copyfiles": "^2.0.0",
|
||||
"dirty-chai": "^2.0.1",
|
||||
"discharge": "^0.7.1",
|
||||
"mocha": "^4.0.1",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { readFileSync } from 'fs';
|
||||
|
||||
export const md = {
|
||||
introduction: readFileSync('src/md/introduction.md').toString(),
|
||||
introduction: readFileSync('lib/md/introduction.md').toString(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user