Add postpublish script to sol-cov
This commit is contained in:
parent
009b70f5b2
commit
538ac604a8
@ -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",
|
||||
|
@ -1,5 +0,0 @@
|
||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
|
||||
const packageJSON = require('../package.json');
|
||||
|
||||
const subPackageName = packageJSON.name;
|
||||
postpublish_utils.standardPostPublishAsync(subPackageName);
|
8
packages/sol-cov/src/globals.d.ts
vendored
8
packages/sol-cov/src/globals.d.ts
vendored
@ -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];
|
||||
|
8
packages/sol-cov/src/monorepo_scripts/postpublish.ts
Normal file
8
packages/sol-cov/src/monorepo_scripts/postpublish.ts
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user