diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-04-02 17:56:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 17:56:46 +0800 |
commit | 51f2a20b2a51616ea49c9eff46e6ac99cf7a185a (patch) | |
tree | 3393fc8846277a5f14fac155f8f5884bc0aac87a /packages/monorepo-scripts | |
parent | 333a23f22254f3fdb117781728d029638a364ba0 (diff) | |
parent | 3bf3f479f50e62673b49de09bdbdc812e1e9e476 (diff) | |
download | dexon-sol-tools-51f2a20b2a51616ea49c9eff46e6ac99cf7a185a.tar dexon-sol-tools-51f2a20b2a51616ea49c9eff46e6ac99cf7a185a.tar.gz dexon-sol-tools-51f2a20b2a51616ea49c9eff46e6ac99cf7a185a.tar.bz2 dexon-sol-tools-51f2a20b2a51616ea49c9eff46e6ac99cf7a185a.tar.lz dexon-sol-tools-51f2a20b2a51616ea49c9eff46e6ac99cf7a185a.tar.xz dexon-sol-tools-51f2a20b2a51616ea49c9eff46e6ac99cf7a185a.tar.zst dexon-sol-tools-51f2a20b2a51616ea49c9eff46e6ac99cf7a185a.zip |
Merge branch 'development' into feature/metacoin
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r-- | packages/monorepo-scripts/package.json | 2 | ||||
-rw-r--r-- | packages/monorepo-scripts/src/postpublish_utils.ts | 16 |
2 files changed, 15 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/package.json b/packages/monorepo-scripts/package.json index e270ff6db..c453517a1 100644 --- a/packages/monorepo-scripts/package.json +++ b/packages/monorepo-scripts/package.json @@ -13,7 +13,7 @@ "convert_changelogs": "run-s build script:convert_changelogs", "script:deps_versions": "node ./lib/deps_versions.js", "script:publish": "IS_DRY_RUN=true node ./lib/publish.js", - "script:convert_changelogs": "node ./lib/convert_changelogs.js" + "script:convert_changelogs": "node ./lib/convert_changelogs.js", }, "repository": { "type": "git", 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]; |