From 106334f4954f7ad4779918624976b1d9268825e9 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Wed, 15 May 2024 19:08:00 +0900 Subject: [PATCH] Use Entrypoint --- denops/ddu/app.ts | 6 +++--- denops/ddu/deps.ts | 23 +++++++++++------------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/denops/ddu/app.ts b/denops/ddu/app.ts index 0ede3f8..633ffb4 100644 --- a/denops/ddu/app.ts +++ b/denops/ddu/app.ts @@ -1,4 +1,4 @@ -import { Denops, ensure, is, Lock, toFileUrl } from "./deps.ts"; +import { Denops, ensure, Entrypoint, is, Lock, toFileUrl } from "./deps.ts"; import { Action, ActionHistory, @@ -36,7 +36,7 @@ import { defaultColumnOptions } from "./base/column.ts"; import { defaultKindOptions } from "./base/kind.ts"; import { defaultActionOptions } from "./base/action.ts"; -export function main(denops: Denops) { +export const main: Entrypoint = (denops: Denops) => { type RedrawTreeMode = "collapse" | "expand"; type RedrawOption = { check?: boolean; @@ -507,4 +507,4 @@ export function main(denops: Denops) { return await ddu.uiWinids(denops); }, }; -} +}; diff --git a/denops/ddu/deps.ts b/denops/ddu/deps.ts index 7d190dd..e98fe8c 100644 --- a/denops/ddu/deps.ts +++ b/denops/ddu/deps.ts @@ -1,16 +1,19 @@ -export type { Denops } from "https://deno.land/x/denops_std@v6.4.2/mod.ts"; +export type { + Denops, + Entrypoint, +} from "https://deno.land/x/denops_std@v6.5.0/mod.ts"; export { echo, execute, -} from "https://deno.land/x/denops_std@v6.4.2/helper/mod.ts"; +} from "https://deno.land/x/denops_std@v6.5.0/helper/mod.ts"; export { batch, collect, -} from "https://deno.land/x/denops_std@v6.4.2/batch/mod.ts"; -export * as op from "https://deno.land/x/denops_std@v6.4.2/option/mod.ts"; -export * as fn from "https://deno.land/x/denops_std@v6.4.2/function/mod.ts"; -export * as vars from "https://deno.land/x/denops_std@v6.4.2/variable/mod.ts"; -export * as autocmd from "https://deno.land/x/denops_std@v6.4.2/autocmd/mod.ts"; +} from "https://deno.land/x/denops_std@v6.5.0/batch/mod.ts"; +export * as op from "https://deno.land/x/denops_std@v6.5.0/option/mod.ts"; +export * as fn from "https://deno.land/x/denops_std@v6.5.0/function/mod.ts"; +export * as vars from "https://deno.land/x/denops_std@v6.5.0/variable/mod.ts"; +export * as autocmd from "https://deno.land/x/denops_std@v6.5.0/autocmd/mod.ts"; export { assertEquals, equal } from "jsr:@std/assert@0.225.1"; export { @@ -22,10 +25,6 @@ export { } from "jsr:@std/path@0.224.0"; export { deadline, DeadlineError } from "jsr:@std/async@0.224.0"; -export { - ensure, - is, - maybe, -} from "jsr:@core/unknownutil@3.18.0"; +export { ensure, is, maybe } from "jsr:@core/unknownutil@3.18.0"; export { TimeoutError } from "https://deno.land/x/msgpack_rpc@v4.0.1/response_waiter.ts"; export { Lock } from "jsr:@lambdalisue/async@2.1.1";