@vercel/python 4.8.0 → 5.0.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3085,16 +3085,17 @@ var build = async ({
3085
3085
  const entrypointWithSuffix = `${entrypoint}${suffix}`;
3086
3086
  (0, import_build_utils3.debug)("Entrypoint with suffix is", entrypointWithSuffix);
3087
3087
  const handlerPyContents = originalHandlerPyContents.replace(/__VC_HANDLER_MODULE_NAME/g, moduleName).replace(/__VC_HANDLER_ENTRYPOINT/g, entrypointWithSuffix);
3088
+ const predefinedExcludes = [
3089
+ ".git/**",
3090
+ ".vercel/**",
3091
+ ".pnpm-store/**",
3092
+ "**/node_modules/**",
3093
+ "**/.next/**",
3094
+ "**/.nuxt/**"
3095
+ ];
3088
3096
  const globOptions = {
3089
3097
  cwd: workPath,
3090
- ignore: config && typeof config.excludeFiles === "string" ? config.excludeFiles : [
3091
- ".git/**",
3092
- ".vercel/**",
3093
- ".pnpm-store/**",
3094
- "**/node_modules/**",
3095
- "**/.next/**",
3096
- "**/.nuxt/**"
3097
- ]
3098
+ ignore: config && typeof config.excludeFiles === "string" ? [...predefinedExcludes, config.excludeFiles] : predefinedExcludes
3098
3099
  };
3099
3100
  const files = await (0, import_build_utils3.glob)("**", globOptions);
3100
3101
  const handlerPyFilename = "vc__handler__python";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "4.8.0",
3
+ "version": "5.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -19,7 +19,7 @@
19
19
  "@types/jest": "27.4.1",
20
20
  "@types/node": "14.18.33",
21
21
  "@types/which": "3.0.0",
22
- "@vercel/build-utils": "10.6.7",
22
+ "@vercel/build-utils": "11.0.0",
23
23
  "cross-env": "7.0.3",
24
24
  "execa": "^1.0.0",
25
25
  "fs-extra": "11.1.1",