aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-13 17:42:33 +0800
committerFabio Berger <me@fabioberger.com>2018-03-13 17:42:33 +0800
commit355aac2a1a119fd78c629031e1d90debdf6ed1ee (patch)
tree3372ec20de693f9b927727f3276fbe2204fcf412 /packages/abi-gen/src
parentb93b66edfb050b58f76f6066261fe3074a1df5fc (diff)
downloaddexon-sol-tools-355aac2a1a119fd78c629031e1d90debdf6ed1ee.tar
dexon-sol-tools-355aac2a1a119fd78c629031e1d90debdf6ed1ee.tar.gz
dexon-sol-tools-355aac2a1a119fd78c629031e1d90debdf6ed1ee.tar.bz2
dexon-sol-tools-355aac2a1a119fd78c629031e1d90debdf6ed1ee.tar.lz
dexon-sol-tools-355aac2a1a119fd78c629031e1d90debdf6ed1ee.tar.xz
dexon-sol-tools-355aac2a1a119fd78c629031e1d90debdf6ed1ee.tar.zst
dexon-sol-tools-355aac2a1a119fd78c629031e1d90debdf6ed1ee.zip
Move abi-gen scripts to src
Diffstat (limited to 'packages/abi-gen/src')
-rw-r--r--packages/abi-gen/src/globals.d.ts7
-rw-r--r--packages/abi-gen/src/monorepo_scripts/postpublish.ts6
2 files changed, 13 insertions, 0 deletions
diff --git a/packages/abi-gen/src/globals.d.ts b/packages/abi-gen/src/globals.d.ts
index 39df3f852..d267a4106 100644
--- a/packages/abi-gen/src/globals.d.ts
+++ b/packages/abi-gen/src/globals.d.ts
@@ -2,3 +2,10 @@ declare function toSnakeCase(str: string): string;
declare module 'to-snake-case' {
export = toSnakeCase;
}
+
+declare module '*.json' {
+ const json: any;
+ /* tslint:disable */
+ export default json;
+ /* tslint:enable */
+}
diff --git a/packages/abi-gen/src/monorepo_scripts/postpublish.ts b/packages/abi-gen/src/monorepo_scripts/postpublish.ts
new file mode 100644
index 000000000..63790a011
--- /dev/null
+++ b/packages/abi-gen/src/monorepo_scripts/postpublish.ts
@@ -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);