Skip to content

Commit 4a77bbc

Browse files
renovate[bot]danez
andauthored
fix(deps): update dependency @netlify/zip-it-and-ship-it to v9 (#4982)
* fix(deps): update dependency @netlify/zip-it-and-ship-it to v9 * chore: set correct node version * chore: update to 9.2.1 * chore: update test * chore: fix test --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Tschinder <[email protected]>
1 parent cc5813f commit 4a77bbc

File tree

12 files changed

+134
-71
lines changed

12 files changed

+134
-71
lines changed

package-lock.json

Lines changed: 55 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/build-info/tests/__snapshots__/bin.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`CLI --help flag 1`] = `
44
"bin.js [projectDir]

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@netlify/git-utils": "^5.1.1",
7373
"@netlify/plugins-list": "^6.68.0",
7474
"@netlify/run-utils": "^5.1.0",
75-
"@netlify/zip-it-and-ship-it": "8.10.0",
75+
"@netlify/zip-it-and-ship-it": "9.2.1",
7676
"@sindresorhus/slugify": "^2.0.0",
7777
"ansi-escapes": "^6.0.0",
7878
"chalk": "^5.0.0",

packages/build/src/core/build.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ const initAndRunBuild = async function ({
451451
packageJson,
452452
configPath,
453453
outputConfigPath,
454+
userNodeVersion,
454455
headersPath,
455456
redirectsPath,
456457
buildDir,
@@ -515,6 +516,7 @@ const runBuild = async function ({
515516
packageJson,
516517
configPath,
517518
outputConfigPath,
519+
userNodeVersion,
518520
headersPath,
519521
redirectsPath,
520522
buildDir,
@@ -599,6 +601,7 @@ const runBuild = async function ({
599601
testOpts,
600602
featureFlags,
601603
quiet,
604+
userNodeVersion,
602605
})
603606

604607
return {

packages/build/src/plugins_core/functions/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { resolve } from 'path'
22

3-
import { NodeBundlerType, RuntimeType, zipFunctions } from '@netlify/zip-it-and-ship-it'
3+
import { NodeBundlerName, RUNTIME, zipFunctions } from '@netlify/zip-it-and-ship-it'
44
import { pathExists } from 'path-exists'
55

66
import { log } from '../../log/logger.js'
@@ -15,8 +15,8 @@ const getBundlers = (results: Awaited<ReturnType<typeof zipFunctions>> = []) =>
1515
// using a Set to filter duplicates
1616
new Set(
1717
results
18-
.map((bundle) => (bundle.runtime === RuntimeType.JAVASCRIPT ? bundle.bundler : null))
19-
.filter(Boolean) as NodeBundlerType[],
18+
.map((bundle) => (bundle.runtime === RUNTIME.JAVASCRIPT ? bundle.bundler : null))
19+
.filter(Boolean) as NodeBundlerName[],
2020
)
2121

2222
const zipFunctionsAndLogResults = async ({
@@ -30,6 +30,7 @@ const zipFunctionsAndLogResults = async ({
3030
isRunningLocally,
3131
logs,
3232
repositoryRoot,
33+
userNodeVersion,
3334
}) => {
3435
const zisiParameters = getZisiParameters({
3536
buildDir,
@@ -40,6 +41,7 @@ const zipFunctionsAndLogResults = async ({
4041
internalFunctionsSrc,
4142
isRunningLocally,
4243
repositoryRoot,
44+
userNodeVersion,
4345
})
4446

4547
try {
@@ -74,6 +76,7 @@ const coreStep = async function ({
7476
netlifyConfig,
7577
featureFlags,
7678
repositoryRoot,
79+
userNodeVersion,
7780
}) {
7881
const functionsSrc = relativeFunctionsSrc === undefined ? undefined : resolve(buildDir, relativeFunctionsSrc)
7982
const functionsDist = resolve(buildDir, relativeFunctionsDist)
@@ -120,6 +123,7 @@ const coreStep = async function ({
120123
isRunningLocally,
121124
logs,
122125
repositoryRoot,
126+
userNodeVersion,
123127
})
124128

125129
const metrics = getMetrics(internalFunctions, userFunctions)

0 commit comments

Comments
 (0)