@netlify/build 36.4.5 → 36.4.7
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/lib/core/main.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { BufferedLogs } from '../log/logger.js';
|
|
2
|
+
import type { ConfigMutation } from '../plugins/child/diff.js';
|
|
3
|
+
import type { NetlifyConfig } from '../types/config/netlify_config.js';
|
|
4
|
+
import { type GeneratedFunction } from '../steps/return_values.js';
|
|
2
5
|
import { BuildFlags } from './types.js';
|
|
3
6
|
/**
|
|
4
7
|
* Main entry point of Netlify Build.
|
|
@@ -10,6 +13,7 @@ export declare function buildSite(flags?: Partial<BuildFlags>): Promise<{
|
|
|
10
13
|
success: boolean;
|
|
11
14
|
severityCode: number;
|
|
12
15
|
logs: BufferedLogs | undefined;
|
|
13
|
-
netlifyConfig?:
|
|
14
|
-
configMutations?:
|
|
16
|
+
netlifyConfig?: NetlifyConfig;
|
|
17
|
+
configMutations?: ConfigMutation[];
|
|
18
|
+
generatedFunctions?: GeneratedFunction[];
|
|
15
19
|
}>;
|
package/lib/plugins/list.d.ts
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import { BufferedLogs } from '../log/logger.js';
|
|
2
2
|
import { CONDITIONS } from './plugin_conditions.js';
|
|
3
|
+
/**
|
|
4
|
+
* Internal type from the `plugins.json`
|
|
5
|
+
*/
|
|
6
|
+
export type PluginCompatiblityEntry = {
|
|
7
|
+
version: string;
|
|
8
|
+
featureFlag?: string;
|
|
9
|
+
overridePinnedVersion?: string;
|
|
10
|
+
migrationGuide?: string;
|
|
11
|
+
nodeVersion?: string;
|
|
12
|
+
siteDependencies?: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Internal type from the `plugins.json`
|
|
16
|
+
*/
|
|
17
|
+
export type PluginListEntry = {
|
|
18
|
+
author: string;
|
|
19
|
+
description: string;
|
|
20
|
+
name: string;
|
|
21
|
+
package: string;
|
|
22
|
+
repo: string;
|
|
23
|
+
version: string;
|
|
24
|
+
compatibility: PluginCompatiblityEntry[];
|
|
25
|
+
};
|
|
3
26
|
/**
|
|
4
27
|
* The resolved and normalized Plugin list
|
|
5
28
|
*/
|
package/lib/utils/json.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { PackageJson } from 'read-package-up';
|
|
2
1
|
export type RootPackageJson = {
|
|
3
2
|
name: string;
|
|
4
3
|
version: string;
|
|
5
4
|
};
|
|
6
|
-
export declare const importJsonFile: (filePath: string) => Promise<
|
|
5
|
+
export declare const importJsonFile: <T>(filePath: string) => Promise<T>;
|
|
7
6
|
export declare const ROOT_PACKAGE_JSON: RootPackageJson;
|
|
8
7
|
export declare const getVersion: () => string;
|
package/lib/utils/json.js
CHANGED
|
@@ -7,5 +7,5 @@ export const importJsonFile = async function (filePath) {
|
|
|
7
7
|
const fileContents = await readFile(filePath, 'utf-8');
|
|
8
8
|
return JSON.parse(fileContents);
|
|
9
9
|
};
|
|
10
|
-
export const ROOT_PACKAGE_JSON =
|
|
10
|
+
export const ROOT_PACKAGE_JSON = await importJsonFile(ROOT_PACKAGE_JSON_PATH);
|
|
11
11
|
export const getVersion = () => ROOT_PACKAGE_JSON.version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "36.4.
|
|
3
|
+
"version": "36.4.7",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -26,12 +26,9 @@
|
|
|
26
26
|
"postbuild": "npx cpy \"src/**/*.yml\" \"lib/\"",
|
|
27
27
|
"build": "tsc --project tsconfig.build.json",
|
|
28
28
|
"test:types": "tsd",
|
|
29
|
-
"test": "
|
|
30
|
-
"test:dev": "
|
|
31
|
-
"test:ci": "run
|
|
32
|
-
"test:ci:types": "tsd",
|
|
33
|
-
"test:ci:ava": "c8 -r lcovonly -r text -r json ava",
|
|
34
|
-
"test:ci:vitest": "vitest run"
|
|
29
|
+
"test": "tsd && vitest run",
|
|
30
|
+
"test:dev": "vitest",
|
|
31
|
+
"test:ci": "tsd && vitest run --coverage"
|
|
35
32
|
},
|
|
36
33
|
"keywords": [
|
|
37
34
|
"nodejs",
|
|
@@ -67,16 +64,16 @@
|
|
|
67
64
|
"license": "MIT",
|
|
68
65
|
"dependencies": {
|
|
69
66
|
"@bugsnag/js": "^8.0.0",
|
|
70
|
-
"@netlify/blobs": "^
|
|
67
|
+
"@netlify/blobs": "^11.0.3",
|
|
71
68
|
"@netlify/cache-utils": "^7.1.2",
|
|
72
|
-
"@netlify/config": "^25.2.
|
|
69
|
+
"@netlify/config": "^25.2.4",
|
|
73
70
|
"@netlify/edge-bundler": "16.0.4",
|
|
74
|
-
"@netlify/functions-utils": "^7.1.
|
|
71
|
+
"@netlify/functions-utils": "^7.1.9",
|
|
75
72
|
"@netlify/git-utils": "^7.1.1",
|
|
76
73
|
"@netlify/opentelemetry-utils": "^3.1.0",
|
|
77
74
|
"@netlify/plugins-list": "^6.81.6",
|
|
78
75
|
"@netlify/run-utils": "^7.1.0",
|
|
79
|
-
"@netlify/zip-it-and-ship-it": "15.5.
|
|
76
|
+
"@netlify/zip-it-and-ship-it": "15.5.1",
|
|
80
77
|
"@sindresorhus/slugify": "^2.0.0",
|
|
81
78
|
"ansis": "^4.1.0",
|
|
82
79
|
"execa": "^8.0.0",
|
|
@@ -114,18 +111,15 @@
|
|
|
114
111
|
"@opentelemetry/api": "~1.8.0",
|
|
115
112
|
"@opentelemetry/sdk-trace-base": "~1.24.0",
|
|
116
113
|
"@types/node": "^22.12.0",
|
|
114
|
+
"@vitest/coverage-v8": "^3.2.6",
|
|
117
115
|
"atob": "^2.1.2",
|
|
118
|
-
"ava": "^5.0.0",
|
|
119
|
-
"c8": "^10.0.0",
|
|
120
116
|
"cpy": "^11.0.0",
|
|
121
117
|
"cpy-cli": "^5.0.0",
|
|
122
118
|
"get-node": "^14.2.1",
|
|
123
119
|
"get-port": "^7.0.0",
|
|
124
120
|
"has-ansi": "^6.0.0",
|
|
125
121
|
"micro-memoize": "^5.1.1",
|
|
126
|
-
"npm-run-all2": "^6.0.0",
|
|
127
122
|
"process-exists": "^5.0.0",
|
|
128
|
-
"tinyspy": "^4.0.3",
|
|
129
123
|
"tmp-promise": "^3.0.2",
|
|
130
124
|
"tsd": "^0.33.0",
|
|
131
125
|
"vitest": "^3.0.0",
|
|
@@ -143,5 +137,5 @@
|
|
|
143
137
|
"engines": {
|
|
144
138
|
"node": ">=22.12.0"
|
|
145
139
|
},
|
|
146
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "d30dc9ad0c79ea23f01354f2487187d3398f5de2"
|
|
147
141
|
}
|