aboutsummaryrefslogtreecommitdiffstats
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
parentcd0f6716e817a8b123d2b5203ea838ecf3a5e8d4 (diff)
downloaddexon-0x-contracts-70f4453e3eb2818c883862f609885e077b6bc631.tar.gz
dexon-0x-contracts-70f4453e3eb2818c883862f609885e077b6bc631.tar.zst
dexon-0x-contracts-70f4453e3eb2818c883862f609885e077b6bc631.zip
Get package name from package.json
-rw-r--r--packages/0x.js/scripts/postpublish.js3
-rw-r--r--packages/assert/scripts/postpublish.js3
-rw-r--r--packages/connect/scripts/postpublish.js3
-rw-r--r--packages/json-schemas/scripts/postpublish.js3
-rw-r--r--packages/tslint-config/scripts/postpublish.js3
5 files changed, 10 insertions, 5 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;
diff --git a/packages/assert/scripts/postpublish.js b/packages/assert/scripts/postpublish.js
index b583155d2..08458f038 100644
--- a/packages/assert/scripts/postpublish.js
+++ b/packages/assert/scripts/postpublish.js
@@ -1,6 +1,7 @@
const postpublish_utils = require('../../../scripts/postpublish_utils');
+const packageJSON = require('../package.json');
-const subPackageName = '0xproject/assert';
+const subPackageName = packageJSON.name;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {
diff --git a/packages/connect/scripts/postpublish.js b/packages/connect/scripts/postpublish.js
index 4323ed5c7..08458f038 100644
--- a/packages/connect/scripts/postpublish.js
+++ b/packages/connect/scripts/postpublish.js
@@ -1,6 +1,7 @@
const postpublish_utils = require('../../../scripts/postpublish_utils');
+const packageJSON = require('../package.json');
-const subPackageName = '0xproject/connect';
+const subPackageName = packageJSON.name;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {
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) {
diff --git a/packages/tslint-config/scripts/postpublish.js b/packages/tslint-config/scripts/postpublish.js
index c6e1b3630..08458f038 100644
--- a/packages/tslint-config/scripts/postpublish.js
+++ b/packages/tslint-config/scripts/postpublish.js
@@ -1,6 +1,7 @@
const postpublish_utils = require('../../../scripts/postpublish_utils');
+const packageJSON = require('../package.json');
-const subPackageName = '0xproject/tslint-config';
+const subPackageName = packageJSON.name;
postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
.then(function(result) {