@netlify/zip-it-and-ship-it 9.24.1 → 9.24.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.
|
@@ -84,6 +84,12 @@ const zipFunction = async function ({ config, destFolder, filename, mainFile, sr
|
|
|
84
84
|
stat: binaryStat,
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
+
const result = {
|
|
88
|
+
config,
|
|
89
|
+
displayName: config?.name,
|
|
90
|
+
generator: config?.generator || getInternalValue(isInternal),
|
|
91
|
+
runtimeVersion: featureFlags.zisi_golang_use_al2 ? 'provided.al2' : undefined,
|
|
92
|
+
};
|
|
87
93
|
// If `zipGo` is enabled, we create a zip archive with the Go binary and the
|
|
88
94
|
// toolchain file.
|
|
89
95
|
if (config.zipGo) {
|
|
@@ -95,10 +101,9 @@ const zipFunction = async function ({ config, destFolder, filename, mainFile, sr
|
|
|
95
101
|
};
|
|
96
102
|
await zipBinary({ ...zipOptions, srcPath: binary.path, stat: binary.stat });
|
|
97
103
|
return {
|
|
98
|
-
|
|
104
|
+
...result,
|
|
99
105
|
path: zipPath,
|
|
100
106
|
entryFilename: zipOptions.filename,
|
|
101
|
-
runtimeVersion: featureFlags.zisi_golang_use_al2 ? 'provided.al2' : undefined,
|
|
102
107
|
};
|
|
103
108
|
}
|
|
104
109
|
// We don't need to zip the binary, so we can just copy it to the right path.
|
|
@@ -108,11 +113,9 @@ const zipFunction = async function ({ config, destFolder, filename, mainFile, sr
|
|
|
108
113
|
await copyFile(binary.path, destPath);
|
|
109
114
|
}
|
|
110
115
|
return {
|
|
111
|
-
|
|
116
|
+
...result,
|
|
112
117
|
path: destPath,
|
|
113
118
|
entryFilename: '',
|
|
114
|
-
displayName: config?.name,
|
|
115
|
-
generator: config?.generator || getInternalValue(isInternal),
|
|
116
119
|
};
|
|
117
120
|
};
|
|
118
121
|
const runtime = { findFunctionsInPaths, findFunctionInPath, name: RUNTIME.GO, zipFunction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "9.24.
|
|
3
|
+
"version": "9.24.2",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@babel/parser": "^7.22.5",
|
|
58
|
+
"@babel/types": "7.22.19",
|
|
58
59
|
"@netlify/binary-info": "^1.0.0",
|
|
59
60
|
"@netlify/serverless-functions-api": "^1.9.0",
|
|
60
61
|
"@vercel/nft": "^0.23.0",
|
|
@@ -87,7 +88,6 @@
|
|
|
87
88
|
"yargs": "^17.0.0"
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|
|
90
|
-
"@babel/types": "7.22.19",
|
|
91
91
|
"@netlify/eslint-config-node": "7.0.1",
|
|
92
92
|
"@skn0tt/lambda-local": "2.0.3",
|
|
93
93
|
"@types/archiver": "5.3.3",
|