aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-02 17:44:40 +0800
committerFabio Berger <me@fabioberger.com>2018-04-02 17:44:40 +0800
commit6241d06f2769f599916d06861894f9b60e2a5e81 (patch)
treec386fdc3254132253adcc2812eafb78149294040 /packages
parentbc49dde4d5d24b9a8b01459bde061f9b23fb5898 (diff)
downloaddexon-sol-tools-6241d06f2769f599916d06861894f9b60e2a5e81.tar
dexon-sol-tools-6241d06f2769f599916d06861894f9b60e2a5e81.tar.gz
dexon-sol-tools-6241d06f2769f599916d06861894f9b60e2a5e81.tar.bz2
dexon-sol-tools-6241d06f2769f599916d06861894f9b60e2a5e81.tar.lz
dexon-sol-tools-6241d06f2769f599916d06861894f9b60e2a5e81.tar.xz
dexon-sol-tools-6241d06f2769f599916d06861894f9b60e2a5e81.tar.zst
dexon-sol-tools-6241d06f2769f599916d06861894f9b60e2a5e81.zip
Fix postpublish util to ignore namespace
Diffstat (limited to 'packages')
-rw-r--r--packages/monorepo-scripts/src/postpublish_utils.ts16
1 files changed, 14 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/postpublish_utils.ts b/packages/monorepo-scripts/src/postpublish_utils.ts
index 93d55115e..236b54379 100644
--- a/packages/monorepo-scripts/src/postpublish_utils.ts
+++ b/packages/monorepo-scripts/src/postpublish_utils.ts
@@ -112,7 +112,13 @@ export const postpublishUtils = {
this.updateChangelogIsPublished(packageName);
},
getReleaseNotes(packageName: string) {
- const changelogJSONPath = path.join(constants.monorepoRootPath, 'packages', packageName, 'CHANGELOG.json');
+ const packageNameWithNamespace = packageName.replace('@0xproject/', '');
+ const changelogJSONPath = path.join(
+ constants.monorepoRootPath,
+ 'packages',
+ packageNameWithNamespace,
+ 'CHANGELOG.json',
+ );
const changelogJSON = fs.readFileSync(changelogJSONPath, 'utf-8');
const changelogs = JSON.parse(changelogJSON);
const latestLog = changelogs[0];
@@ -130,7 +136,13 @@ export const postpublishUtils = {
return 'N/A';
},
updateChangelogIsPublished(packageName: string) {
- const changelogJSONPath = path.join(constants.monorepoRootPath, 'packages', packageName, 'CHANGELOG.json');
+ const packageNameWithNamespace = packageName.replace('@0xproject/', '');
+ const changelogJSONPath = path.join(
+ constants.monorepoRootPath,
+ 'packages',
+ packageNameWithNamespace,
+ 'CHANGELOG.json',
+ );
const changelogJSON = fs.readFileSync(changelogJSONPath, 'utf-8');
const changelogs = JSON.parse(changelogJSON);
const latestLog = changelogs[0];