aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov
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
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')
-rw-r--r--packages/sol-cov/package.json3
-rw-r--r--packages/sol-cov/scripts/postpublish.js5
-rw-r--r--packages/sol-cov/src/globals.d.ts8
-rw-r--r--packages/sol-cov/src/monorepo_scripts/postpublish.ts8
4 files changed, 18 insertions, 6 deletions
diff --git a/packages/sol-cov/package.json b/packages/sol-cov/package.json
index af6be13f2..48d798fa3 100644
--- a/packages/sol-cov/package.json
+++ b/packages/sol-cov/package.json
@@ -7,7 +7,7 @@
"scripts": {
"build:watch": "tsc -w",
"lint": "tslint --project . 'src/**/*.ts'",
- "clean": "shx rm -rf lib",
+ "clean": "shx rm -rf lib scripts",
"build": "tsc"
},
"repository": {
@@ -33,6 +33,7 @@
"web3": "^0.20.0"
},
"devDependencies": {
+ "@0xproject/monorepo-scripts": "^0.1.12",
"@0xproject/tslint-config": "^0.4.9",
"@types/istanbul": "^0.4.29",
"@types/node": "^8.0.53",
diff --git a/packages/sol-cov/scripts/postpublish.js b/packages/sol-cov/scripts/postpublish.js
deleted file mode 100644
index b3e5407c8..000000000
--- a/packages/sol-cov/scripts/postpublish.js
+++ /dev/null
@@ -1,5 +0,0 @@
-const postpublish_utils = require('../../../scripts/postpublish_utils');
-const packageJSON = require('../package.json');
-
-const subPackageName = packageJSON.name;
-postpublish_utils.standardPostPublishAsync(subPackageName); \ No newline at end of file
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);