[all] Rename packages to vercel and add logic to publish legacy package names to npm (#4233)

https://vercel.com/blog/zeit-is-now-vercel

* Updates all org packages from `@now` to `@vercel`
* Updates Now CLI package name from `now` to `vercel`
  * Packages contains `"bin"` entries for _both_ `vercel` and `now` in the package.json
* Updates `now-client` package name to `@vercel/client` (org scoped, for authenticity)

There is also a new `publish-legacy.sh` script which ensures that all the legacy package names (i.e. `now`, `now-client`, `@now/node`, etc.) will still be published as well.

We will remove this legacy publishing logic on Jan 1, 2021.
This commit is contained in:
Nathan Rajlich
2020-05-05 16:43:57 -07:00
committed by GitHub
parent 2765207c93
commit 8a68211cad
247 changed files with 696 additions and 519 deletions

View File

@@ -78,8 +78,8 @@ async function testDeployment(
build.config = build.config || {};
const { config } = build;
if (buildUtilsUrl === '@canary') {
config.useBuildUtils = config.useBuildUtils || '@now/build-utils';
config.useBuildUtils = `${config.useBuildUtils}@canary`;
const buildUtils = config.useBuildUtils || '@vercel/build-utils';
config.useBuildUtils = `${buildUtils}@canary`;
} else {
config.useBuildUtils = `https://${buildUtilsUrl}`;
}