Skip to content

Commit

Permalink
Use Entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed May 15, 2024
1 parent 45656a7 commit 106334f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
6 changes: 3 additions & 3 deletions denops/ddu/app.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -507,4 +507,4 @@ export function main(denops: Denops) {
return await ddu.uiWinids(denops);
},
};
}
};
23 changes: 11 additions & 12 deletions denops/ddu/deps.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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";

0 comments on commit 106334f

Please sign in to comment.