Skip to content

Commit

Permalink
refactor: Remove deps.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
4513ECHO committed Aug 24, 2024
1 parent aebdc35 commit c889e21
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 42 deletions.
8 changes: 5 additions & 3 deletions denops/ddu/app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Denops, Entrypoint } from "./deps.ts";
import { Lock } from "./deps.ts";
import { ensure, is, toFileUrl } from "./deps.ts";
import type { Denops, Entrypoint } from "jsr:@denops/std@~7.0.3";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure";
import { toFileUrl } from "jsr:@std/path@~1.0.2/to-file-url";
import type {
Action,
ActionHistory,
Expand Down
2 changes: 1 addition & 1 deletion denops/ddu/base/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
DduOptions,
ItemHighlight,
} from "../types.ts";
import type { Denops } from "../deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";

export type BaseColumnParams = Record<string, unknown>;

Expand Down
2 changes: 1 addition & 1 deletion denops/ddu/base/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ContextBuilder } from "../context.ts";
import type { DduAliasType } from "../types.ts";
import type { Denops } from "../deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";

export type ConfigArguments = {
denops: Denops;
Expand Down
2 changes: 1 addition & 1 deletion denops/ddu/base/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
FilterOptions,
SourceOptions,
} from "../types.ts";
import type { Denops } from "../deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";

export type BaseFilterParams = Record<string, unknown>;

Expand Down
2 changes: 1 addition & 1 deletion denops/ddu/base/kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
PreviewContext,
Previewer,
} from "../types.ts";
import type { Denops } from "../deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";

export type BaseKindParams = Record<string, unknown>;

Expand Down
2 changes: 1 addition & 1 deletion denops/ddu/base/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
Item,
SourceOptions,
} from "../types.ts";
import type { Denops } from "../deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";
import type { Loader } from "../loader.ts";

export type BaseSourceParams = Record<string, unknown>;
Expand Down
2 changes: 1 addition & 1 deletion denops/ddu/base/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
UiActionCallback,
UiOptions,
} from "../types.ts";
import type { Denops } from "../deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";

export type BaseUiParams = Record<string, unknown>;

Expand Down
5 changes: 3 additions & 2 deletions denops/ddu/context.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Denops } from "./deps.ts";
import { assertEquals, fn } from "./deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";
import { assertEquals } from "jsr:@std/assert@~1.0.2/equals";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import type {
ActionOptions,
BaseActionParams,
Expand Down
9 changes: 7 additions & 2 deletions denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import type { Denops } from "./deps.ts";
import { assertEquals, basename, equal, fn, Lock, pathsep } from "./deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";
import { assertEquals } from "jsr:@std/assert@~1.0.2/equals";
import { equal } from "jsr:@std/assert@~1.0.2/equal";
import { basename } from "jsr:@std/path@~1.0.2/basename";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.2/constants";
import type {
ActionHistory,
BaseActionParams,
Expand Down
19 changes: 0 additions & 19 deletions denops/ddu/deps.ts

This file was deleted.

6 changes: 4 additions & 2 deletions denops/ddu/ext.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Denops, Lock } from "./deps.ts";
import { fn, is } from "./deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";
import type { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import type {
Action,
ActionName,
Expand Down
10 changes: 7 additions & 3 deletions denops/ddu/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ import type {
SourceName,
UiName,
} from "./types.ts";
import type { Denops } from "./deps.ts";
import { Lock } from "./deps.ts";
import { basename, fn, op, parse, toFileUrl } from "./deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";
import { Lock } from "jsr:@core/asyncutil@~1.1.1/lock";
import { basename } from "jsr:@std/path@~1.0.2/basename";
import { parse } from "jsr:@std/path@~1.0.2/parse";
import { toFileUrl } from "jsr:@std/path@~1.0.2/to-file-url";
import * as fn from "jsr:@denops/std@~7.0.3/function";
import * as op from "jsr:@denops/std@~7.0.3/option";
import { isDenoCacheIssueError } from "./utils.ts";
import { mods } from "./_mods.js";

Expand Down
3 changes: 2 additions & 1 deletion denops/ddu/state.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { is, maybe } from "./deps.ts";
import { is } from "jsr:@core/unknownutil@~4.3.0/is";
import { maybe } from "jsr:@core/unknownutil@~4.3.0/maybe";
import type {
BaseSource,
BaseSourceParams,
Expand Down
3 changes: 1 addition & 2 deletions denops/ddu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { BaseSourceParams } from "./base/source.ts";
import type { BaseFilterParams } from "./base/filter.ts";
import type { BaseKindParams } from "./base/kind.ts";
import type { BaseColumnParams } from "./base/column.ts";
import type { Denops } from "./deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";

export { BaseConfig } from "./base/config.ts";
export { BaseUi } from "./base/ui.ts";
Expand All @@ -20,7 +20,6 @@ export type { BaseColumnParams } from "./base/column.ts";
export { ContextBuilder } from "./context.ts";

export type { Ddu } from "./ddu.ts";
export type { Denops } from "./deps.ts";

export type DduExtType = "ui" | "source" | "filter" | "kind" | "column";

Expand Down
4 changes: 2 additions & 2 deletions denops/ddu/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Denops } from "./deps.ts";
import { pathsep } from "./deps.ts";
import type { Denops } from "jsr:@denops/std@~7.0.3";
import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.2/constants";
import type { TreePath } from "./types.ts";

export async function printError(
Expand Down

0 comments on commit c889e21

Please sign in to comment.