Compare commits

..

8 Commits

Author SHA1 Message Date
Steven
48d925f105 Publish Stable
- @vercel/build-utils@6.3.3
 - vercel@28.16.14
 - @vercel/client@12.4.3
 - @vercel/fs-detectors@3.8.3
 - @vercel/gatsby-plugin-vercel-builder@1.2.0
 - @vercel/go@2.3.10
 - @vercel/hydrogen@0.0.56
 - @vercel/next@3.6.5
 - @vercel/node@2.9.11
 - @vercel/python@3.1.52
 - @vercel/redwood@1.1.8
 - @vercel/remix@1.6.1
 - @vercel/ruby@1.3.69
 - @vercel/static-build@1.3.15
2023-03-07 13:17:14 -05:00
Steven
011f6ff150 Revert "[next] Fix incorrect 404 when i18n and appDir configured" (#9617)
Reverts vercel/vercel#9582

https://github.com/orgs/vercel/discussions/1714
2023-03-07 13:15:28 -05:00
Sean Massa
cd09a38c19 [tests] skip recent flakey tests (#9613)
This test has been flakey on mac for a long time.
2023-03-07 17:21:53 +00:00
Ethan Arrowood
af239b5fa5 [internals] Create @vercel-internals/types (#9608)
Moves the type file out of the cli package and into its own standalone
package. utilizes `@vercel/style-guide` too for typescript config,
eslint, and prettier.
2023-03-07 08:44:25 -07:00
Chris Barber
38244c8ed6 [next] Populate middlewareRawSrc using middleware originalSource (#9602)
Next.js will pass the original middleware matching routes through to the middleware manifest once https://github.com/vercel/next.js/pull/46753 lands. This PR will take those original values and put them in the middleware route `middlewareRawSrc` property.

NOTE: The tests will need to be updated once the Next.js version is updated in the fixtures.
2023-03-07 06:04:41 +00:00
Nathan Rajlich
57e8ec13cf [remix] Support optional static path segments (#9607)
Fixes https://github.com/orgs/vercel/discussions/1707.
2023-03-07 00:50:37 +00:00
Nathan Rajlich
2e8423e24e [gatsby] Remove "gatsby" dependency, use typebox instead of ajv for validation (#9606)
The "gatsby" dependency is large and relies on native packages ("sharp" specifically, which are error prone because it attempts to download a precompiled binary, of which the CDN has been down before causing us to not be able to merge anything).

The package is only used for TypeScript types, and we've decided that including the package only for those types is not worth the trouble. The existing JSON schemas already validate at runtime that the Gatsby redux store provides the values that we depend on.

`ajv` was ditched in favor of TypeBox types, which provide both JSON Schema and validation using a simpler syntax.
2023-03-06 21:44:23 +00:00
Sean Massa
a92c68e0ff Publish Stable
- vercel@28.16.13
 - @vercel/next@3.6.4
 - @vercel/remix@1.6.0
2023-03-06 13:47:36 -06:00
150 changed files with 1323 additions and 5633 deletions

View File

@@ -1,21 +0,0 @@
const { resolve } = require('path');
const project = resolve(__dirname, 'tsconfig.json');
module.exports = {
root: true,
extends: [
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/typescript'),
],
parserOptions: {
project,
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
};

View File

@@ -1,7 +1,9 @@
import type { Readable, Writable } from 'node:stream'; import type { BuilderFunctions } from '@vercel/build-utils';
import type { BuilderFunctions, ProjectSettings } from '@vercel/build-utils'; import type { Readable, Writable } from 'stream';
import type { Route } from '@vercel/routing-utils'; import type { Route } from '@vercel/routing-utils';
export type ProjectSettings = import('@vercel/build-utils').ProjectSettings;
export type Primitive = export type Primitive =
| bigint | bigint
| boolean | boolean
@@ -15,7 +17,9 @@ export type JSONArray = JSONValue[];
export type JSONValue = Primitive | JSONObject | JSONArray; export type JSONValue = Primitive | JSONObject | JSONArray;
export type JSONObject = Record<string, JSONValue>; export interface JSONObject {
[key: string]: JSONValue;
}
export interface AuthConfig { export interface AuthConfig {
'// Note'?: string; '// Note'?: string;
@@ -38,16 +42,16 @@ export interface GlobalConfig {
}; };
} }
interface Billing { type Billing = {
addons: string[]; addons: string[];
cancelation?: number; cancelation?: number;
period: { start: number; end: number }; period: { start: number; end: number };
plan: string; plan: string;
platform: string; platform: string;
trial: { start: number; end: number }; trial: { start: number; end: number };
} };
export interface User { export type User = {
id: string; id: string;
avatar: string; avatar: string;
createdAt: number; createdAt: number;
@@ -56,7 +60,7 @@ export interface User {
billing: Billing; billing: Billing;
name?: string; name?: string;
limited?: boolean; limited?: boolean;
} };
export interface Team { export interface Team {
id: string; id: string;
@@ -76,7 +80,7 @@ export interface Team {
}; };
} }
export interface Domain { export type Domain = {
id: string; id: string;
name: string; name: string;
boughtAt: number; boughtAt: number;
@@ -93,9 +97,9 @@ export interface Domain {
username: string; username: string;
email: string; email: string;
}; };
} };
export interface DomainConfig { export type DomainConfig = {
configuredBy: null | 'CNAME' | 'A' | 'http'; configuredBy: null | 'CNAME' | 'A' | 'http';
misconfigured: boolean; misconfigured: boolean;
serviceType: 'zeit.world' | 'external' | 'na'; serviceType: 'zeit.world' | 'external' | 'na';
@@ -103,16 +107,16 @@ export interface DomainConfig {
cnames: string[] & { traceString?: string }; cnames: string[] & { traceString?: string };
aValues: string[] & { traceString?: string }; aValues: string[] & { traceString?: string };
dnssecEnabled?: boolean; dnssecEnabled?: boolean;
} };
export interface Cert { export type Cert = {
uid: string; uid: string;
autoRenew: boolean; autoRenew: boolean;
cns: string[]; cns: string[];
created: string; created: string;
creator: string; creator: string;
expiration: string; expiration: string;
} };
type RouteOrMiddleware = type RouteOrMiddleware =
| Route | Route
@@ -122,7 +126,7 @@ type RouteOrMiddleware =
middleware: 0; middleware: 0;
}; };
export interface Deployment { export type Deployment = {
alias?: string[]; alias?: string[];
aliasAssigned?: boolean | null | number; aliasAssigned?: boolean | null | number;
aliasError?: null | { code: string; message: string }; aliasError?: null | { code: string; message: string };
@@ -135,7 +139,7 @@ export interface Deployment {
}; };
bootedAt?: number; bootedAt?: number;
build?: { env: string[] }; build?: { env: string[] };
builds?: { use: string; src?: string; config?: Record<string, any> }; builds?: { use: string; src?: string; config?: { [key: string]: any } };
buildErrorAt?: number; buildErrorAt?: number;
buildingAt: number; buildingAt: number;
canceledAt?: number; canceledAt?: number;
@@ -167,7 +171,9 @@ export interface Deployment {
initReadyAt?: number; initReadyAt?: number;
inspectorUrl?: string | null; inspectorUrl?: string | null;
lambdas?: Build[]; lambdas?: Build[];
meta?: Record<string, string | undefined>; meta?: {
[key: string]: string | undefined;
};
monorepoManager?: string | null; monorepoManager?: string | null;
name: string; name: string;
ownerId?: string; ownerId?: string;
@@ -211,9 +217,9 @@ export interface Deployment {
url: string; url: string;
userAliases?: string[]; userAliases?: string[];
version: 2; version: 2;
} };
export interface Alias { export type Alias = {
uid: string; uid: string;
alias: string; alias: string;
createdAt: number; createdAt: number;
@@ -227,9 +233,9 @@ export interface Alias {
email: string; email: string;
}; };
deploymentId?: string; deploymentId?: string;
} };
export interface DNSRecord { export type DNSRecord = {
id: string; id: string;
creator: string; creator: string;
mxPriority?: number; mxPriority?: number;
@@ -243,9 +249,9 @@ export interface DNSRecord {
createdAt: number; createdAt: number;
updatedAt: number; updatedAt: number;
domain: string; domain: string;
} };
interface SRVRecordData { type SRVRecordData = {
name: string; name: string;
type: 'SRV'; type: 'SRV';
srv: { srv: {
@@ -254,14 +260,14 @@ interface SRVRecordData {
target: string; target: string;
weight: number; weight: number;
}; };
} };
interface MXRecordData { type MXRecordData = {
name: string; name: string;
type: 'MX'; type: 'MX';
value: string; value: string;
mxPriority: number; mxPriority: number;
} };
export type DNSRecordData = export type DNSRecordData =
| { | {
@@ -294,6 +300,7 @@ export interface Secret {
createdAt: number; createdAt: number;
} }
// TODO (Ethan-Arrowood) - Replace enums
export enum ProjectEnvTarget { export enum ProjectEnvTarget {
Production = 'production', Production = 'production',
Preview = 'preview', Preview = 'preview',
@@ -494,13 +501,13 @@ export interface Build {
/** /**
* The Runtime the Build used to generate the output * The Runtime the Build used to generate the output
* @example "\@vercel/node" * @example "@vercel/node"
*/ */
use?: string; use?: string;
/** /**
* An object that contains the Build's configuration * An object that contains the Build's configuration
* @example \{"zeroConfig": true\} * @example {"zeroConfig": true}
*/ */
config?: { config?: {
distDir?: string | undefined; distDir?: string | undefined;

View File

@@ -1,19 +1,17 @@
{ {
"private": true,
"name": "@vercel-internals/types", "name": "@vercel-internals/types",
"private": "true", "types": "dist/index.d.ts",
"types": "index.d.ts", "main": "dist/index.js",
"scripts": { "scripts": {
"lint": "eslint index.d.ts", "build": "tsc -p tsconfig.json"
"format": "prettier --write index.d.ts" },
"dependencies": {
"@vercel/build-utils": "6.3.2",
"@vercel/routing-utils": "2.1.10"
}, },
"devDependencies": { "devDependencies": {
"@vercel/style-guide": "4.0.2", "@vercel/style-guide": "4.0.2",
"eslint": "8.14.0", "typescript": "4.9.4"
"prettier": "2.6.2" }
},
"dependencies": {
"@vercel/build-utils": "workspace:6.3.2",
"@vercel/routing-utils": "workspace:2.1.10"
},
"prettier": "@vercel/style-guide/prettier"
} }

View File

@@ -1,4 +1,8 @@
{ {
"extends": "@vercel/style-guide/typescript", "extends": "@vercel/style-guide/typescript",
"include": ["index.d.ts"] "compilerOptions": {
"outDir": "dist",
"declaration": true
},
"include": ["index.ts"]
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@vercel/build-utils", "name": "@vercel/build-utils",
"version": "6.3.2", "version": "6.3.3",
"license": "MIT", "license": "MIT",
"main": "./dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.js", "types": "./dist/index.d.js",

View File

@@ -506,6 +506,11 @@ it('should retry npm install when peer deps invalid and npm@8 on node@16', async
console.log('Skipping test on windows'); console.log('Skipping test on windows');
return; return;
} }
if (process.platform === 'darwin') {
console.log('Skipping test on mac');
return;
}
const fixture = path.join(__dirname, 'fixtures', '15-npm-8-legacy-peer-deps'); const fixture = path.join(__dirname, 'fixtures', '15-npm-8-legacy-peer-deps');
const nodeVersion = { major: nodeMajor } as any; const nodeVersion = { major: nodeMajor } as any;
await runNpmInstall(fixture, [], {}, {}, nodeVersion); await runNpmInstall(fixture, [], {}, {}, nodeVersion);

View File

@@ -1,6 +1,6 @@
{ {
"name": "vercel", "name": "vercel",
"version": "28.16.12", "version": "28.16.14",
"preferGlobal": true, "preferGlobal": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "The command-line interface for Vercel", "description": "The command-line interface for Vercel",
@@ -41,16 +41,16 @@
"node": ">= 14" "node": ">= 14"
}, },
"dependencies": { "dependencies": {
"@vercel/build-utils": "6.3.2", "@vercel/build-utils": "6.3.3",
"@vercel/go": "2.3.9", "@vercel/go": "2.3.10",
"@vercel/hydrogen": "0.0.55", "@vercel/hydrogen": "0.0.56",
"@vercel/next": "3.6.3", "@vercel/next": "3.6.5",
"@vercel/node": "2.9.10", "@vercel/node": "2.9.11",
"@vercel/python": "3.1.51", "@vercel/python": "3.1.52",
"@vercel/redwood": "1.1.7", "@vercel/redwood": "1.1.8",
"@vercel/remix": "1.5.1", "@vercel/remix": "1.6.1",
"@vercel/ruby": "1.3.68", "@vercel/ruby": "1.3.69",
"@vercel/static-build": "1.3.14" "@vercel/static-build": "1.3.15"
}, },
"devDependencies": { "devDependencies": {
"@alex_neo/jest-expect-message": "1.0.5", "@alex_neo/jest-expect-message": "1.0.5",
@@ -93,10 +93,11 @@
"@types/which": "1.3.2", "@types/which": "1.3.2",
"@types/write-json-file": "2.2.1", "@types/write-json-file": "2.2.1",
"@types/yauzl-promise": "2.1.0", "@types/yauzl-promise": "2.1.0",
"@vercel/client": "12.4.2", "@vercel-internals/types": "*",
"@vercel/client": "12.4.3",
"@vercel/error-utils": "1.0.8", "@vercel/error-utils": "1.0.8",
"@vercel/frameworks": "1.3.2", "@vercel/frameworks": "1.3.2",
"@vercel/fs-detectors": "3.8.2", "@vercel/fs-detectors": "3.8.3",
"@vercel/fun": "1.0.4", "@vercel/fun": "1.0.4",
"@vercel/ncc": "0.24.0", "@vercel/ncc": "0.24.0",
"@vercel/routing-utils": "2.1.10", "@vercel/routing-utils": "2.1.10",

View File

@@ -12,7 +12,7 @@ import stamp from '../../util/output/stamp';
import strlen from '../../util/strlen'; import strlen from '../../util/strlen';
import getCommandFlags from '../../util/get-command-flags'; import getCommandFlags from '../../util/get-command-flags';
import { getCommandName } from '../../util/pkg-name'; import { getCommandName } from '../../util/pkg-name';
import { Alias } from '../../types'; import { Alias } from '@vercel-internals/types';
export default async function ls( export default async function ls(
client: Client, client: Client,

View File

@@ -9,7 +9,7 @@ import strlen from '../../util/strlen';
import confirm from '../../util/input/confirm'; import confirm from '../../util/input/confirm';
import findAliasByAliasOrId from '../../util/alias/find-alias-by-alias-or-id'; import findAliasByAliasOrId from '../../util/alias/find-alias-by-alias-or-id';
import { Alias } from '../../types'; import { Alias } from '@vercel-internals/types';
import { isValidName } from '../../util/is-valid-name'; import { isValidName } from '../../util/is-valid-name';
import { getCommandName } from '../../util/pkg-name'; import { getCommandName } from '../../util/pkg-name';

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import { SetDifference } from 'utility-types'; import { SetDifference } from 'utility-types';
import { AliasRecord } from '../../util/alias/create-alias'; import { AliasRecord } from '../../util/alias/create-alias';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
import { Output } from '../../util/output'; import { Output } from '../../util/output';
import * as ERRORS from '../../util/errors-ts'; import * as ERRORS from '../../util/errors-ts';
import assignAlias from '../../util/alias/assign-alias'; import assignAlias from '../../util/alias/assign-alias';

View File

@@ -13,7 +13,7 @@ import logo from '../../util/output/logo';
import getArgs from '../../util/get-args'; import getArgs from '../../util/get-args';
import Client from '../../util/client'; import Client from '../../util/client';
import { getPkgName } from '../../util/pkg-name'; import { getPkgName } from '../../util/pkg-name';
import { Deployment, PaginationOptions } from '../../types'; import { Deployment, PaginationOptions } from '@vercel-internals/types';
import { normalizeURL } from '../../util/bisect/normalize-url'; import { normalizeURL } from '../../util/bisect/normalize-url';
import getScope from '../../util/get-scope'; import getScope from '../../util/get-scope';
import getDeployment from '../../util/get-deployment'; import getDeployment from '../../util/get-deployment';

View File

@@ -5,7 +5,7 @@ import stamp from '../../util/output/stamp';
import createCertFromFile from '../../util/certs/create-cert-from-file'; import createCertFromFile from '../../util/certs/create-cert-from-file';
import createCertForCns from '../../util/certs/create-cert-for-cns'; import createCertForCns from '../../util/certs/create-cert-for-cns';
import { getCommandName } from '../../util/pkg-name'; import { getCommandName } from '../../util/pkg-name';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
interface Options { interface Options {
'--overwrite'?: boolean; '--overwrite'?: boolean;

View File

@@ -10,7 +10,7 @@ import {
import stamp from '../../util/output/stamp'; import stamp from '../../util/output/stamp';
import getCerts from '../../util/certs/get-certs'; import getCerts from '../../util/certs/get-certs';
import strlen from '../../util/strlen'; import strlen from '../../util/strlen';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import getCommandFlags from '../../util/get-command-flags'; import getCommandFlags from '../../util/get-command-flags';
import { getCommandName } from '../../util/pkg-name'; import { getCommandName } from '../../util/pkg-name';

View File

@@ -2,7 +2,7 @@ import chalk from 'chalk';
import ms from 'ms'; import ms from 'ms';
import plural from 'pluralize'; import plural from 'pluralize';
import table from 'text-table'; import table from 'text-table';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import * as ERRORS from '../../util/errors-ts'; import * as ERRORS from '../../util/errors-ts';
import { Output } from '../../util/output'; import { Output } from '../../util/output';
import deleteCertById from '../../util/certs/delete-cert-by-id'; import deleteCertById from '../../util/certs/delete-cert-by-id';

View File

@@ -5,7 +5,7 @@ import DevServer from '../../util/dev/server';
import { parseListen } from '../../util/dev/parse-listen'; import { parseListen } from '../../util/dev/parse-listen';
import Client from '../../util/client'; import Client from '../../util/client';
import { getLinkedProject } from '../../util/projects/link'; import { getLinkedProject } from '../../util/projects/link';
import { ProjectSettings } from '../../types'; import { ProjectSettings } from '@vercel-internals/types';
import setupAndLink from '../../util/link/setup-and-link'; import setupAndLink from '../../util/link/setup-and-link';
import { getCommandName } from '../../util/pkg-name'; import { getCommandName } from '../../util/pkg-name';
import param from '../../util/output/param'; import param from '../../util/output/param';

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import ms from 'ms'; import ms from 'ms';
import { DomainNotFound } from '../../util/errors-ts'; import { DomainNotFound } from '../../util/errors-ts';
import { DNSRecord } from '../../types'; import { DNSRecord } from '@vercel-internals/types';
import Client from '../../util/client'; import Client from '../../util/client';
import formatTable from '../../util/format-table'; import formatTable from '../../util/format-table';
import getDNSRecords, { import getDNSRecords, {

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import ms from 'ms'; import ms from 'ms';
import table from 'text-table'; import table from 'text-table';
import { DNSRecord } from '../../types'; import { DNSRecord } from '@vercel-internals/types';
import { Output } from '../../util/output'; import { Output } from '../../util/output';
import Client from '../../util/client'; import Client from '../../util/client';
import deleteDNSRecordById from '../../util/dns/delete-dns-record-by-id'; import deleteDNSRecordById from '../../util/dns/delete-dns-record-by-id';

View File

@@ -8,7 +8,7 @@ import getScope from '../../util/get-scope';
import stamp from '../../util/output/stamp'; import stamp from '../../util/output/stamp';
import formatTable from '../../util/format-table'; import formatTable from '../../util/format-table';
import { formatDateWithoutTime } from '../../util/format-date'; import { formatDateWithoutTime } from '../../util/format-date';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
import getCommandFlags from '../../util/get-command-flags'; import getCommandFlags from '../../util/get-command-flags';
import { import {
PaginationOptions, PaginationOptions,

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import plural from 'pluralize'; import plural from 'pluralize';
import { User, Team } from '../../types'; import { User, Team } from '@vercel-internals/types';
import * as ERRORS from '../../util/errors-ts'; import * as ERRORS from '../../util/errors-ts';
import Client from '../../util/client'; import Client from '../../util/client';
import getScope from '../../util/get-scope'; import getScope from '../../util/get-scope';

View File

@@ -2,7 +2,7 @@ import chalk from 'chalk';
import plural from 'pluralize'; import plural from 'pluralize';
import { DomainNotFound, DomainPermissionDenied } from '../../util/errors-ts'; import { DomainNotFound, DomainPermissionDenied } from '../../util/errors-ts';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
import { Output } from '../../util/output'; import { Output } from '../../util/output';
import Client from '../../util/client'; import Client from '../../util/client';
import deleteCertById from '../../util/certs/delete-cert-by-id'; import deleteCertById from '../../util/certs/delete-cert-by-id';

View File

@@ -1,5 +1,5 @@
import chalk from 'chalk'; import chalk from 'chalk';
import { ProjectEnvTarget, Project, ProjectEnvType } from '../../types'; import { ProjectEnvTarget, Project, ProjectEnvType } from '@vercel-internals/types';
import { Output } from '../../util/output'; import { Output } from '../../util/output';
import Client from '../../util/client'; import Client from '../../util/client';
import stamp from '../../util/output/stamp'; import stamp from '../../util/output/stamp';

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import ms from 'ms'; import ms from 'ms';
import { Output } from '../../util/output'; import { Output } from '../../util/output';
import { Project, ProjectEnvVariable, ProjectEnvType } from '../../types'; import { Project, ProjectEnvVariable, ProjectEnvType } from '@vercel-internals/types';
import Client from '../../util/client'; import Client from '../../util/client';
import formatTable from '../../util/format-table'; import formatTable from '../../util/format-table';
import getEnvRecords from '../../util/env/get-env-records'; import getEnvRecords from '../../util/env/get-env-records';

View File

@@ -2,7 +2,7 @@ import chalk from 'chalk';
import { outputFile } from 'fs-extra'; import { outputFile } from 'fs-extra';
import { closeSync, openSync, readSync } from 'fs'; import { closeSync, openSync, readSync } from 'fs';
import { resolve } from 'path'; import { resolve } from 'path';
import { Project, ProjectEnvTarget } from '../../types'; import { Project, ProjectEnvTarget } from '@vercel-internals/types';
import Client from '../../util/client'; import Client from '../../util/client';
import { emoji, prependEmoji } from '../../util/emoji'; import { emoji, prependEmoji } from '../../util/emoji';
import confirm from '../../util/input/confirm'; import confirm from '../../util/input/confirm';

View File

@@ -1,5 +1,5 @@
import chalk from 'chalk'; import chalk from 'chalk';
import { Project } from '../../types'; import { Project } from '@vercel-internals/types';
import { Output } from '../../util/output'; import { Output } from '../../util/output';
import confirm from '../../util/input/confirm'; import confirm from '../../util/input/confirm';
import removeEnvRecord from '../../util/env/remove-env-record'; import removeEnvRecord from '../../util/env/remove-env-record';

View File

@@ -1,7 +1,7 @@
import { Dictionary } from '@vercel/client'; import { Dictionary } from '@vercel/client';
import chalk from 'chalk'; import chalk from 'chalk';
import { join } from 'path'; import { join } from 'path';
import { Org, Project, ProjectLinkData } from '../../types'; import { Org, Project, ProjectLinkData } from '@vercel-internals/types';
import Client from '../../util/client'; import Client from '../../util/client';
import { parseGitConfig, pluckRemoteUrls } from '../../util/create-git-meta'; import { parseGitConfig, pluckRemoteUrls } from '../../util/create-git-meta';
import confirm from '../../util/input/confirm'; import confirm from '../../util/input/confirm';

View File

@@ -1,5 +1,5 @@
import chalk from 'chalk'; import chalk from 'chalk';
import { Org, Project } from '../../types'; import { Org, Project } from '@vercel-internals/types';
import Client from '../../util/client'; import Client from '../../util/client';
import confirm from '../../util/input/confirm'; import confirm from '../../util/input/confirm';
import { getCommandName } from '../../util/pkg-name'; import { getCommandName } from '../../util/pkg-name';

View File

@@ -10,7 +10,7 @@ import getScope from '../util/get-scope';
import { getPkgName, getCommandName } from '../util/pkg-name'; import { getPkgName, getCommandName } from '../util/pkg-name';
import Client from '../util/client'; import Client from '../util/client';
import getDeployment from '../util/get-deployment'; import getDeployment from '../util/get-deployment';
import { Build, Deployment } from '../types'; import { Build, Deployment } from '@vercel-internals/types';
import title from 'title'; import title from 'title';
import { isErrnoException } from '@vercel/error-utils'; import { isErrnoException } from '@vercel/error-utils';
import { URL } from 'url'; import { URL } from 'url';

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import ms from 'ms'; import ms from 'ms';
import table from 'text-table'; import table from 'text-table';
import { Project } from '../../types'; import { Project } from '@vercel-internals/types';
import Client from '../../util/client'; import Client from '../../util/client';
import getCommandFlags from '../../util/get-command-flags'; import getCommandFlags from '../../util/get-command-flags';
import { getCommandName } from '../../util/pkg-name'; import { getCommandName } from '../../util/pkg-name';

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import { join } from 'path'; import { join } from 'path';
import Client from '../util/client'; import Client from '../util/client';
import { ProjectEnvTarget } from '../types'; import type { Project, ProjectEnvTarget } from '@vercel-internals/types';
import { emoji, prependEmoji } from '../util/emoji'; import { emoji, prependEmoji } from '../util/emoji';
import getArgs from '../util/get-args'; import getArgs from '../util/get-args';
import logo from '../util/output/logo'; import logo from '../util/output/logo';
@@ -10,7 +10,6 @@ import { getPkgName } from '../util/pkg-name';
import { VERCEL_DIR, VERCEL_DIR_PROJECT } from '../util/projects/link'; import { VERCEL_DIR, VERCEL_DIR_PROJECT } from '../util/projects/link';
import { writeProjectSettings } from '../util/projects/project-settings'; import { writeProjectSettings } from '../util/projects/project-settings';
import envPull from './env/pull'; import envPull from './env/pull';
import type { Project } from '../types';
import { import {
isValidEnvTarget, isValidEnvTarget,
getEnvTargetPlaceholder, getEnvTargetPlaceholder,

View File

@@ -18,7 +18,7 @@ import getArgs from '../util/get-args';
import handleError from '../util/handle-error'; import handleError from '../util/handle-error';
import type Client from '../util/client'; import type Client from '../util/client';
import { Output } from '../util/output'; import { Output } from '../util/output';
import { Alias, Deployment, Project } from '../types'; import { Alias, Deployment, Project } from '@vercel-internals/types';
import { NowError } from '../util/now-error'; import { NowError } from '../util/now-error';
type DeploymentWithAliases = Deployment & { type DeploymentWithAliases = Deployment & {

View File

@@ -7,7 +7,7 @@ import { emoji } from '../../util/emoji';
import getUser from '../../util/get-user'; import getUser from '../../util/get-user';
import getTeams from '../../util/teams/get-teams'; import getTeams from '../../util/teams/get-teams';
import listInput from '../../util/input/list'; import listInput from '../../util/input/list';
import { Team, GlobalConfig } from '../../types'; import { Team, GlobalConfig } from '@vercel-internals/types';
import { writeToConfigFile } from '../../util/config/files'; import { writeToConfigFile } from '../../util/config/files';
const updateCurrentTeam = (config: GlobalConfig, team?: Team) => { const updateCurrentTeam = (config: GlobalConfig, team?: Team) => {

View File

@@ -50,7 +50,7 @@ import getUpdateCommand from './util/get-update-command';
import { metrics, shouldCollectMetrics } from './util/metrics'; import { metrics, shouldCollectMetrics } from './util/metrics';
import { getCommandName, getTitleName } from './util/pkg-name'; import { getCommandName, getTitleName } from './util/pkg-name';
import doLoginPrompt from './util/login/prompt'; import doLoginPrompt from './util/login/prompt';
import { AuthConfig, GlobalConfig } from './types'; import { AuthConfig, GlobalConfig } from '@vercel-internals/types';
import { VercelConfig } from '@vercel/client'; import { VercelConfig } from '@vercel/client';
import box from './util/output/box'; import box from './util/output/box';

View File

@@ -1,4 +1,4 @@
import type { Deployment } from '../../types'; import type { Deployment } from '@vercel-internals/types';
import { Output } from '../output'; import { Output } from '../output';
import Client from '../client'; import Client from '../client';
import createAlias from './create-alias'; import createAlias from './create-alias';

View File

@@ -1,4 +1,4 @@
import type { Deployment } from '../../types'; import type { Deployment } from '@vercel-internals/types';
import { Output } from '../output'; import { Output } from '../output';
import * as ERRORS from '../errors-ts'; import * as ERRORS from '../errors-ts';
import Client from '../client'; import Client from '../client';

View File

@@ -1,5 +1,5 @@
import { Output } from '../output'; import { Output } from '../output';
import { Alias } from '../../types'; import { Alias } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';

View File

@@ -1,4 +1,4 @@
import { Alias, PaginationOptions } from '../../types'; import { Alias, PaginationOptions } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
type Response = { type Response = {

View File

@@ -2,7 +2,7 @@ import path from 'path';
import chalk from 'chalk'; import chalk from 'chalk';
import Client from '../client'; import Client from '../client';
import { Output } from '../output'; import { Output } from '../output';
import { User } from '../../types'; import { User } from '@vercel-internals/types';
import { VercelConfig } from '../dev/types'; import { VercelConfig } from '../dev/types';
import getDeploymentsByAppName from '../deploy/get-deployments-by-appname'; import getDeploymentsByAppName from '../deploy/get-deployments-by-appname';
import getDeployment from '../get-deployment'; import getDeployment from '../get-deployment';

View File

@@ -1,6 +1,6 @@
import Client from '../client'; import Client from '../client';
import getAliases from './get-aliases'; import getAliases from './get-aliases';
import { Alias } from '../../types'; import { Alias } from '@vercel-internals/types';
export default async function getDomainAliases(client: Client, domain: string) { export default async function getDomainAliases(client: Client, domain: string) {
const { aliases } = await getAliases(client); const { aliases } = await getAliases(client);

View File

@@ -1,4 +1,4 @@
import { Build } from '../types'; import { Build } from '@vercel-internals/types';
export const isReady = ({ readyState }: Pick<Build, 'readyState'>) => export const isReady = ({ readyState }: Pick<Build, 'readyState'>) =>
readyState === 'READY'; readyState === 'READY';

View File

@@ -1,7 +1,7 @@
import { readFileSync } from 'fs'; import { readFileSync } from 'fs';
import { resolve } from 'path'; import { resolve } from 'path';
import Client from '../client'; import Client from '../client';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import { isErrnoException } from '@vercel/error-utils'; import { isErrnoException } from '@vercel/error-utils';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';

View File

@@ -1,6 +1,6 @@
import chalk from 'chalk'; import chalk from 'chalk';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import * as ERRORS from '../errors-ts'; import * as ERRORS from '../errors-ts';
import Client from '../client'; import Client from '../client';
import mapCertError from './map-cert-error'; import mapCertError from './map-cert-error';

View File

@@ -1,4 +1,4 @@
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
import * as ERRORS from '../errors-ts'; import * as ERRORS from '../errors-ts';

View File

@@ -1,5 +1,5 @@
import { stringify } from 'querystring'; import { stringify } from 'querystring';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
/** /**

View File

@@ -1,5 +1,5 @@
import Client from '../client'; import Client from '../client';
import { Cert, PaginationOptions } from '../../types'; import { Cert, PaginationOptions } from '@vercel-internals/types';
type Response = { type Response = {
certs: Cert[]; certs: Cert[];

View File

@@ -1,5 +1,5 @@
import { stringify } from 'querystring'; import { stringify } from 'querystring';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import * as ERRORS from '../errors-ts'; import * as ERRORS from '../errors-ts';
import Client from '../client'; import Client from '../client';

View File

@@ -1,5 +1,5 @@
import retry from 'async-retry'; import retry from 'async-retry';
import { Cert } from '../../types'; import { Cert } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';
import { isError } from '@vercel/error-utils'; import { isError } from '@vercel/error-utils';

View File

@@ -19,7 +19,7 @@ import type {
Stdio, Stdio,
ReadableTTY, ReadableTTY,
WritableTTY, WritableTTY,
} from '../types'; } from '@vercel-internals/types';
import { sharedPromise } from './promise'; import { sharedPromise } from './promise';
import { APIError } from './errors-ts'; import { APIError } from './errors-ts';
import { normalizeError } from '@vercel/error-utils'; import { normalizeError } from '@vercel/error-utils';

View File

@@ -9,7 +9,7 @@ import { NowError } from '../now-error';
import error from '../output/error'; import error from '../output/error';
import highlight from '../output/highlight'; import highlight from '../output/highlight';
import { VercelConfig } from '../dev/types'; import { VercelConfig } from '../dev/types';
import { AuthConfig, GlobalConfig } from '../../types'; import { AuthConfig, GlobalConfig } from '@vercel-internals/types';
import { isErrnoException, isError } from '@vercel/error-utils'; import { isErrnoException, isError } from '@vercel/error-utils';
const VERCEL_DIR = getGlobalPathConfig(); const VERCEL_DIR = getGlobalPathConfig();

View File

@@ -1,4 +1,4 @@
import { AuthConfig, GlobalConfig } from '../../types'; import { AuthConfig, GlobalConfig } from '@vercel-internals/types';
export const defaultGlobalConfig: GlobalConfig = { export const defaultGlobalConfig: GlobalConfig = {
'// Note': '// Note':

View File

@@ -3,7 +3,7 @@ import { join } from 'path';
import ini from 'ini'; import ini from 'ini';
import git from 'git-last-commit'; import git from 'git-last-commit';
import { exec } from 'child_process'; import { exec } from 'child_process';
import { GitMetadata, Project } from '../types'; import { GitMetadata, Project } from '@vercel-internals/types';
import { Output } from './output'; import { Output } from './output';
import { errorToString, normalizeError } from '@vercel/error-utils'; import { errorToString, normalizeError } from '@vercel/error-utils';

View File

@@ -3,7 +3,7 @@ import * as ERRORS_TS from '../errors-ts';
import * as ERRORS from '../errors'; import * as ERRORS from '../errors';
import { NowError } from '../now-error'; import { NowError } from '../now-error';
import mapCertError from '../certs/map-cert-error'; import mapCertError from '../certs/map-cert-error';
import { Org } from '../../types'; import { Org } from '@vercel-internals/types';
import Now, { CreateOptions } from '..'; import Now, { CreateOptions } from '..';
import Client from '../client'; import Client from '../client';
import { ArchiveFormat, DeploymentError } from '@vercel/client'; import { ArchiveFormat, DeploymentError } from '@vercel/client';

View File

@@ -1,5 +1,5 @@
import { URLSearchParams } from 'url'; import { URLSearchParams } from 'url';
import { Deployment } from '../../types'; import { Deployment } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
type LegacyDeployment = { type LegacyDeployment = {

View File

@@ -9,7 +9,7 @@ import {
import { Output } from '../output'; import { Output } from '../output';
import { progress } from '../output/progress'; import { progress } from '../output/progress';
import Now from '../../util'; import Now from '../../util';
import { Org } from '../../types'; import { Org } from '@vercel-internals/types';
import ua from '../ua'; import ua from '../ua';
import { linkFolderToProject } from '../projects/link'; import { linkFolderToProject } from '../projects/link';
import { prependEmoji, emoji } from '../emoji'; import { prependEmoji, emoji } from '../emoji';

View File

@@ -85,7 +85,7 @@ import {
HttpHeadersConfig, HttpHeadersConfig,
EnvConfigs, EnvConfigs,
} from './types'; } from './types';
import { ProjectSettings } from '../../types'; import { ProjectSettings } from '@vercel-internals/types';
import { treeKill } from '../tree-kill'; import { treeKill } from '../tree-kill';
import { applyOverriddenHeaders, nodeHeadersToFetchHeaders } from './headers'; import { applyOverriddenHeaders, nodeHeadersToFetchHeaders } from './headers';
import { formatQueryString, parseQueryString } from './parse-query-string'; import { formatQueryString, parseQueryString } from './parse-query-string';

View File

@@ -16,7 +16,7 @@ import {
import { VercelConfig } from '@vercel/client'; import { VercelConfig } from '@vercel/client';
import { HandleValue, Route } from '@vercel/routing-utils'; import { HandleValue, Route } from '@vercel/routing-utils';
import { Output } from '../output'; import { Output } from '../output';
import { ProjectSettings } from '../../types'; import { ProjectSettings } from '@vercel-internals/types';
import { BuilderWithPkg } from '../build/import-builders'; import { BuilderWithPkg } from '../build/import-builders';
export { VercelConfig }; export { VercelConfig };

View File

@@ -7,7 +7,7 @@ import {
DNSConflictingRecord, DNSConflictingRecord,
isAPIError, isAPIError,
} from '../errors-ts'; } from '../errors-ts';
import { DNSRecordData } from '../../types'; import { DNSRecordData } from '@vercel-internals/types';
type Response = { type Response = {
uid: string; uid: string;

View File

@@ -1,5 +1,5 @@
import chalk from 'chalk'; import chalk from 'chalk';
import { DNSRecordData } from '../../types'; import { DNSRecordData } from '@vercel-internals/types';
import textInput from '../input/text'; import textInput from '../input/text';
import promptBool from '../input/prompt-bool'; import promptBool from '../input/prompt-bool';
import Client from '../client'; import Client from '../client';

View File

@@ -1,4 +1,4 @@
import { DNSRecord } from '../../types'; import { DNSRecord } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
export default async function getDNSRecordById( export default async function getDNSRecordById(

View File

@@ -1,4 +1,4 @@
import { DNSRecord } from '../../types'; import { DNSRecord } from '@vercel-internals/types';
import { DomainNotFound } from '../errors-ts'; import { DomainNotFound } from '../errors-ts';
import { Output } from '../output'; import { Output } from '../output';
import Client from '../client'; import Client from '../client';

View File

@@ -1,4 +1,4 @@
import { DNSRecord, PaginationOptions } from '../../types'; import { DNSRecord, PaginationOptions } from '@vercel-internals/types';
import { DomainNotFound, isAPIError } from '../errors-ts'; import { DomainNotFound, isAPIError } from '../errors-ts';
import { Output } from '../output'; import { Output } from '../output';
import Client from '../client'; import Client from '../client';

View File

@@ -1,4 +1,4 @@
import { DNSRecordData } from '../../types'; import { DNSRecordData } from '@vercel-internals/types';
export default function parseAddArgs( export default function parseAddArgs(
args: string[] args: string[]

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import retry from 'async-retry'; import retry from 'async-retry';
import { DomainAlreadyExists, InvalidDomain, isAPIError } from '../errors-ts'; import { DomainAlreadyExists, InvalidDomain, isAPIError } from '../errors-ts';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
type Response = { type Response = {

View File

@@ -1,6 +1,6 @@
import chalk from 'chalk'; import chalk from 'chalk';
import Client from '../client'; import Client from '../client';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
import { import {
DomainPermissionDenied, DomainPermissionDenied,
DomainNotFound, DomainNotFound,

View File

@@ -1,5 +1,5 @@
import Client from '../client'; import Client from '../client';
import { DomainConfig } from '../../types'; import { DomainConfig } from '@vercel-internals/types';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';
export async function getDomainConfig(client: Client, domainName: string) { export async function getDomainConfig(client: Client, domainName: string) {

View File

@@ -1,4 +1,4 @@
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
export type DomainRegistrar = 'Vercel' | 'Purchase in Process' | 'Third Party'; export type DomainRegistrar = 'Vercel' | 'Purchase in Process' | 'Third Party';

View File

@@ -1,6 +1,6 @@
import chalk from 'chalk'; import chalk from 'chalk';
import Client from '../client'; import Client from '../client';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';
type Response = { type Response = {

View File

@@ -1,4 +1,4 @@
import { Domain, PaginationOptions } from '../../types'; import { Domain, PaginationOptions } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
type Response = { type Response = {

View File

@@ -1,4 +1,4 @@
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
export default function isDomainExternal(domain: Domain) { export default function isDomainExternal(domain: Domain) {
return domain.serviceType !== 'zeit.world'; return domain.serviceType !== 'zeit.world';

View File

@@ -1,6 +1,6 @@
import psl from 'psl'; import psl from 'psl';
import { NowError } from '../now-error'; import { NowError } from '../now-error';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
import { Output } from '../output'; import { Output } from '../output';
import * as ERRORS from '../errors-ts'; import * as ERRORS from '../errors-ts';
import addDomain from './add-domain'; import addDomain from './add-domain';

View File

@@ -1,6 +1,6 @@
import * as ERRORS from '../errors-ts'; import * as ERRORS from '../errors-ts';
import Client from '../client'; import Client from '../client';
import { Domain } from '../../types'; import { Domain } from '@vercel-internals/types';
type Response = { type Response = {
domain: Domain; domain: Domain;

View File

@@ -4,7 +4,7 @@ import {
ProjectEnvTarget, ProjectEnvTarget,
ProjectEnvVariable, ProjectEnvVariable,
ProjectEnvType, ProjectEnvType,
} from '../../types'; } from '@vercel-internals/types';
export default async function addEnvRecord( export default async function addEnvRecord(
output: Output, output: Output,

View File

@@ -1,4 +1,4 @@
import { ProjectEnvTarget } from '../../types'; import { ProjectEnvTarget } from '@vercel-internals/types';
function envTargets(): string[] { function envTargets(): string[] {
return Object.values(ProjectEnvTarget); return Object.values(ProjectEnvTarget);

View File

@@ -1,5 +1,5 @@
import title from 'title'; import title from 'title';
import { ProjectEnvVariable } from '../../types'; import { ProjectEnvVariable } from '@vercel-internals/types';
export default function formatEnvTarget(env: ProjectEnvVariable): string { export default function formatEnvTarget(env: ProjectEnvVariable): string {
const target = (Array.isArray(env.target) ? env.target : [env.target || '']) const target = (Array.isArray(env.target) ? env.target : [env.target || ''])

View File

@@ -1,6 +1,6 @@
import { Output } from '../output'; import { Output } from '../output';
import Client from '../client'; import Client from '../client';
import { ProjectEnvVariable, ProjectEnvTarget } from '../../types'; import { ProjectEnvVariable, ProjectEnvTarget } from '@vercel-internals/types';
import { URLSearchParams } from 'url'; import { URLSearchParams } from 'url';
/** The CLI command that was used that needs the environment variables. */ /** The CLI command that was used that needs the environment variables. */

View File

@@ -1,6 +1,6 @@
import { Output } from '../output'; import { Output } from '../output';
import Client from '../client'; import Client from '../client';
import { ProjectEnvVariable } from '../../types'; import { ProjectEnvVariable } from '@vercel-internals/types';
export default async function removeEnvRecord( export default async function removeEnvRecord(
output: Output, output: Output,

View File

@@ -5,7 +5,7 @@ import {
InvalidDeploymentId, InvalidDeploymentId,
isAPIError, isAPIError,
} from './errors-ts'; } from './errors-ts';
import type { Deployment } from '../types'; import type { Deployment } from '@vercel-internals/types';
import mapCertError from './certs/map-cert-error'; import mapCertError from './certs/map-cert-error';
import toHost from './to-host'; import toHost from './to-host';

View File

@@ -2,7 +2,7 @@ import Client from './client';
import getUser from './get-user'; import getUser from './get-user';
import getTeamById from './teams/get-team-by-id'; import getTeamById from './teams/get-team-by-id';
import { TeamDeleted } from './errors-ts'; import { TeamDeleted } from './errors-ts';
import { Team } from '../types'; import { Team } from '@vercel-internals/types';
interface GetScopeOptions { interface GetScopeOptions {
getTeam?: boolean; getTeam?: boolean;

View File

@@ -1,5 +1,5 @@
import Client from './client'; import Client from './client';
import { User } from '../types'; import { User } from '@vercel-internals/types';
import { APIError, InvalidToken, MissingUser } from './errors-ts'; import { APIError, InvalidToken, MissingUser } from './errors-ts';
export default async function getUser(client: Client) { export default async function getUser(client: Client) {

View File

@@ -1,5 +1,5 @@
import Client from '../client'; import Client from '../client';
import { Org } from '../../types'; import { Org } from '@vercel-internals/types';
import chalk from 'chalk'; import chalk from 'chalk';
import link from '../output/link'; import link from '../output/link';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';

View File

@@ -14,7 +14,7 @@ import { responseError } from './error';
import stamp from './output/stamp'; import stamp from './output/stamp';
import { APIError, BuildError } from './errors-ts'; import { APIError, BuildError } from './errors-ts';
import printIndications from './print-indications'; import printIndications from './print-indications';
import { GitMetadata, Org } from '../types'; import { GitMetadata, Org } from '@vercel-internals/types';
import { VercelConfig } from './dev/types'; import { VercelConfig } from './dev/types';
import Client, { FetchOptions, isJSONObject } from './client'; import Client, { FetchOptions, isJSONObject } from './client';
import { ArchiveFormat, Dictionary } from '@vercel/client'; import { ArchiveFormat, Dictionary } from '@vercel/client';

View File

@@ -4,7 +4,7 @@ import chalk from 'chalk';
import frameworkList, { Framework } from '@vercel/frameworks'; import frameworkList, { Framework } from '@vercel/frameworks';
import Client from '../client'; import Client from '../client';
import { isSettingValue } from '../is-setting-value'; import { isSettingValue } from '../is-setting-value';
import { ProjectSettings } from '../../types'; import { ProjectSettings } from '@vercel-internals/types';
const settingMap = { const settingMap = {
buildCommand: 'Build Command', buildCommand: 'Build Command',

View File

@@ -3,7 +3,7 @@ import confirm from './confirm';
import getProjectByIdOrName from '../projects/get-project-by-id-or-name'; import getProjectByIdOrName from '../projects/get-project-by-id-or-name';
import chalk from 'chalk'; import chalk from 'chalk';
import { ProjectNotFound } from '../../util/errors-ts'; import { ProjectNotFound } from '../../util/errors-ts';
import { Project, Org } from '../../types'; import { Project, Org } from '@vercel-internals/types';
import slugify from '@sindresorhus/slugify'; import slugify from '@sindresorhus/slugify';
export default async function inputProject( export default async function inputProject(

View File

@@ -1,5 +1,5 @@
import chalk from 'chalk'; import chalk from 'chalk';
import type { ReadableTTY, WritableTTY } from '../../types'; import type { ReadableTTY, WritableTTY } from '@vercel-internals/types';
type Options = { type Options = {
abortSequences?: Set<string>; abortSequences?: Set<string>;

View File

@@ -1,4 +1,4 @@
import type { ReadableTTY } from '../../types'; import type { ReadableTTY } from '@vercel-internals/types';
export default async function readStandardInput( export default async function readStandardInput(
stdin: ReadableTTY stdin: ReadableTTY

View File

@@ -1,7 +1,7 @@
import Client from '../client'; import Client from '../client';
import getUser from '../get-user'; import getUser from '../get-user';
import getTeams from '../teams/get-teams'; import getTeams from '../teams/get-teams';
import { User, Team, Org } from '../../types'; import { User, Team, Org } from '@vercel-internals/types';
type Choice = { name: string; value: Org }; type Choice = { name: string; value: Org };

View File

@@ -1,4 +1,4 @@
import { Org, Project } from '../../types'; import { Org, Project } from '@vercel-internals/types';
import Client from '../client'; import Client from '../client';
import setupAndLink from '../link/setup-and-link'; import setupAndLink from '../link/setup-and-link';
import param from '../output/param'; import param from '../output/param';

View File

@@ -1,7 +1,7 @@
import { join, basename } from 'path'; import { join, basename } from 'path';
import chalk from 'chalk'; import chalk from 'chalk';
import { remove } from 'fs-extra'; import { remove } from 'fs-extra';
import { ProjectLinkResult, ProjectSettings } from '../../types'; import { ProjectLinkResult, ProjectSettings } from '@vercel-internals/types';
import { import {
getLinkedProject, getLinkedProject,
linkFolderToProject, linkFolderToProject,

View File

@@ -1,7 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import bytes from 'bytes'; import bytes from 'bytes';
import { isReady, isFailed } from '../build-state'; import { isReady, isFailed } from '../build-state';
import { Build, BuildOutput } from '../../types'; import { Build, BuildOutput } from '@vercel-internals/types';
export interface Times { export interface Times {
[id: string]: string | null; [id: string]: string | null;

View File

@@ -3,7 +3,7 @@ import * as ansiEscapes from 'ansi-escapes';
import { supportsHyperlink as detectSupportsHyperlink } from 'supports-hyperlinks'; import { supportsHyperlink as detectSupportsHyperlink } from 'supports-hyperlinks';
import renderLink from './link'; import renderLink from './link';
import wait, { StopSpinner } from './wait'; import wait, { StopSpinner } from './wait';
import type { WritableTTY } from '../../types'; import type { WritableTTY } from '@vercel-internals/types';
import { errorToString } from '@vercel/error-utils'; import { errorToString } from '@vercel/error-utils';
import { removeEmoji } from '../emoji'; import { removeEmoji } from '../emoji';

View File

@@ -1,6 +1,6 @@
import chalk from 'chalk'; import chalk from 'chalk';
import Client from '../client'; import Client from '../client';
import { ProjectAliasTarget } from '../../types'; import { ProjectAliasTarget } from '@vercel-internals/types';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';
export async function addDomainToProject( export async function addDomainToProject(

View File

@@ -1,5 +1,5 @@
import Client from '../client'; import Client from '../client';
import { Project } from '../../types'; import { Project } from '@vercel-internals/types';
export default async function createProject( export default async function createProject(
client: Client, client: Client,

View File

@@ -1,5 +1,5 @@
import Client from '../client'; import Client from '../client';
import { Project } from '../../types'; import { Project } from '@vercel-internals/types';
import { URLSearchParams } from 'url'; import { URLSearchParams } from 'url';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';

View File

@@ -1,5 +1,5 @@
import Client from '../client'; import Client from '../client';
import { Project } from '../../types'; import { Project } from '@vercel-internals/types';
import { isAPIError, ProjectNotFound } from '../errors-ts'; import { isAPIError, ProjectNotFound } from '../errors-ts';
export default async function getProjectByNameOrId( export default async function getProjectByNameOrId(

View File

@@ -12,8 +12,12 @@ import { InvalidToken, isAPIError, ProjectNotFound } from '../errors-ts';
import getUser from '../get-user'; import getUser from '../get-user';
import getTeamById from '../teams/get-team-by-id'; import getTeamById from '../teams/get-team-by-id';
import { Output } from '../output'; import { Output } from '../output';
import { Project, ProjectLinkResult } from '../../types'; import {
import { Org, ProjectLink } from '../../types'; Project,
ProjectLinkResult,
Org,
ProjectLink,
} from '@vercel-internals/types';
import { prependEmoji, emoji, EmojiLabel } from '../emoji'; import { prependEmoji, emoji, EmojiLabel } from '../emoji';
import { isDirectory } from '../config/global-path'; import { isDirectory } from '../config/global-path';
import { NowBuildError, getPlatformEnv } from '@vercel/build-utils'; import { NowBuildError, getPlatformEnv } from '@vercel/build-utils';

View File

@@ -1,5 +1,5 @@
import { outputJSON } from 'fs-extra'; import { outputJSON } from 'fs-extra';
import { Org, Project, ProjectLink } from '../../types'; import { Org, Project, ProjectLink } from '@vercel-internals/types';
import { getLinkFromDir, VERCEL_DIR, VERCEL_DIR_PROJECT } from './link'; import { getLinkFromDir, VERCEL_DIR, VERCEL_DIR_PROJECT } from './link';
import { join } from 'path'; import { join } from 'path';
import { VercelConfig } from '@vercel/client'; import { VercelConfig } from '@vercel/client';

View File

@@ -1,6 +1,6 @@
import chalk from 'chalk'; import chalk from 'chalk';
import Client from '../client'; import Client from '../client';
import { ProjectAliasTarget } from '../../types'; import { ProjectAliasTarget } from '@vercel-internals/types';
import { isAPIError } from '../errors-ts'; import { isAPIError } from '../errors-ts';
export async function removeDomainFromProject( export async function removeDomainFromProject(

View File

@@ -1,5 +1,5 @@
import Client from '../client'; import Client from '../client';
import type { JSONObject, ProjectSettings } from '../../types'; import type { JSONObject, ProjectSettings } from '@vercel-internals/types';
interface ProjectSettingsResponse extends ProjectSettings { interface ProjectSettingsResponse extends ProjectSettings {
id: string; id: string;

View File

@@ -2,7 +2,7 @@ import Client from './client';
import getScope from './get-scope'; import getScope from './get-scope';
import getArgs from './get-args'; import getArgs from './get-args';
import { isError } from '@vercel/error-utils'; import { isError } from '@vercel/error-utils';
import type { Team, User } from '../types'; import type { Team, User } from '@vercel-internals/types';
export default async function reportError( export default async function reportError(
sentry: typeof import('@sentry/node'), sentry: typeof import('@sentry/node'),

View File

@@ -1,6 +1,6 @@
import chalk from 'chalk'; import chalk from 'chalk';
import type Client from '../client'; import type Client from '../client';
import type { Deployment, Project, Team } from '../../types'; import type { Deployment, Project, Team } from '@vercel-internals/types';
import { getCommandName } from '../pkg-name'; import { getCommandName } from '../pkg-name';
import getDeployment from '../get-deployment'; import getDeployment from '../get-deployment';
import getScope from '../get-scope'; import getScope from '../get-scope';

View File

@@ -5,7 +5,7 @@ import type {
PaginationOptions, PaginationOptions,
Project, Project,
RollbackTarget, RollbackTarget,
} from '../../types'; } from '@vercel-internals/types';
import elapsed from '../output/elapsed'; import elapsed from '../output/elapsed';
import formatDate from '../format-date'; import formatDate from '../format-date';
import getDeployment from '../get-deployment'; import getDeployment from '../get-deployment';

Some files were not shown because too many files have changed in this diff Show More