Add postpublish script to sol-cov

This commit is contained in:
Fabio Berger 2018-03-14 14:27:36 +01:00
parent 009b70f5b2
commit 538ac604a8
4 changed files with 18 additions and 6 deletions

View File

@ -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",

View File

@ -1,5 +0,0 @@
const postpublish_utils = require('../../../scripts/postpublish_utils');
const packageJSON = require('../package.json');
const subPackageName = packageJSON.name;
postpublish_utils.standardPostPublishAsync(subPackageName);

View File

@ -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];

View File

@ -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);