aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-10-02 21:29:49 +0800
committerGitHub <noreply@github.com>2018-10-02 21:29:49 +0800
commitf1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4 (patch)
tree33252be8be47a0b9da43b9ad5ead30baa992e5f3 /packages/sol-doc
parent9ad4a135d23f485b705d3d9fb3f93be6c958c6b9 (diff)
parenta4153144dbd2a46d51069e57ba7c1402e5867154 (diff)
downloaddexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar
dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.gz
dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.bz2
dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.lz
dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.xz
dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.tar.zst
dexon-sol-tools-f1ecb8c5cb28a0a7ca6f7ad2ff11194091df62a4.zip
Merge pull request #1104 from 0xProject/feature/bundlesize
Bundle size reporting
Diffstat (limited to 'packages/sol-doc')
-rw-r--r--packages/sol-doc/package.json1
-rw-r--r--packages/sol-doc/src/sol_doc.ts6
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/sol-doc/package.json b/packages/sol-doc/package.json
index 2de4443d6..0b0c7c963 100644
--- a/packages/sol-doc/package.json
+++ b/packages/sol-doc/package.json
@@ -6,6 +6,7 @@
"types": "lib/src/index.d.js",
"scripts": {
"build": "tsc",
+ "build:ci": "yarn build",
"test": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --timeout 6000 --exit",
"test:circleci": "yarn test:coverage",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
diff --git a/packages/sol-doc/src/sol_doc.ts b/packages/sol-doc/src/sol_doc.ts
index eda767054..138882c92 100644
--- a/packages/sol-doc/src/sol_doc.ts
+++ b/packages/sol-doc/src/sol_doc.ts
@@ -302,7 +302,7 @@ export class SolDoc {
break;
default:
throw new Error(
- `unknown and unsupported AbiDefinition type '${(abiDefinition as AbiDefinition).type}'`,
+ `unknown and unsupported AbiDefinition type '${(abiDefinition as AbiDefinition).type}'`, // tslint:disable-line:no-unnecessary-type-assertion
);
}
customTypes = [...customTypes, ...types];
@@ -340,7 +340,7 @@ export class SolDoc {
break;
default:
throw new Error(
- `unknown and unsupported AbiDefinition type '${(abiDefinition as AbiDefinition).type}'`,
+ `unknown and unsupported AbiDefinition type '${(abiDefinition as AbiDefinition).type}'`, // tslint:disable-line:no-unnecessary-type-assertion
);
}
}
@@ -486,7 +486,7 @@ export class SolDoc {
});
}
if (!_.isUndefined((abiDefinition as any).outputs)) {
- const methodAbi = abiDefinition as MethodAbi;
+ const methodAbi = abiDefinition as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
_.each(methodAbi.outputs, output => {
if (!_.isUndefined(output.components)) {
const customType = this._getCustomTypeFromDataItem(output);