Move abi-gen scripts to src

This commit is contained in:
Fabio Berger
2018-03-13 10:42:33 +01:00
parent b93b66edfb
commit 355aac2a1a
4 changed files with 16 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
"build:watch": "tsc -w", "build:watch": "tsc -w",
"lint": "tslint --project . 'src/**/*.ts'", "lint": "tslint --project . 'src/**/*.ts'",
"clean": "shx rm -rf lib", "clean": "shx rm -rf lib",
"build": "tsc" "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts"
}, },
"bin": { "bin": {
"abi-gen": "lib/index.js" "abi-gen": "lib/index.js"
@@ -35,11 +35,13 @@
}, },
"devDependencies": { "devDependencies": {
"@0xproject/tslint-config": "^0.4.10", "@0xproject/tslint-config": "^0.4.10",
"@0xproject/dev-utils": "^0.2.1",
"@types/glob": "^5.0.33", "@types/glob": "^5.0.33",
"@types/handlebars": "^4.0.36", "@types/handlebars": "^4.0.36",
"@types/mkdirp": "^0.5.1", "@types/mkdirp": "^0.5.1",
"@types/node": "^8.0.53", "@types/node": "^8.0.53",
"@types/yargs": "^10.0.0", "@types/yargs": "^10.0.0",
"copyfiles": "^1.2.0",
"npm-run-all": "^4.1.2", "npm-run-all": "^4.1.2",
"shx": "^0.2.2", "shx": "^0.2.2",
"tslint": "5.8.0", "tslint": "5.8.0",

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

@@ -2,3 +2,10 @@ declare function toSnakeCase(str: string): string;
declare module 'to-snake-case' { declare module 'to-snake-case' {
export = toSnakeCase; export = toSnakeCase;
} }
declare module '*.json' {
const json: any;
/* tslint:disable */
export default json;
/* tslint:enable */
}

View File

@@ -0,0 +1,6 @@
import { postpublishUtils } from '@0xproject/dev-utils';
import * as packageJSON from '../package.json';
const subPackageName = (packageJSON as any).name;
postpublishUtils.standardPostPublishAsync(subPackageName);