@netlify/zip-it-and-ship-it 13.1.0 → 13.2.0

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/main.d.ts CHANGED
@@ -28,6 +28,7 @@ export interface ListedFunction {
28
28
  inputModuleFormat?: ModuleFormat;
29
29
  excludedRoutes?: Route[];
30
30
  routes?: ExtendedRoute[];
31
+ srcDir?: string;
31
32
  }
32
33
  type ListedFunctionFile = ListedFunction & {
33
34
  srcFile: string;
package/dist/main.js CHANGED
@@ -64,7 +64,7 @@ export const listFunctionsFiles = async function (relativeSrcFolders, { basePath
64
64
  const listedFunctionsFiles = await Promise.all(augmentedFunctions.map((func) => getListedFunctionFiles(func, { basePath, featureFlags })));
65
65
  return listedFunctionsFiles.flat();
66
66
  };
67
- const getListedFunction = function ({ config, extension, staticAnalysisResult, mainFile, name, runtime, }) {
67
+ const getListedFunction = function ({ config, extension, staticAnalysisResult, mainFile, name, runtime, srcDir, }) {
68
68
  return {
69
69
  displayName: config.name,
70
70
  extension,
@@ -78,6 +78,7 @@ const getListedFunction = function ({ config, extension, staticAnalysisResult, m
78
78
  runtimeAPIVersion: staticAnalysisResult ? (staticAnalysisResult?.runtimeAPIVersion ?? 1) : undefined,
79
79
  schedule: staticAnalysisResult?.config?.schedule ?? config.schedule,
80
80
  inputModuleFormat: staticAnalysisResult?.inputModuleFormat,
81
+ srcDir,
81
82
  };
82
83
  };
83
84
  const getListedFunctionFiles = async function (func, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/zip-it-and-ship-it",
3
- "version": "13.1.0",
3
+ "version": "13.2.0",
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": ">=18.14.0"
102
102
  },
103
- "gitHead": "8b4d1bc0bf7986ac48b4cb46e92f04f8cd8be987"
103
+ "gitHead": "5e81ecceadc00a5d5753026ec682b2507991ce19"
104
104
  }