@netlify/build 29.49.0 → 29.49.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.
|
@@ -19,17 +19,17 @@ const coreStep = async function ({ buildDir, packagePath, constants: { EDGE_FUNC
|
|
|
19
19
|
const distImportMapPath = join(dirname(internalSrcPath), IMPORT_MAP_FILENAME);
|
|
20
20
|
const srcPath = srcDirectory ? resolve(buildDir, srcDirectory) : undefined;
|
|
21
21
|
const frameworksAPISrcPath = resolve(buildDir, packagePath || '', FRAMEWORKS_API_EDGE_FUNCTIONS_ENDPOINT);
|
|
22
|
-
|
|
22
|
+
const generatedFunctionPaths = [internalSrcPath];
|
|
23
23
|
if (featureFlags.netlify_build_frameworks_api) {
|
|
24
24
|
if (await pathExists(frameworksAPISrcPath)) {
|
|
25
|
-
|
|
25
|
+
generatedFunctionPaths.unshift(frameworksAPISrcPath);
|
|
26
26
|
}
|
|
27
27
|
const frameworkImportMap = resolve(buildDir, packagePath || '', FRAMEWORKS_API_EDGE_FUNCTIONS_ENDPOINT, FRAMEWORKS_API_EDGE_FUNCTIONS_IMPORT_MAP);
|
|
28
28
|
if (await pathExists(frameworkImportMap)) {
|
|
29
29
|
importMapPaths.push(frameworkImportMap);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
const sourcePaths = [
|
|
32
|
+
const sourcePaths = [...generatedFunctionPaths, srcPath].filter(Boolean);
|
|
33
33
|
logFunctions({ frameworksAPISrcPath, internalSrcDirectory, internalSrcPath, logs, srcDirectory, srcPath });
|
|
34
34
|
// If we're running in buildbot, we set the Deno cache dir to a directory
|
|
35
35
|
// that is persisted between builds.
|
|
@@ -64,7 +64,7 @@ const coreStep = async function ({ buildDir, packagePath, constants: { EDGE_FUNC
|
|
|
64
64
|
importMapPaths,
|
|
65
65
|
userLogger: (...args) => log(logs, reduceLogLines(args)),
|
|
66
66
|
systemLogger: systemLog,
|
|
67
|
-
internalSrcFolder:
|
|
67
|
+
internalSrcFolder: generatedFunctionPaths,
|
|
68
68
|
bootstrapURL: edgeFunctionsBootstrapURL,
|
|
69
69
|
vendorDirectory,
|
|
70
70
|
});
|
|
@@ -97,13 +97,12 @@ const coreStep = async function ({ childEnv, constants: { INTERNAL_FUNCTIONS_SRC
|
|
|
97
97
|
log(logs, '');
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
const hasFrameworkFunctions = frameworkFunctions.length !== 0;
|
|
101
100
|
logFunctionsToBundle({
|
|
102
101
|
logs,
|
|
103
102
|
userFunctions,
|
|
104
103
|
userFunctionsSrc: relativeFunctionsSrc,
|
|
105
104
|
userFunctionsSrcExists: functionsSrcExists,
|
|
106
|
-
internalFunctions
|
|
105
|
+
internalFunctions,
|
|
107
106
|
internalFunctionsSrc: relativeInternalFunctionsSrc,
|
|
108
107
|
frameworkFunctions,
|
|
109
108
|
});
|
|
@@ -118,7 +117,7 @@ const coreStep = async function ({ childEnv, constants: { INTERNAL_FUNCTIONS_SRC
|
|
|
118
117
|
functionsDist,
|
|
119
118
|
functionsSrc,
|
|
120
119
|
frameworkFunctionsSrc,
|
|
121
|
-
internalFunctionsSrc
|
|
120
|
+
internalFunctionsSrc,
|
|
122
121
|
isRunningLocally,
|
|
123
122
|
logs,
|
|
124
123
|
repositoryRoot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.49.
|
|
3
|
+
"version": "29.49.1",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@netlify/blobs": "^7.3.0",
|
|
72
72
|
"@netlify/cache-utils": "^5.1.5",
|
|
73
73
|
"@netlify/config": "^20.15.4",
|
|
74
|
-
"@netlify/edge-bundler": "12.1.
|
|
74
|
+
"@netlify/edge-bundler": "12.1.1",
|
|
75
75
|
"@netlify/framework-info": "^9.8.13",
|
|
76
76
|
"@netlify/functions-utils": "^5.2.69",
|
|
77
77
|
"@netlify/git-utils": "^5.1.1",
|
|
@@ -165,5 +165,5 @@
|
|
|
165
165
|
"engines": {
|
|
166
166
|
"node": "^14.16.0 || >=16.0.0"
|
|
167
167
|
},
|
|
168
|
-
"gitHead": "
|
|
168
|
+
"gitHead": "b993b18469d4355e164f605e742e69dcb5612905"
|
|
169
169
|
}
|