@vercel/build-utils 4.2.1 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "4.2.1",
3
+ "version": "5.0.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -31,7 +31,6 @@
31
31
  "@types/node-fetch": "^2.1.6",
32
32
  "@types/semver": "6.0.0",
33
33
  "@types/yazl": "2.4.2",
34
- "@vercel/frameworks": "1.0.2",
35
34
  "@vercel/ncc": "0.24.0",
36
35
  "aggregate-error": "3.0.1",
37
36
  "async-retry": "1.2.3",
@@ -50,5 +49,5 @@
50
49
  "typescript": "4.3.4",
51
50
  "yazl": "2.5.1"
52
51
  },
53
- "gitHead": "547e88228e180e883e5f07ab815a16960767bbf5"
52
+ "gitHead": "0a2af4fb94d71a7a23ffc72fb68748be1177f345"
54
53
  }
@@ -1,37 +0,0 @@
1
- import { Route } from '@vercel/routing-utils';
2
- import { PackageJson, Builder, BuilderFunctions, ProjectSettings } from './types';
3
- interface ErrorResponse {
4
- code: string;
5
- message: string;
6
- action?: string;
7
- link?: string;
8
- }
9
- interface Options {
10
- tag?: string;
11
- functions?: BuilderFunctions;
12
- ignoreBuildScript?: boolean;
13
- projectSettings?: ProjectSettings;
14
- cleanUrls?: boolean;
15
- trailingSlash?: boolean;
16
- featHandleMiss?: boolean;
17
- }
18
- export declare function sortFiles(fileA: string, fileB: string): number;
19
- export declare function detectApiExtensions(builders: Builder[]): Set<string>;
20
- export declare function detectApiDirectory(builders: Builder[]): string | null;
21
- export declare function detectOutputDirectory(builders: Builder[]): string | null;
22
- export declare function detectBuilders(files: string[], pkg?: PackageJson | undefined | null, options?: Options): Promise<{
23
- builders: Builder[] | null;
24
- errors: ErrorResponse[] | null;
25
- warnings: ErrorResponse[];
26
- defaultRoutes: Route[] | null;
27
- redirectRoutes: Route[] | null;
28
- rewriteRoutes: Route[] | null;
29
- errorRoutes: Route[] | null;
30
- limitedRoutes: LimitedRoutes | null;
31
- }>;
32
- interface LimitedRoutes {
33
- defaultRoutes: Route[];
34
- redirectRoutes: Route[];
35
- rewriteRoutes: Route[];
36
- }
37
- export {};