@netlify/zip-it-and-ship-it 16.2.1 → 16.2.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/dist/runtimes/node/index.js +1 -1
- package/dist/server.js +1 -2
- package/package.json +2 -2
|
@@ -52,7 +52,7 @@ const zipFunction = async function ({ archiveFormat, basePath, branch, cache, co
|
|
|
52
52
|
pluginsModulesPath = undefined;
|
|
53
53
|
}
|
|
54
54
|
const staticAnalysisResult = await parseFile(mainFile, { functionName: name });
|
|
55
|
-
const runtimeAPIVersion = staticAnalysisResult.runtimeAPIVersion === 2 ? 2 : 1;
|
|
55
|
+
const runtimeAPIVersion = isServer === true || staticAnalysisResult.runtimeAPIVersion === 2 ? 2 : 1;
|
|
56
56
|
const mergedConfig = augmentFunctionConfig(mainFile, config, staticAnalysisResult.config);
|
|
57
57
|
const { name: bundlerName, reason: bundlerReason } = await getBundlerName({
|
|
58
58
|
config: mergedConfig,
|
package/dist/server.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { promises as fs } from 'fs';
|
|
2
2
|
import { extname, join, resolve } from 'path';
|
|
3
3
|
import { ARCHIVE_FORMAT } from './archive.js';
|
|
4
|
-
import { NODE_BUNDLER } from './runtimes/node/bundlers/types.js';
|
|
5
4
|
import { getFunctionFromPath } from './runtimes/index.js';
|
|
6
5
|
import { RUNTIME } from './runtimes/runtime.js';
|
|
7
6
|
import { FunctionBundlingUserError } from './utils/error.js';
|
|
@@ -65,7 +64,7 @@ export const bundleServer = async (server, destFolder, { basePath, cache, featur
|
|
|
65
64
|
archiveFormat: ARCHIVE_FORMAT.ZIP,
|
|
66
65
|
basePath,
|
|
67
66
|
cache,
|
|
68
|
-
config:
|
|
67
|
+
config: source.config,
|
|
69
68
|
destFolder,
|
|
70
69
|
extension: source.extension,
|
|
71
70
|
featureFlags,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.2",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=22.12.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "9b3697b13c8c2294c30810b14a7ef9b8fd9e2bcd"
|
|
104
104
|
}
|