aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/publish.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-10-18 18:51:56 +0800
committerJacob Evans <jacob@dekz.net>2018-10-18 19:27:31 +0800
commit9f924e459c43c023e35ab7222cd9824cc0e67411 (patch)
treed7b62f5b7f018b5178300040b26d37f52f955418 /packages/monorepo-scripts/src/publish.ts
parent9e8bca69a8a1d3570e30a28f150c0bec3848a760 (diff)
downloaddexon-sol-tools-9f924e459c43c023e35ab7222cd9824cc0e67411.tar
dexon-sol-tools-9f924e459c43c023e35ab7222cd9824cc0e67411.tar.gz
dexon-sol-tools-9f924e459c43c023e35ab7222cd9824cc0e67411.tar.bz2
dexon-sol-tools-9f924e459c43c023e35ab7222cd9824cc0e67411.tar.lz
dexon-sol-tools-9f924e459c43c023e35ab7222cd9824cc0e67411.tar.xz
dexon-sol-tools-9f924e459c43c023e35ab7222cd9824cc0e67411.tar.zst
dexon-sol-tools-9f924e459c43c023e35ab7222cd9824cc0e67411.zip
chore: change package org from 0xproject to 0x
Diffstat (limited to 'packages/monorepo-scripts/src/publish.ts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 646818c58..c1a6b9d7f 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -18,7 +18,7 @@ import { DocGenerateAndUploadUtils } from './utils/doc_generate_and_upload_utils
import { publishReleaseNotesAsync } from './utils/github_release_utils';
import { utils } from './utils/utils';
-const NPM_NAMESPACE = '@0xproject/';
+const NPM_NAMESPACE = '@0x/';
const TODAYS_TIMESTAMP = moment().unix();
async function confirmAsync(message: string): Promise<void> {
@@ -96,7 +96,7 @@ function getPackagesWithDocs(allUpdatedPackages: Package[]): Package[] {
const packagesWithDocPages = packagesWithDocPagesStringIfExist.split(' ');
const updatedPackagesWithDocPages: Package[] = [];
_.each(allUpdatedPackages, pkg => {
- const nameWithoutPrefix = pkg.packageJson.name.replace('@0xproject/', '');
+ const nameWithoutPrefix = pkg.packageJson.name.replace('@0x/', '');
if (_.includes(packagesWithDocPages, nameWithoutPrefix)) {
updatedPackagesWithDocPages.push(pkg);
}
@@ -110,7 +110,7 @@ async function generateAndUploadDocJsonsAsync(
shouldUploadDocs: boolean,
): Promise<void> {
for (const pkg of packagesWithDocs) {
- const nameWithoutPrefix = pkg.packageJson.name.replace('@0xproject/', '');
+ const nameWithoutPrefix = pkg.packageJson.name.replace('@0x/', '');
const docGenerateAndUploadUtils = new DocGenerateAndUploadUtils(nameWithoutPrefix, isStaging, shouldUploadDocs);
await docGenerateAndUploadUtils.generateAndUploadDocsAsync();
}
@@ -130,7 +130,7 @@ async function confirmDocPagesRenderAsync(packagesWithDocs: Package[]): Promise<
_.each(packagesWithDocs, pkg => {
const name = pkg.packageJson.name;
- const nameWithoutPrefix = _.startsWith(name, NPM_NAMESPACE) ? name.split('@0xproject/')[1] : name;
+ const nameWithoutPrefix = _.startsWith(name, NPM_NAMESPACE) ? name.split('@0x/')[1] : name;
const link = `${constants.stagingWebsite}/docs/${nameWithoutPrefix}`;
// tslint:disable-next-line:no-floating-promises
opn(link);