fix: restore CI lint/build
This commit is contained in:
@@ -12,7 +12,11 @@ import {
|
|||||||
type HookStatusReport,
|
type HookStatusReport,
|
||||||
} from "../hooks/hooks-status.js";
|
} from "../hooks/hooks-status.js";
|
||||||
import { loadConfig, writeConfigFile } from "../config/io.js";
|
import { loadConfig, writeConfigFile } from "../config/io.js";
|
||||||
import { installHooksFromNpmSpec, installHooksFromPath, resolveHookInstallDir } from "../hooks/install.js";
|
import {
|
||||||
|
installHooksFromNpmSpec,
|
||||||
|
installHooksFromPath,
|
||||||
|
resolveHookInstallDir,
|
||||||
|
} from "../hooks/install.js";
|
||||||
import { recordHookInstall } from "../hooks/installs.js";
|
import { recordHookInstall } from "../hooks/installs.js";
|
||||||
import { defaultRuntime } from "../runtime.js";
|
import { defaultRuntime } from "../runtime.js";
|
||||||
import { formatDocsLink } from "../terminal/links.js";
|
import { formatDocsLink } from "../terminal/links.js";
|
||||||
@@ -732,8 +736,7 @@ export function registerHooksCli(program: Command): void {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const nextVersion =
|
const nextVersion = result.version ?? (await readInstalledPackageVersion(result.targetDir));
|
||||||
result.version ?? (await readInstalledPackageVersion(result.targetDir));
|
|
||||||
nextCfg = recordHookInstall(nextCfg, {
|
nextCfg = recordHookInstall(nextCfg, {
|
||||||
hookId,
|
hookId,
|
||||||
source: "npm",
|
source: "npm",
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export function normalizeAttachments(ctx: MsgContext): MediaAttachment[] {
|
|||||||
|
|
||||||
export function resolveAttachmentKind(
|
export function resolveAttachmentKind(
|
||||||
attachment: MediaAttachment,
|
attachment: MediaAttachment,
|
||||||
): "image" | "audio" | "video" | "unknown" {
|
): "image" | "audio" | "video" | "document" | "unknown" {
|
||||||
const kind = kindFromMime(attachment.mime);
|
const kind = kindFromMime(attachment.mime);
|
||||||
if (kind !== "unknown") return kind;
|
if (kind !== "unknown") return kind;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user