@netlify/build 27.15.1 → 27.15.2

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.15.1",
3
+ "version": "27.15.2",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./src/core/main.js",
@@ -1,12 +1,10 @@
1
1
  import { promises as fs } from 'fs'
2
2
  import { dirname, join, resolve } from 'path'
3
- import { env } from 'process'
4
3
 
5
4
  import { bundle, find } from '@netlify/edge-bundler'
6
5
  import { pathExists } from 'path-exists'
7
6
 
8
7
  import { logFunctionsToBundle } from '../../log/messages/core_steps.js'
9
- import { getUtils } from '../../plugins/child/utils.js'
10
8
 
11
9
  import { tagBundlingError } from './lib/error.js'
12
10
  import { parseManifest } from './lib/internal_manifest.js'
@@ -17,20 +15,26 @@ const DENO_CLI_CACHE_DIRECTORY = '.netlify/plugins/deno-cli'
17
15
  const IMPORT_MAP_FILENAME = 'edge-functions-import-map.json'
18
16
 
19
17
  // eslint-disable-next-line complexity, max-statements
20
- const coreStep = async function ({ buildDir, constants, debug, systemLog, featureFlags, logs, netlifyConfig }) {
21
- const {
18
+ const coreStep = async function ({
19
+ buildDir,
20
+ constants: {
22
21
  EDGE_FUNCTIONS_DIST: distDirectory,
23
22
  EDGE_FUNCTIONS_SRC: srcDirectory,
24
23
  INTERNAL_EDGE_FUNCTIONS_SRC: internalSrcDirectory,
25
24
  IS_LOCAL: isRunningLocally,
26
- } = constants
25
+ },
26
+ debug,
27
+ systemLog,
28
+ featureFlags,
29
+ logs,
30
+ netlifyConfig,
31
+ }) {
27
32
  const { edge_functions: configDeclarations = [] } = netlifyConfig
28
33
  const distPath = resolve(buildDir, distDirectory)
29
34
  const internalSrcPath = resolve(buildDir, internalSrcDirectory)
30
35
  const distImportMapPath = join(dirname(internalSrcPath), IMPORT_MAP_FILENAME)
31
36
  const srcPath = srcDirectory ? resolve(buildDir, srcDirectory) : undefined
32
37
  const sourcePaths = [internalSrcPath, srcPath].filter(Boolean)
33
- const utils = getUtils({ event: 'onBuild', constants, runState: {} })
34
38
 
35
39
  logFunctions({ internalSrcDirectory, internalSrcPath, logs, srcDirectory, srcPath })
36
40
 
@@ -65,12 +69,6 @@ const coreStep = async function ({ buildDir, constants, debug, systemLog, featur
65
69
 
66
70
  await validateEdgeFunctionsManifest({ buildDir, constants: { EDGE_FUNCTIONS_DIST: distDirectory } })
67
71
 
68
- if (!isRunningLocally) {
69
- const logsLink = `https://app.netlify.com/sites/${env.SITE_NAME}/edge-functions?scope=deployid:${env.DEPLOY_ID}`
70
- const summaryText = `${declarations.length} edge functions deployed. [Watch Logs](${logsLink})`
71
- utils.status.show({ summary: summaryText, title: 'Edge Functions' })
72
- }
73
-
74
72
  return {}
75
73
  }
76
74