Skip to content

Commit 2d56633

Browse files
authored
Merge pull request #944 from heygen-com/cleanup/fallow-auto-fix
refactor: drop unused exports detected by fallow auto-fix
2 parents 3eec777 + 7e0a447 commit 2d56633

38 files changed

Lines changed: 47 additions & 54 deletions

packages/cli/src/background-removal/pipeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { type Device, type ModelId } from "./manager.js";
2020

2121
export type OutputFormat = "webm" | "mov" | "png";
2222

23-
export const QUALITY_CRF = {
23+
const QUALITY_CRF = {
2424
fast: 30,
2525
balanced: 18,
2626
best: 12,

packages/cli/src/commands/compositions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function estimateDurationFromScripts(root: ParentNode): number {
4545
return duration;
4646
}
4747

48-
export function parseCompositions(html: string, baseDir: string): CompositionInfo[] {
48+
function parseCompositions(html: string, baseDir: string): CompositionInfo[] {
4949
const parser = new DOMParser();
5050
const doc = parser.parseFromString(html, "text/html");
5151

packages/cli/src/commands/lambda/policies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface TrustPolicyDocument {
5656
* Actions the CLI needs to deploy/invoke/destroy the stack. Keep this
5757
* sorted alphabetically inside each service so diffs stay readable.
5858
*/
59-
export const REQUIRED_ACTIONS = {
59+
const REQUIRED_ACTIONS = {
6060
cloudformation: [
6161
"cloudformation:CreateChangeSet",
6262
"cloudformation:CreateStack",

packages/cli/src/commands/lambda/sam.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { existsSync } from "node:fs";
2323
import { join } from "node:path";
2424

2525
/** Throws with a clear hint when the SAM CLI is not on PATH. */
26-
export function assertSamAvailable(): void {
26+
function assertSamAvailable(): void {
2727
try {
2828
execFileSync("sam", ["--version"], { stdio: "ignore" });
2929
} catch {
@@ -34,7 +34,7 @@ export function assertSamAvailable(): void {
3434
}
3535

3636
/** Throws with a clear hint when the `aws` CLI is not on PATH. */
37-
export function assertAwsCliAvailable(): void {
37+
function assertAwsCliAvailable(): void {
3838
try {
3939
execFileSync("aws", ["--version"], { stdio: "ignore" });
4040
} catch {

packages/cli/src/tts/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ export async function ensureVoices(options?: {
145145
return voicesPath;
146146
}
147147

148-
export { MODELS_DIR, VOICES_DIR, DEFAULT_MODEL };
148+
export { MODELS_DIR, DEFAULT_MODEL };

packages/cli/src/utils/projectConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { join, resolve } from "node:path";
1212
import { DEFAULT_REGISTRY_URL } from "../registry/index.js";
1313

1414
export const PROJECT_CONFIG_FILENAME = "hyperframes.json";
15-
export const PROJECT_CONFIG_SCHEMA_URL = "https://hyperframes.heygen.com/schema/hyperframes.json";
15+
const PROJECT_CONFIG_SCHEMA_URL = "https://hyperframes.heygen.com/schema/hyperframes.json";
1616

1717
export interface ProjectConfigPaths {
1818
/** Where `hyperframes:block` items land, relative to project root. */

packages/cli/src/whisper/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function findWhisper(): WhisperResult | undefined {
131131
return findFromEnv() ?? findFromSystem() ?? findBuiltBinary();
132132
}
133133

134-
export function getInstallInstructions(): string {
134+
function getInstallInstructions(): string {
135135
if (platform() === "darwin") {
136136
return "brew install whisper-cpp";
137137
}

packages/cli/src/whisper/transcribe.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,5 +299,3 @@ export async function transcribe(
299299
speechOnsetSeconds,
300300
};
301301
}
302-
303-
export { isAudioFile, isVideoFile };

packages/core/src/lint/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export type ExtractedBlock = {
1515
index: number;
1616
};
1717

18-
export const TAG_PATTERN = /<([a-z][\w:-]*)(\s[^<>]*?)?>/gi;
18+
const TAG_PATTERN = /<([a-z][\w:-]*)(\s[^<>]*?)?>/gi;
1919
export const STYLE_BLOCK_PATTERN = /<style\b([^>]*)>([\s\S]*?)<\/style>/gi;
2020
export const SCRIPT_BLOCK_PATTERN = /<script\b([^>]*)>([\s\S]*?)<\/script>/gi;
21-
export const COMPOSITION_ID_IN_CSS_PATTERN = /\[data-composition-id=["']([^"']+)["']\]/g;
21+
const COMPOSITION_ID_IN_CSS_PATTERN = /\[data-composition-id=["']([^"']+)["']\]/g;
2222
export const TIMELINE_REGISTRY_INIT_PATTERN =
2323
/window\.__timelines\s*=\s*window\.__timelines\s*\|\|\s*\{\}|window\.__timelines\s*=\s*\{\}|window\.__timelines\s*\?\?=\s*\{\}/i;
2424
export const TIMELINE_REGISTRY_ASSIGN_PATTERN = /window\.__timelines\[[^\]]+\]\s*=/i;

packages/core/src/runtime/adapters/lottie.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { RuntimeDeterministicAdapter } from "../types";
22
import { swallow } from "../diagnostics";
3-
export { isLottieAnimationLoaded } from "../../lottieReadiness";
43

54
/**
65
* Lottie adapter for HyperFrames

0 commit comments

Comments
 (0)