@vercel/python 4.0.0 → 4.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -17,13 +17,13 @@
17
17
  "@types/execa": "^0.9.0",
18
18
  "@types/jest": "27.4.1",
19
19
  "@types/node": "14.18.33",
20
- "@vercel/build-utils": "7.0.0",
20
+ "@vercel/build-utils": "7.2.0",
21
21
  "@vercel/ncc": "0.24.0",
22
22
  "execa": "^1.0.0",
23
23
  "jest-junit": "16.0.0"
24
24
  },
25
25
  "scripts": {
26
- "build": "node build",
26
+ "build": "node ../../utils/build-builder.mjs",
27
27
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
28
28
  "test-unit": "pnpm test test/unit.test.ts",
29
29
  "test-e2e": "pnpm test test/integration-*"
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { BuildOptions, shouldServe } from '@vercel/build-utils';
2
- import { installRequirement, installRequirementsFile } from './install';
3
- export declare const version = 3;
4
- export declare function downloadFilesInWorkPath({ entrypoint, workPath, files, meta, }: Pick<BuildOptions, 'entrypoint' | 'workPath' | 'files' | 'meta'>): Promise<string>;
5
- export declare const build: ({ workPath, files: originalFiles, entrypoint, meta, config, }: BuildOptions) => Promise<{
6
- output: import("@vercel/build-utils").Lambda;
7
- }>;
8
- export { shouldServe };
9
- export { installRequirement, installRequirementsFile };
package/dist/install.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { Meta } from '@vercel/build-utils';
2
- interface InstallRequirementArg {
3
- pythonPath: string;
4
- pipPath: string;
5
- dependency: string;
6
- version: string;
7
- workPath: string;
8
- meta: Meta;
9
- args?: string[];
10
- }
11
- export declare function installRequirement({ pythonPath, pipPath, dependency, version, workPath, meta, args, }: InstallRequirementArg): Promise<void>;
12
- interface InstallRequirementsFileArg {
13
- pythonPath: string;
14
- pipPath: string;
15
- filePath: string;
16
- workPath: string;
17
- meta: Meta;
18
- args?: string[];
19
- }
20
- export declare function installRequirementsFile({ pythonPath, pipPath, filePath, workPath, meta, args, }: InstallRequirementsFileArg): Promise<void>;
21
- export {};
package/dist/version.d.ts DELETED
@@ -1,15 +0,0 @@
1
- interface PythonVersion {
2
- version: string;
3
- pipPath: string;
4
- pythonPath: string;
5
- runtime: string;
6
- discontinueDate?: Date;
7
- }
8
- export declare function getLatestPythonVersion({ isDev, }: {
9
- isDev?: boolean;
10
- }): PythonVersion;
11
- export declare function getSupportedPythonVersion({ isDev, pipLockPythonVersion, }: {
12
- isDev?: boolean;
13
- pipLockPythonVersion: string | undefined;
14
- }): PythonVersion;
15
- export {};