Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/scripts/derive-devbox-sizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* the master already has that shape, so it is recorded without a second
* snapshot.
*/
import { Freestyle } from "freestyle";
import { Freestyle, type FirewallSpec } from "freestyle";
import { writeFileSync } from "node:fs";
import {
VM_IMAGE_SIZE_NAMES,
Expand Down Expand Up @@ -55,7 +55,7 @@ for (const name of requested) {
const sizes = requested as VmImageSizeName[];
const replaceSlug = hasFlag("--replace-slug");

const FIREWALL = { rules: [{ action: "allow" as const, source: {}, destination: { public: true } }] };
const FIREWALL: FirewallSpec = { rules: [{ action: "allow", source: {}, destination: { public: true } }] };
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));

type Exec = { exec: (options: { command: string; timeoutMs?: number; linuxUser?: string }) => Promise<{ stdout?: string | null; stderr?: string | null; statusCode?: number | null }> };
Expand Down
2 changes: 1 addition & 1 deletion web/scripts/devbox-image-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export function promoteImageManifestEntry(
}
}
}
const promotedSizes = new Set(variants.map((variant) => variant.size?.name ?? ""));
const promotedSizes = new Set<string>(variants.map((variant) => variant.size?.name ?? ""));
const demoted = manifest.images.map((candidate) => {
if (candidate.provider !== entry.provider) return candidate;
const next: DevboxManifestEntry = { ...candidate };
Expand Down