@netlify/build 27.3.4 → 27.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "27.3.4",
3
+ "version": "27.4.0",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./src/core/main.js",
@@ -0,0 +1,7 @@
1
+ import { logMessage, logSubHeader } from '../logger.js'
2
+
3
+ export const logEdgeManifest = ({ logs, manifest }) => {
4
+ logSubHeader(logs, 'Edge Functions Manifest')
5
+ logMessage(logs, JSON.stringify(manifest))
6
+ logMessage(logs, '')
7
+ }
@@ -5,6 +5,7 @@ import { bundle, find } from '@netlify/edge-bundler'
5
5
  import { pathExists } from 'path-exists'
6
6
 
7
7
  import { logFunctionsToBundle } from '../../log/messages/core_steps.js'
8
+ import { logEdgeManifest } from '../../log/messages/edge_manifest.js'
8
9
 
9
10
  import { parseManifest } from './lib/internal_manifest.js'
10
11
 
@@ -45,7 +46,7 @@ const coreStep = async function ({
45
46
  // Edge Bundler expects the dist directory to exist.
46
47
  await fs.mkdir(distPath, { recursive: true })
47
48
 
48
- await bundle(sourcePaths, distPath, declarations, {
49
+ const { manifest } = await bundle(sourcePaths, distPath, declarations, {
49
50
  cacheDirectory,
50
51
  debug,
51
52
  distImportMapPath,
@@ -53,6 +54,10 @@ const coreStep = async function ({
53
54
  importMaps: [importMap].filter(Boolean),
54
55
  })
55
56
 
57
+ if (debug) {
58
+ logEdgeManifest({ manifest, logs, debug })
59
+ }
60
+
56
61
  return {}
57
62
  }
58
63