aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-18 04:33:43 +0800
committerFabio Berger <me@fabioberger.com>2017-11-18 04:33:43 +0800
commit70f4453e3eb2818c883862f609885e077b6bc631 (patch)
tree0f9742be85aba3c72e04cbc09ef3adfd6a4a8526 /packages/0x.js/scripts
parentcd0f6716e817a8b123d2b5203ea838ecf3a5e8d4 (diff)
downloaddexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar
dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar.gz
dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar.bz2
dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar.lz
dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar.xz
dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar.zst
dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.zip
Get package name from package.json
Diffstat (limited to 'packages/0x.js/scripts')
-rw-r--r--packages/0x.js/scripts/postpublish.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/0x.js/scripts/postpublish.js b/packages/0x.js/scripts/postpublish.js
index e68302b33..bf4c63032 100644
--- a/packages/0x.js/scripts/postpublish.js
+++ b/packages/0x.js/scripts/postpublish.js
@@ -1,8 +1,9 @@
const execAsync = require('async-child-process').execAsync;
const postpublish_utils = require('../../../scripts/postpublish_utils');
+const packageJSON = require('../package.json');
const cwd = __dirname + '/..';
-const subPackageName = '0x.js';
+const subPackageName = packageJSON.name;
let tag;
let version;