@netlify/build 27.16.2-pidgey → 27.16.2-rc0-rc

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.16.2-pidgey",
3
+ "version": "27.16.2-rc0-rc",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./src/core/main.js",
@@ -63,7 +63,7 @@
63
63
  "@netlify/git-utils": "^4.0.0",
64
64
  "@netlify/plugins-list": "^6.41.0",
65
65
  "@netlify/run-utils": "^4.0.0",
66
- "@netlify/zip-it-and-ship-it": "^6.0.0",
66
+ "@netlify/zip-it-and-ship-it": "^7.0.0",
67
67
  "@sindresorhus/slugify": "^2.0.0",
68
68
  "@types/node": "^16.0.0",
69
69
  "ajv": "^8.11.0",
@@ -1,6 +1,4 @@
1
- import { promises as fs } from 'fs'
2
- import path, { resolve } from 'path'
3
- import process from 'process'
1
+ import { resolve } from 'path'
4
2
 
5
3
  import { zipFunctions } from '@netlify/zip-it-and-ship-it'
6
4
  import { pathExists } from 'path-exists'
@@ -28,7 +26,6 @@ const zipFunctionsAndLogResults = async ({
28
26
  isRunningLocally,
29
27
  logs,
30
28
  repositoryRoot,
31
- publishDir,
32
29
  }) => {
33
30
  const zisiParameters = getZisiParameters({
34
31
  buildDir,
@@ -47,13 +44,6 @@ const zipFunctionsAndLogResults = async ({
47
44
 
48
45
  const sourceDirectories = [internalFunctionsSrc, functionsSrc].filter(Boolean)
49
46
  const results = await zipItAndShipIt.zipFunctions(sourceDirectories, functionsDist, zisiParameters)
50
- if (process.env.NF_BUNDLE_FOR_FLY === 'true') {
51
- const destDir = path.join(publishDir, '.netlify/internal/fly-functions')
52
- await fs.mkdir(destDir, { recursive: true })
53
- await Promise.all(
54
- results.map((result) => fs.copyFile(result.path, path.join(destDir, path.basename(result.path)))),
55
- )
56
- }
57
47
 
58
48
  logBundleResults({ logs, results })
59
49
 
@@ -72,7 +62,6 @@ const coreStep = async function ({
72
62
  IS_LOCAL: isRunningLocally,
73
63
  FUNCTIONS_SRC: relativeFunctionsSrc,
74
64
  FUNCTIONS_DIST: relativeFunctionsDist,
75
- PUBLISH_DIR: publishDir,
76
65
  },
77
66
  buildDir,
78
67
  logs,
@@ -125,7 +114,6 @@ const coreStep = async function ({
125
114
  isRunningLocally,
126
115
  logs,
127
116
  repositoryRoot,
128
- publishDir,
129
117
  })
130
118
 
131
119
  return {