aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-14 21:27:36 +0800
committerFabio Berger <me@fabioberger.com>2018-03-14 21:27:36 +0800
commit538ac604a88c2f7ae2dbb1970d464425624a3cd9 (patch)
treec3ce00cc49f7d26f43305df52392d5f8466481aa /packages/sol-cov/src
parent009b70f5b218a1ccb154034936256308131b7d9c (diff)
downloaddexon-sol-tools-538ac604a88c2f7ae2dbb1970d464425624a3cd9.tar
dexon-sol-tools-538ac604a88c2f7ae2dbb1970d464425624a3cd9.tar.gz
dexon-sol-tools-538ac604a88c2f7ae2dbb1970d464425624a3cd9.tar.bz2
dexon-sol-tools-538ac604a88c2f7ae2dbb1970d464425624a3cd9.tar.lz
dexon-sol-tools-538ac604a88c2f7ae2dbb1970d464425624a3cd9.tar.xz
dexon-sol-tools-538ac604a88c2f7ae2dbb1970d464425624a3cd9.tar.zst
dexon-sol-tools-538ac604a88c2f7ae2dbb1970d464425624a3cd9.zip
Add postpublish script to sol-cov
Diffstat (limited to 'packages/sol-cov/src')
-rw-r--r--packages/sol-cov/src/globals.d.ts8
-rw-r--r--packages/sol-cov/src/monorepo_scripts/postpublish.ts8
2 files changed, 16 insertions, 0 deletions
diff --git a/packages/sol-cov/src/globals.d.ts b/packages/sol-cov/src/globals.d.ts
index 54ee64684..3e457f0b5 100644
--- a/packages/sol-cov/src/globals.d.ts
+++ b/packages/sol-cov/src/globals.d.ts
@@ -1,4 +1,12 @@
// tslint:disable:completed-docs
+
+declare module '*.json' {
+ const json: any;
+ /* tslint:disable */
+ export default json;
+ /* tslint:enable */
+}
+
declare module 'solidity-parser-antlr' {
export interface BaseASTNode {
range: [number, number];
diff --git a/packages/sol-cov/src/monorepo_scripts/postpublish.ts b/packages/sol-cov/src/monorepo_scripts/postpublish.ts
new file mode 100644
index 000000000..dcb99d0f7
--- /dev/null
+++ b/packages/sol-cov/src/monorepo_scripts/postpublish.ts
@@ -0,0 +1,8 @@
+import { postpublishUtils } from '@0xproject/monorepo-scripts';
+
+import * as packageJSON from '../package.json';
+import * as tsConfigJSON from '../tsconfig.json';
+
+const cwd = `${__dirname}/..`;
+// tslint:disable-next-line:no-floating-promises
+postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd);