@netlify/build 29.0.2 → 29.0.3-rc.0

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.
@@ -28,6 +28,23 @@ const addPluginNodeVersion = function ({ pluginOptions, pluginOptions: { loadedF
28
28
 
29
29
  Read more about our minimum required version in our ${link('forums announcement', 'https://answers.netlify.com/t/build-plugins-dropping-support-for-node-js-12/79421')}`);
30
30
  }
31
+ console.log(`
32
+ @@@@ -----
33
+ DEBUG:
34
+
35
+ PLUGIN packageName: ${pluginOptions.packageName}
36
+ PLUGIN origin: ${pluginOptions.origin}
37
+ PLUGIN pinnedVersion: ${pluginOptions.pinnedVersion}
38
+ PLUGIN pluginPath: ${pluginOptions.pluginPath}
39
+ ---
40
+ loadedFrom: ${loadedFrom}
41
+ currentNodeVersion: ${currentNodeVersion}
42
+ execPath: ${execPath}
43
+ userNodeVersion: ${userNodeVersion}
44
+ nodePath: ${nodePath}
45
+
46
+
47
+ `);
31
48
  return (loadedFrom === 'local' || loadedFrom === 'package.json') &&
32
49
  semver.satisfies(userNodeVersion, MINIMUM_REQUIRED_NODE_VERSION)
33
50
  ? { ...pluginOptions, nodePath, nodeVersion: userNodeVersion }
@@ -19,7 +19,16 @@ const coreStep = async function ({ buildDir, constants: { EDGE_FUNCTIONS_DIST: d
19
19
  // If we're running in buildbot and the feature flag is enabled, we set the
20
20
  // Deno cache dir to a directory that is persisted between builds.
21
21
  const cacheDirectory = !isRunningLocally && featureFlags.edge_functions_cache_cli ? resolve(buildDir, DENO_CLI_CACHE_DIRECTORY) : undefined;
22
- // Edge Bundler expects the dist directory to exist.
22
+ // Cleaning up the dist directory, in case it has any artifacts from previous
23
+ // builds.
24
+ try {
25
+ await fs.rm(distPath, { recursive: true });
26
+ }
27
+ catch {
28
+ // no-op
29
+ }
30
+ // Ensuring the dist directory actually exists before letting Edge Bundler
31
+ // write to it.
23
32
  await fs.mkdir(distPath, { recursive: true });
24
33
  try {
25
34
  const { manifest } = await bundle(sourcePaths, distPath, declarations, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.0.2",
3
+ "version": "29.0.3-rc.0",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/core/main.js",
@@ -66,12 +66,12 @@
66
66
  "@bugsnag/js": "^7.0.0",
67
67
  "@netlify/cache-utils": "^5.0.2",
68
68
  "@netlify/config": "^20.0.2",
69
- "@netlify/edge-bundler": "5.3.2",
69
+ "@netlify/edge-bundler": "5.5.0",
70
70
  "@netlify/functions-utils": "^5.0.5",
71
71
  "@netlify/git-utils": "^5.0.2",
72
- "@netlify/plugins-list": "^6.58.0",
72
+ "@netlify/plugins-list": "^6.59.0",
73
73
  "@netlify/run-utils": "^5.0.2",
74
- "@netlify/zip-it-and-ship-it": "^7.1.3",
74
+ "@netlify/zip-it-and-ship-it": "^8.1.0",
75
75
  "@sindresorhus/slugify": "^2.0.0",
76
76
  "ansi-escapes": "^5.0.0",
77
77
  "chalk": "^5.0.0",
@@ -148,6 +148,5 @@
148
148
  "compilerOptions": {
149
149
  "module": "commonjs"
150
150
  }
151
- },
152
- "gitHead": "60dd08db0498f62bf087428679444014f5b464f7"
151
+ }
153
152
  }