diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-18 04:33:43 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-18 04:33:43 +0800 |
commit | 70f4453e3eb2818c883862f609885e077b6bc631 (patch) | |
tree | 0f9742be85aba3c72e04cbc09ef3adfd6a4a8526 /packages/json-schemas | |
parent | cd0f6716e817a8b123d2b5203ea838ecf3a5e8d4 (diff) | |
download | dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar.gz dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.tar.zst dexon-sol-tools-70f4453e3eb2818c883862f609885e077b6bc631.zip |
Get package name from package.json
Diffstat (limited to 'packages/json-schemas')
-rw-r--r-- | packages/json-schemas/scripts/postpublish.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/json-schemas/scripts/postpublish.js b/packages/json-schemas/scripts/postpublish.js index 8930521f1..08458f038 100644 --- a/packages/json-schemas/scripts/postpublish.js +++ b/packages/json-schemas/scripts/postpublish.js @@ -1,6 +1,7 @@ const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); -const subPackageName = '0xproject/json-schemas'; +const subPackageName = packageJSON.name; postpublish_utils.getLatestTagAndVersionAsync(subPackageName) .then(function(result) { |