@netlify/build 27.15.7 → 27.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "27.15.7",
3
+ "version": "27.16.1",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./src/core/main.js",
@@ -56,14 +56,14 @@
56
56
  "license": "MIT",
57
57
  "dependencies": {
58
58
  "@bugsnag/js": "^7.0.0",
59
- "@netlify/edge-bundler": "^1.14.0",
59
+ "@netlify/edge-bundler": "^1.14.1",
60
60
  "@netlify/cache-utils": "^4.0.0",
61
- "@netlify/config": "^18.2.2",
62
- "@netlify/functions-utils": "^4.2.4",
61
+ "@netlify/config": "^18.2.3",
62
+ "@netlify/functions-utils": "^4.2.5",
63
63
  "@netlify/git-utils": "^4.0.0",
64
- "@netlify/plugins-list": "^6.36.0",
64
+ "@netlify/plugins-list": "^6.41.0",
65
65
  "@netlify/run-utils": "^4.0.0",
66
- "@netlify/zip-it-and-ship-it": "^5.13.5",
66
+ "@netlify/zip-it-and-ship-it": "^6.0.0",
67
67
  "@sindresorhus/slugify": "^2.0.0",
68
68
  "@types/node": "^16.0.0",
69
69
  "ajv": "^8.11.0",
@@ -1,5 +1,6 @@
1
1
  import semver from 'semver'
2
2
 
3
+ import { isRuntime } from '../../utils/runtime.js'
3
4
  import { isPreviousMajor } from '../../utils/semver.js'
4
5
  import { getPluginOrigin } from '../description.js'
5
6
  import { logArray, logSubHeader, logWarningArray, logWarningSubHeader } from '../logger.js'
@@ -36,11 +37,6 @@ const isNotCorePlugin = function ({ origin }) {
36
37
  return origin !== 'core'
37
38
  }
38
39
 
39
- const isRuntime = function ({ packageName }) {
40
- // Make this a bit more robust in the future
41
- return ['@netlify/next-runtime', '@netlify/plugin-nextjs'].includes(packageName)
42
- }
43
-
44
40
  const getPluginDescription = function (
45
41
  {
46
42
  packageName,
@@ -1,8 +1,20 @@
1
+ import { isRuntime } from '../../utils/runtime.js'
1
2
  import { log, logArray, logSubHeader } from '../logger.js'
2
3
 
3
4
  export const logInstallMissingPlugins = function (logs, packages) {
4
- logSubHeader(logs, 'Installing plugins')
5
- logArray(logs, packages)
5
+ const runtimes = packages.filter((pkg) => isRuntime(pkg))
6
+ const plugins = packages.filter((pkg) => !isRuntime(pkg))
7
+
8
+ if (plugins.length !== 0) {
9
+ logSubHeader(logs, 'Installing plugins')
10
+ logArray(logs, packages)
11
+ }
12
+
13
+ if (runtimes.length !== 0) {
14
+ const [nextRuntime] = runtimes
15
+
16
+ logSubHeader(logs, `Using Next.js Runtime - v${nextRuntime.pluginPackageJson.version}`)
17
+ }
6
18
  }
7
19
 
8
20
  export const logInstallLocalPluginsDeps = function (logs, localPluginsOptions) {
@@ -0,0 +1,4 @@
1
+ export const isRuntime = function (packageName) {
2
+ // Make this a bit more robust in the future
3
+ return ['@netlify/next-runtime', '@netlify/plugin-nextjs'].includes(packageName)
4
+ }