@vercel/container 27.0.0 → 29.0.0-snapshot-c9dfd83f2293
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/build-context.d.ts +7 -0
- package/dist/buildah-store-cache/cache.d.ts +30 -0
- package/dist/buildah-store-cache/cleanup.d.ts +2 -0
- package/dist/buildah-store-cache/command/index.d.ts +9 -0
- package/dist/buildah-store-cache/command/main.d.ts +1 -0
- package/dist/buildah-store-cache/command/operations.d.ts +13 -0
- package/dist/buildah-store-cache/command/types.d.ts +53 -0
- package/dist/buildah-store-cache/config.d.ts +5 -0
- package/dist/buildah-store-cache/lock.d.ts +17 -0
- package/dist/buildah-store-cache/state.d.ts +8 -0
- package/dist/buildah-store-cache/usage.d.ts +14 -0
- package/dist/buildah-store-command.js +2 -0
- package/dist/buildpacks/build.d.ts +14 -0
- package/dist/buildpacks/cache.d.ts +55 -0
- package/dist/buildpacks/distribution.d.ts +71 -0
- package/dist/buildpacks/go.d.ts +12 -0
- package/dist/buildpacks/lifecycle/build-user.d.ts +1 -0
- package/dist/buildpacks/lifecycle/buildah.d.ts +10 -0
- package/dist/buildpacks/lifecycle/docker.d.ts +19 -0
- package/dist/buildpacks/lifecycle/lifecycle.d.ts +161 -0
- package/dist/buildpacks/lifecycle/native.d.ts +58 -0
- package/dist/buildpacks/node-toolchain.d.ts +19 -0
- package/dist/buildpacks/registry.d.ts +54 -0
- package/dist/buildpacks/ruby.d.ts +25 -0
- package/dist/buildpacks/rust.d.ts +2 -0
- package/dist/buildpacks/version.d.ts +1 -0
- package/dist/clients/buildah.d.ts +31 -0
- package/dist/dev.d.ts +14 -0
- package/dist/diagnostics.d.ts +8 -0
- package/dist/engines/buildah.d.ts +10 -0
- package/dist/engines/docker.d.ts +2 -0
- package/dist/engines/index.d.ts +11 -0
- package/dist/engines/types.d.ts +84 -0
- package/dist/executable-image/index.d.ts +52 -0
- package/dist/image-source.d.ts +19 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1740 -405
- package/dist/oci-layout/index.d.ts +18 -0
- package/dist/oci-layout/layout.d.ts +40 -0
- package/dist/oci-layout/pull.d.ts +37 -0
- package/dist/oidc.d.ts +30 -0
- package/dist/prepare-cache.d.ts +7 -0
- package/dist/publish.d.ts +37 -0
- package/dist/registry.d.ts +27 -0
- package/dist/schedules-command-dispatcher +0 -0
- package/dist/schedules-command.d.ts +11 -0
- package/dist/storage-driver.d.ts +15 -0
- package/dist/util.d.ts +102 -0
- package/package.json +6 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The build container sets this to `1` when it can turn an OCI image layout in
|
|
3
|
+
* the build output into the function's image. A build then writes its image
|
|
4
|
+
* to disk instead of pushing it to the registry.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CONTAINER_OCI_LAYOUT_ENV = "VERCEL_CONTAINER_OCI_LAYOUT";
|
|
7
|
+
export declare function ociLayoutRequested(env?: NodeJS.ProcessEnv): boolean;
|
|
8
|
+
/** Where a built image ended up: in a registry, or on disk as an OCI image layout. */
|
|
9
|
+
export type ImageOutput = {
|
|
10
|
+
kind: 'registry';
|
|
11
|
+
reference: string;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'oci-layout';
|
|
14
|
+
directory: string;
|
|
15
|
+
manifestDigest: string;
|
|
16
|
+
};
|
|
17
|
+
export { layoutRefPath, moveDirectory, verifyOciLayout } from './layout';
|
|
18
|
+
export { OciRegistryPuller } from './pull';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const OCI_LAYOUT_VERSION = "1.0.0";
|
|
2
|
+
export declare const OCI_INDEX_MEDIA_TYPE = "application/vnd.oci.image.index.v1+json";
|
|
3
|
+
export declare const OCI_MANIFEST_MEDIA_TYPE = "application/vnd.oci.image.manifest.v1+json";
|
|
4
|
+
export declare const DOCKER_MANIFEST_MEDIA_TYPE = "application/vnd.docker.distribution.manifest.v2+json";
|
|
5
|
+
export declare const DOCKER_MANIFEST_LIST_MEDIA_TYPE = "application/vnd.docker.distribution.manifest.list.v2+json";
|
|
6
|
+
export declare const OCI_CONFIG_MEDIA_TYPE = "application/vnd.oci.image.config.v1+json";
|
|
7
|
+
export interface OciDescriptor {
|
|
8
|
+
mediaType?: string;
|
|
9
|
+
digest: string;
|
|
10
|
+
size: number;
|
|
11
|
+
}
|
|
12
|
+
export interface VerifiedOciLayout {
|
|
13
|
+
manifestDigest: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
16
|
+
export declare function sha256Digest(bytes: Uint8Array | Buffer): string;
|
|
17
|
+
export declare function parseSha256Hex(digest: string): string;
|
|
18
|
+
export declare function blobPath(layoutDir: string, digest: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Resolve an image reference to its path inside a CNB `-layout-dir`, matching
|
|
21
|
+
* `github.com/buildpacks/imgutil/layout.ParseRefToPath`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function layoutRefPath(layoutDir: string, imageRef: string): string;
|
|
24
|
+
export declare function parseDescriptor(value: unknown, label: string): OciDescriptor;
|
|
25
|
+
/**
|
|
26
|
+
* Verify an OCI image layout holds one linux/amd64 image, and that every blob
|
|
27
|
+
* of that image (manifest, config, and all layers) is present with the
|
|
28
|
+
* expected size. Other platforms, attestations and non-image artifacts are
|
|
29
|
+
* skipped, so a builder that adds them does not fail the build.
|
|
30
|
+
*
|
|
31
|
+
* The CNB lifecycle in `-layout` mode exits 0 even if run-image layer blobs are
|
|
32
|
+
* missing; this check catches incomplete exports before handing the layout to
|
|
33
|
+
* the build container.
|
|
34
|
+
*/
|
|
35
|
+
export declare function verifyOciLayout(layoutDir: string): Promise<VerifiedOciLayout>;
|
|
36
|
+
/**
|
|
37
|
+
* Move an OCI layout directory into place, falling back to a sibling copy +
|
|
38
|
+
* rename when staging and destination live on different filesystems.
|
|
39
|
+
*/
|
|
40
|
+
export declare function moveDirectory(sourceDir: string, destinationDir: string): Promise<void>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RegistryCredentials } from '../engines/types';
|
|
2
|
+
export interface ParsedDigestImageRef {
|
|
3
|
+
registry: string;
|
|
4
|
+
repository: string;
|
|
5
|
+
digest: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function parseDigestImageRef(imageRef: string): ParsedDigestImageRef;
|
|
8
|
+
export interface OciRegistryPullerOptions {
|
|
9
|
+
credentials: RegistryCredentials;
|
|
10
|
+
/** Override registry base URL (defaults to `https://${registry}`), for tests. */
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
fetchImpl?: typeof fetch;
|
|
13
|
+
retryDelayMs?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Pulls a digest-pinned single-manifest linux/amd64 image from an OCI registry
|
|
17
|
+
* over HTTPS and writes it as a verified OCI image layout on disk.
|
|
18
|
+
*/
|
|
19
|
+
export declare class OciRegistryPuller {
|
|
20
|
+
private readonly options;
|
|
21
|
+
private readonly fetchImpl;
|
|
22
|
+
private readonly retryDelayMs;
|
|
23
|
+
constructor(options: OciRegistryPullerOptions);
|
|
24
|
+
pullToLayout(imageRef: string, destinationDir: string): Promise<{
|
|
25
|
+
manifestDigest: string;
|
|
26
|
+
}>;
|
|
27
|
+
private fetchBytes;
|
|
28
|
+
/** Streams a blob into `path`, hashing it on the way, and returns its size and digest. */
|
|
29
|
+
private fetchToFile;
|
|
30
|
+
/**
|
|
31
|
+
* GETs `request.url`, retrying network errors, 429 and 5xx responses.
|
|
32
|
+
* `readBody` runs inside the retry, so a connection that drops while the
|
|
33
|
+
* body streams is retried like one that drops before the headers arrive.
|
|
34
|
+
*/
|
|
35
|
+
private fetchWithRetries;
|
|
36
|
+
private fetchFollowingRedirects;
|
|
37
|
+
}
|
package/dist/oidc.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Span } from '@vercel/build-utils';
|
|
2
|
+
export interface OidcClaims {
|
|
3
|
+
owner?: string;
|
|
4
|
+
owner_id?: string;
|
|
5
|
+
project?: string;
|
|
6
|
+
project_id?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OidcTokenPayload extends OidcClaims {
|
|
9
|
+
exp?: number;
|
|
10
|
+
iss?: string;
|
|
11
|
+
project_id?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function parseOidcToken(token: string): OidcTokenPayload;
|
|
14
|
+
export declare function decodeOidcClaims(token: string | undefined): OidcClaims;
|
|
15
|
+
export declare function tokenFingerprint(token: string | undefined): string;
|
|
16
|
+
export declare function debugTokenClaims(label: string, token: string | undefined): void;
|
|
17
|
+
/**
|
|
18
|
+
* Resolve the project OIDC token used to authenticate to the container
|
|
19
|
+
* registry.
|
|
20
|
+
*
|
|
21
|
+
* The token produced by `vercel pull` (or provided by the platform) in
|
|
22
|
+
* `VERCEL_OIDC_TOKEN` is already a valid project OIDC token, so we use it
|
|
23
|
+
* directly. Minting a *fresh* token requires a credential that can authorize
|
|
24
|
+
* `POST /v1/projects/{id}/token` — an OIDC token cannot mint another OIDC
|
|
25
|
+
* token, so that call only works when a user/CLI auth token is available
|
|
26
|
+
* (`VERCEL_TOKEN`). Minting is therefore best-effort: if it is not possible or
|
|
27
|
+
* fails, we fall back to the existing token rather than failing the build.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveOidcTokenForBuild(span?: Span): Promise<string>;
|
|
30
|
+
export declare function formatVcrAuthError(registry: string, username: string, detail?: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Files, PrepareCacheOptions } from '@vercel/build-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Collect the saved buildpack caches and Buildah store snapshot. Every path
|
|
4
|
+
* must be inside the repository root; otherwise the platform drops the whole
|
|
5
|
+
* build cache.
|
|
6
|
+
*/
|
|
7
|
+
export declare function prepareCache(options: PrepareCacheOptions): Promise<Files>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Span } from '@vercel/build-utils';
|
|
2
|
+
import type { BuildahClient } from './clients/buildah';
|
|
3
|
+
import type { BuildParams, ContainerEngine } from './engines/types';
|
|
4
|
+
import { type ImageOutput } from './oci-layout';
|
|
5
|
+
import type { SchedulesCommand } from './schedules-command';
|
|
6
|
+
export interface DockerfileBuild {
|
|
7
|
+
contextDir: string;
|
|
8
|
+
dockerfilePath: string;
|
|
9
|
+
repository: string;
|
|
10
|
+
tag: string;
|
|
11
|
+
buildArgs?: Record<string, string>;
|
|
12
|
+
buildTarget?: string;
|
|
13
|
+
buildahClient: BuildahClient;
|
|
14
|
+
parentSpan?: Span;
|
|
15
|
+
schedulesCommand?: SchedulesCommand;
|
|
16
|
+
}
|
|
17
|
+
export interface ImagePublisher {
|
|
18
|
+
readonly mode: 'build_and_push' | 'build_and_export';
|
|
19
|
+
readonly spanAttributes: Readonly<Record<string, string>>;
|
|
20
|
+
/**
|
|
21
|
+
* Runs before the engine is touched, so a bad token fails before any
|
|
22
|
+
* toolchain work.
|
|
23
|
+
*/
|
|
24
|
+
resolve(span?: Span): Promise<ImagePublication>;
|
|
25
|
+
}
|
|
26
|
+
export interface ImagePublication {
|
|
27
|
+
/** The reference to build the image under. */
|
|
28
|
+
readonly imageRef: string;
|
|
29
|
+
/** Runs once the toolchain is ready and before the build. */
|
|
30
|
+
connect?(span?: Span): Promise<void>;
|
|
31
|
+
publish(params: BuildParams, span?: Span): Promise<ImageOutput>;
|
|
32
|
+
}
|
|
33
|
+
export declare function createImagePublisher(params: {
|
|
34
|
+
build: DockerfileBuild;
|
|
35
|
+
engine: ContainerEngine;
|
|
36
|
+
exportLayout: boolean;
|
|
37
|
+
}): ImagePublisher;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Span } from '@vercel/build-utils';
|
|
2
|
+
import type { BuildPushParams } from './engines/types';
|
|
3
|
+
import type { OidcClaims } from './oidc';
|
|
4
|
+
export interface RegistryTarget {
|
|
5
|
+
token: string;
|
|
6
|
+
claims: OidcClaims;
|
|
7
|
+
username: string;
|
|
8
|
+
fullRepository: string;
|
|
9
|
+
imageRef: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function resolveRegistryTarget(params: {
|
|
12
|
+
repository: string;
|
|
13
|
+
tag: string;
|
|
14
|
+
span?: Span;
|
|
15
|
+
}): Promise<RegistryTarget>;
|
|
16
|
+
type PushedImage = Pick<BuildPushParams, 'imageRef' | 'registry' | 'username' | 'token'>;
|
|
17
|
+
/**
|
|
18
|
+
* Ask the registry for the digest of a just-pushed tag. The local image store
|
|
19
|
+
* is not a substitute: Podman, for one, recompresses layers on push, so the
|
|
20
|
+
* uploaded manifest's digest differs from `RepoDigests`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolvePushedImageDigest(params: PushedImage): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Ensure the target VCR repository exists before pushing.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ensureRepository(repository: string, token: string, claims: OidcClaims, span?: Span): Promise<void>;
|
|
27
|
+
export {};
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BuildParams, ContainerEngine } from './engines/types';
|
|
2
|
+
export interface SchedulesCommand {
|
|
3
|
+
command: [string, ...string[]];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The dispatcher reads the command from the function's environment rather
|
|
7
|
+
* than the image, so schedules can share an image.
|
|
8
|
+
*/
|
|
9
|
+
export declare const SCHEDULES_COMMAND_ENV = "VERCEL_SCHEDULE_RUN_COMMAND";
|
|
10
|
+
/** Build the schedule's Dockerfile, then derive an image that runs the dispatcher. */
|
|
11
|
+
export declare function buildSchedulesCommandImage(engine: ContainerEngine, params: BuildParams, dispatcher?: string): Promise<void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const BUILDAH_GRAPH_ROOT = "/vercel/.containers/storage";
|
|
2
|
+
export declare const BUILDAH_RUN_ROOT = "/run/containers/storage";
|
|
3
|
+
export declare const REQUIRED_BUILD_CONTAINER_DRIVER = "overlay";
|
|
4
|
+
/** Test-only: clear the memoized driver so env changes take effect. */
|
|
5
|
+
export declare function __resetStorageDriverCache(): void;
|
|
6
|
+
/**
|
|
7
|
+
* Defer to storage.conf in the build container; locally prefer fuse-overlayfs
|
|
8
|
+
* when available and fall back to vfs. An explicit environment override wins.
|
|
9
|
+
*/
|
|
10
|
+
export declare function selectStorageDriver(): Promise<string | undefined>;
|
|
11
|
+
export declare const DOCKER_HUB_MIRROR_FLAG = "VERCEL_BUILDAH_DOCKER_HUB_MIRROR";
|
|
12
|
+
/** Test-only: forget the written registries.conf so env changes take effect. */
|
|
13
|
+
export declare function __resetRegistriesConfCache(): void;
|
|
14
|
+
/** Global Buildah flags for native storage and registry resolution. */
|
|
15
|
+
export declare function buildahStorageArgs(): Promise<string[]>;
|
package/dist/util.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { Span } from '@vercel/build-utils';
|
|
2
|
+
import type { Stats } from 'node:fs';
|
|
3
|
+
/** Verbose tracing for the container builder, gated on `BUILDER_DEBUG` like every other builder. */
|
|
4
|
+
export declare const DEBUG: boolean;
|
|
5
|
+
/** Coerce a `command` config value to a string array, or `undefined`. */
|
|
6
|
+
export declare function normalizeCommand(command: unknown): string[] | undefined;
|
|
7
|
+
export declare function write(line: string): void;
|
|
8
|
+
/** Top-level milestone, prefixed with the Vercel mark. */
|
|
9
|
+
export declare function info(message: string): void;
|
|
10
|
+
/** Something the build ignores or works around, without failing. */
|
|
11
|
+
export declare function warn(message: string): void;
|
|
12
|
+
/** A step that's starting. */
|
|
13
|
+
export declare function step(message: string): void;
|
|
14
|
+
/** A step that finished successfully. */
|
|
15
|
+
export declare function done(message: string): void;
|
|
16
|
+
export declare function debug(message: string): void;
|
|
17
|
+
export declare function elapsed(since: number): string;
|
|
18
|
+
export declare function formatBytes(bytes: number): string;
|
|
19
|
+
/** Shorten a `sha256:…` digest for display. */
|
|
20
|
+
export declare function shortDigest(digest: string): string;
|
|
21
|
+
export declare function delay(ms: number): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Waits for every task before throwing the first failure, so no task is still
|
|
24
|
+
* writing into a directory when the caller's cleanup removes it.
|
|
25
|
+
*/
|
|
26
|
+
export declare function settleAll(tasks: Promise<unknown>[]): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Run `fn` inside a child span of `parent` so the container build flow is
|
|
29
|
+
* traceable in the build container. When tracing is disabled (no parent span,
|
|
30
|
+
* e.g. some local invocations) `fn` runs directly.
|
|
31
|
+
*/
|
|
32
|
+
export declare function withSpan<T>(parent: Span | undefined, name: string, attrs: {
|
|
33
|
+
[key: string]: string | undefined;
|
|
34
|
+
} | undefined, fn: (span?: Span) => T | Promise<T>): Promise<T>;
|
|
35
|
+
/** Stringify a value for use as a span tag (tags must be strings). */
|
|
36
|
+
export declare function toTag(value: unknown): string;
|
|
37
|
+
export declare function readString(value: unknown): string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The Dockerfile stage to build (`--target`): the daemon's for daemon builds,
|
|
40
|
+
* otherwise the service's. `undefined` builds the last stage.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveBuildTarget(config: {
|
|
43
|
+
buildTarget?: unknown;
|
|
44
|
+
daemon?: {
|
|
45
|
+
buildTarget?: unknown;
|
|
46
|
+
};
|
|
47
|
+
}): string | undefined;
|
|
48
|
+
/** Recognize explicit Dockerfile/Containerfile paths, with the name anywhere in the basename. */
|
|
49
|
+
export declare function isDockerfileRef(ref: string): boolean;
|
|
50
|
+
export declare const DOCKERFILE_CANDIDATES: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Discover a Vercel container opt-in marker (`Dockerfile.vercel` /
|
|
53
|
+
* `Containerfile.vercel`) in `workPath`. Used by both the build and dev paths
|
|
54
|
+
* so they resolve the same Dockerfile when the entrypoint is the `<detect>`
|
|
55
|
+
* sentinel. A conventional `Dockerfile` is deliberately not a marker: only
|
|
56
|
+
* the `.vercel` suffix opts a project out of buildpack or framework builds.
|
|
57
|
+
*/
|
|
58
|
+
export declare function findDockerfile(workPath: string): string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Stable local image tag for `vercel dev`. Used by both the `build()` path
|
|
61
|
+
* (which never pushes in dev) and `startDevServer` (which builds & runs the
|
|
62
|
+
* image locally), so the two agree on a single name per service.
|
|
63
|
+
*/
|
|
64
|
+
export declare function devImageTag(serviceName: string): string;
|
|
65
|
+
export interface RunResult {
|
|
66
|
+
stdout: string;
|
|
67
|
+
stderr: string;
|
|
68
|
+
}
|
|
69
|
+
/** Rejection from {@link run} carrying the command's exit code. */
|
|
70
|
+
export interface RunError extends Error {
|
|
71
|
+
exitCode?: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Run a command, streaming its output to stderr while capturing it for parsing.
|
|
75
|
+
*/
|
|
76
|
+
export declare function run(cmd: string, args: string[], opts?: {
|
|
77
|
+
cwd?: string;
|
|
78
|
+
input?: string;
|
|
79
|
+
quiet?: boolean;
|
|
80
|
+
env?: NodeJS.ProcessEnv;
|
|
81
|
+
uid?: number;
|
|
82
|
+
gid?: number;
|
|
83
|
+
}): Promise<RunResult>;
|
|
84
|
+
export declare function hasCommand(name: string): Promise<boolean>;
|
|
85
|
+
export declare function lstatIfPresent(path: string): Promise<Stats | undefined>;
|
|
86
|
+
/** Pull a `Key: Value` field out of CLI diagnostic text. */
|
|
87
|
+
export declare function extractField(text: string, label: string): string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Whether we're running inside a Vercel build container rather than a local
|
|
90
|
+
* `vercel build`. `VERCEL_BUILD_IMAGE` is set only on Vercel's build image.
|
|
91
|
+
*/
|
|
92
|
+
export declare function isBuildContainer(): boolean;
|
|
93
|
+
export declare function resolveApiUrl(): string;
|
|
94
|
+
export declare function resolveVcrRegistry(): string;
|
|
95
|
+
/**
|
|
96
|
+
* Locate a pre-existing container registry auth file, if any. The build
|
|
97
|
+
* container provisions `~/.config/containers/auth.json` (vercel/api#76560) that
|
|
98
|
+
* buildah/podman read automatically; `REGISTRY_AUTH_FILE` overrides the
|
|
99
|
+
* location. Returns the existing path, or `undefined` (e.g. local
|
|
100
|
+
* `vercel build`, where an explicit login is still needed).
|
|
101
|
+
*/
|
|
102
|
+
export declare function existingRegistryAuthFile(): string | undefined;
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/container",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.0-snapshot-c9dfd83f2293",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
6
7
|
"homepage": "https://vercel.com/docs",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
@@ -17,22 +18,22 @@
|
|
|
17
18
|
"tar": "7.5.11"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
|
20
|
-
"@vercel/build-utils": "15.
|
|
21
|
+
"@vercel/build-utils": "15.7.0-snapshot-c9dfd83f2293"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@types/node": "20.11.0",
|
|
24
25
|
"vitest": "4.1.10",
|
|
25
26
|
"@vercel-internals/ipc-proxy": "1.1.4",
|
|
26
|
-
"@vercel/build-utils": "15.
|
|
27
|
+
"@vercel/build-utils": "15.7.0-snapshot-c9dfd83f2293"
|
|
27
28
|
},
|
|
28
29
|
"publishConfig": {
|
|
29
30
|
"access": "public"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
32
33
|
"build": "node build.mjs",
|
|
33
|
-
"type-check": "tsc --noEmit",
|
|
34
|
+
"type-check": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
34
35
|
"test": "vitest run --config ../../vitest.config.mts",
|
|
35
|
-
"test-unit": "node test-go.mjs && vitest run --config ../../vitest.config.mts test/unit.test.ts test/diagnostics.test.ts test/workspace.test.ts test/lifecycle-docker.test.ts test/ruby-version.test.ts test/go-version.test.ts test/rust-version.test.ts test/docker-push.test.ts test/cache.test.ts test/buildah-store-cache.test.ts test/buildah-store-command.test.ts test/buildah-debug.test.ts test/schedules-command.test.ts test/build-user.test.ts test/storage-driver.test.ts",
|
|
36
|
+
"test-unit": "node test-go.mjs && vitest run --config ../../vitest.config.mts test/unit.test.ts test/build-context.test.ts test/diagnostics.test.ts test/workspace.test.ts test/lifecycle-docker.test.ts test/ruby-version.test.ts test/go-version.test.ts test/rust-version.test.ts test/docker-push.test.ts test/cache.test.ts test/buildah-store-cache.test.ts test/buildah-store-command.test.ts test/buildah-debug.test.ts test/schedules-command.test.ts test/build-user.test.ts test/storage-driver.test.ts test/executable-image.test.ts test/oci-layout.test.ts test/oci-layout-pull.test.ts test/executable-image-lifecycle.test.ts",
|
|
36
37
|
"test-e2e": "vitest run --config ../../vitest.config.mts test/e2e.test.ts"
|
|
37
38
|
}
|
|
38
39
|
}
|