@netlify/build 29.22.5 → 29.23.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.
|
@@ -29,6 +29,14 @@ const coreStep = async function ({ buildDir, constants: { EDGE_FUNCTIONS_DIST: d
|
|
|
29
29
|
catch {
|
|
30
30
|
// no-op
|
|
31
31
|
}
|
|
32
|
+
let vendorDirectory;
|
|
33
|
+
// If we're building locally, set a vendor directory in `internalSrcPath`.
|
|
34
|
+
// This makes Edge Bundler keep the vendor files around after the build,
|
|
35
|
+
// which lets the IDE have a valid reference to them.
|
|
36
|
+
if (isRunningLocally && featureFlags.edge_functions_npm_modules) {
|
|
37
|
+
vendorDirectory = join(internalSrcPath, '.vendor');
|
|
38
|
+
await fs.mkdir(vendorDirectory, { recursive: true });
|
|
39
|
+
}
|
|
32
40
|
// Ensuring the dist directory actually exists before letting Edge Bundler
|
|
33
41
|
// write to it.
|
|
34
42
|
await fs.mkdir(distPath, { recursive: true });
|
|
@@ -45,6 +53,7 @@ const coreStep = async function ({ buildDir, constants: { EDGE_FUNCTIONS_DIST: d
|
|
|
45
53
|
systemLogger: featureFlags.edge_functions_system_logger ? systemLog : undefined,
|
|
46
54
|
internalSrcFolder: internalSrcPath,
|
|
47
55
|
bootstrapURL: edgeFunctionsBootstrapURL,
|
|
56
|
+
vendorDirectory,
|
|
48
57
|
});
|
|
49
58
|
const metrics = getMetrics(manifest);
|
|
50
59
|
systemLog('Edge Functions manifest:', manifest);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.23.1",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"@honeycombio/opentelemetry-node": "^0.5.0",
|
|
69
69
|
"@netlify/cache-utils": "^5.1.5",
|
|
70
70
|
"@netlify/config": "^20.9.0",
|
|
71
|
-
"@netlify/edge-bundler": "9.
|
|
71
|
+
"@netlify/edge-bundler": "9.3.0",
|
|
72
72
|
"@netlify/framework-info": "^9.8.10",
|
|
73
|
-
"@netlify/functions-utils": "^5.2.
|
|
73
|
+
"@netlify/functions-utils": "^5.2.35",
|
|
74
74
|
"@netlify/git-utils": "^5.1.1",
|
|
75
75
|
"@netlify/plugins-list": "^6.71.0",
|
|
76
76
|
"@netlify/run-utils": "^5.1.1",
|
|
77
|
-
"@netlify/zip-it-and-ship-it": "9.
|
|
77
|
+
"@netlify/zip-it-and-ship-it": "9.25.1",
|
|
78
78
|
"@opentelemetry/api": "^1.4.1",
|
|
79
79
|
"@sindresorhus/slugify": "^2.0.0",
|
|
80
80
|
"ansi-escapes": "^6.0.0",
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"engines": {
|
|
146
146
|
"node": "^14.16.0 || >=16.0.0"
|
|
147
147
|
},
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "086671833fcae2e75b9cf4ecc39d5bcbdd9df017"
|
|
149
149
|
}
|