Skip to content

Commit c50ad45

Browse files
committed
Use import_map.json to manage dependencies
1 parent e892695 commit c50ad45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+248
-244
lines changed

deno.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=deno.land,jsr.io,registry.npmjs.org jsr:@molt/cli ./**/*.ts",
1313
"update:write": "deno task -q update --write",
1414
"update:commit": "deno task -q update --commit --prefix :package: --pre-commit=fmt,lint"
15-
}
15+
},
16+
"importMap": "./denops/fall/import_map.json"
1617
}

denops/fall/_assets/default.custom.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import type { Entrypoint } from "jsr:@vim-fall/custom@^0.1.0";
2-
import {
3-
composeRenderers,
4-
refineCurator,
5-
refineSource,
6-
} from "jsr:@vim-fall/std@^0.10.0";
7-
import * as builtin from "jsr:@vim-fall/std@^0.10.0/builtin";
8-
import { SEPARATOR } from "jsr:@std/path@^1.0.8/constants";
1+
import type { Entrypoint } from "@vim-fall/custom";
2+
import { composeRenderers, refineCurator, refineSource } from "@vim-fall/std";
3+
import * as builtin from "@vim-fall/std/builtin";
4+
import { SEPARATOR } from "@std/path/constants";
95

106
// NOTE:
117
//

denops/fall/_assets/minimum.custom.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Entrypoint } from "jsr:@vim-fall/custom@^0.1.0";
2-
import * as builtin from "jsr:@vim-fall/std@^0.10.0/builtin";
1+
import type { Entrypoint } from "@vim-fall/custom";
2+
import * as builtin from "@vim-fall/std/builtin";
33

44
export const main: Entrypoint = ({
55
definePickerFromSource,

denops/fall/component/_component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { Denops } from "jsr:@denops/std@^7.3.2";
2-
import * as popup from "jsr:@denops/std@^7.3.2/popup";
3-
import type { Border } from "jsr:@vim-fall/core@^0.3.0/theme";
4-
import type { Dimension } from "jsr:@vim-fall/core@^0.3.0/coordinator";
1+
import type { Denops } from "@denops/std";
2+
import * as popup from "@denops/std/popup";
3+
import type { Border } from "@vim-fall/core/theme";
4+
import type { Dimension } from "@vim-fall/core/coordinator";
55

66
const HIGHLIGHT_NORMAL = "FallNormal";
77
const HIHGLIGHT_BORDER = "FallBorder";

denops/fall/component/_component_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { test } from "jsr:@denops/test@^3.0.4";
2-
import * as fn from "jsr:@denops/std@^7.3.2/function";
3-
import { assertEquals, assertNotEquals } from "jsr:@std/assert@^1.0.7";
1+
import { test } from "@denops/test";
2+
import * as fn from "@denops/std/function";
3+
import { assertEquals, assertNotEquals } from "@std/assert";
44

55
import { screentext } from "./_testutil.ts";
66
import { BaseComponent } from "./_component.ts";

denops/fall/component/_testutil.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { Denops } from "jsr:@denops/std@^7.3.2";
2-
import * as fn from "jsr:@denops/std@^7.3.2/function";
3-
import { collect } from "jsr:@denops/std@^7.3.2/batch";
4-
import * as iterutil from "jsr:@core/iterutil@^0.9/pipe";
5-
import { range } from "jsr:@core/iterutil@^0.9.0";
6-
import { pipe } from "jsr:@core/pipe@^0.4.0";
1+
import type { Denops } from "@denops/std";
2+
import * as fn from "@denops/std/function";
3+
import { collect } from "@denops/std/batch";
4+
import * as iterutil from "@core/iterutil/pipe";
5+
import { range } from "@core/iterutil";
6+
import { pipe } from "@core/pipe";
77

88
/**
99
* Get screen text in the specified range.

denops/fall/component/help.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { Denops } from "jsr:@denops/std@^7.3.2";
2-
import type { Decoration } from "jsr:@denops/std@^7.3.2/buffer";
3-
import * as mapping from "jsr:@denops/std@^7.3.2/mapping";
4-
import * as fn from "jsr:@denops/std@^7.3.2/function";
5-
import * as buffer from "jsr:@denops/std@^7.3.2/buffer";
6-
import type { Dimension } from "jsr:@vim-fall/core@^0.3.0/coordinator";
1+
import type { Denops } from "@denops/std";
2+
import type { Decoration } from "@denops/std/buffer";
3+
import * as mapping from "@denops/std/mapping";
4+
import * as fn from "@denops/std/function";
5+
import * as buffer from "@denops/std/buffer";
6+
import type { Dimension } from "@vim-fall/core/coordinator";
77

88
import { BaseComponent } from "./_component.ts";
99
import { ItemBelt } from "../lib/item_belt.ts";

denops/fall/component/help_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import "../lib/polyfill.ts";
22

3-
import { test } from "jsr:@denops/test@^3.0.4";
4-
import * as fn from "jsr:@denops/std@^7.3.2/function";
5-
import { fromFileUrl } from "jsr:@std/path@^1.0.8/from-file-url";
6-
import { assertEquals } from "jsr:@std/assert@^1.0.6";
3+
import { test } from "@denops/test";
4+
import * as fn from "@denops/std/function";
5+
import { fromFileUrl } from "@std/path/from-file-url";
6+
import { assertEquals } from "@std/assert";
77

88
import { HelpComponent } from "./help.ts";
99

denops/fall/component/input.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { Denops } from "jsr:@denops/std@^7.3.2";
2-
import * as fn from "jsr:@denops/std@^7.3.2/function";
3-
import * as buffer from "jsr:@denops/std@^7.3.2/buffer";
4-
import type { Dimension } from "jsr:@vim-fall/core@^0.3.0/coordinator";
1+
import type { Denops } from "@denops/std";
2+
import * as fn from "@denops/std/function";
3+
import * as buffer from "@denops/std/buffer";
4+
import type { Dimension } from "@vim-fall/core/coordinator";
55

66
import { Spinner, UNICODE_SPINNER } from "../lib/spinner.ts";
77
import { adjustOffset } from "../lib/adjust_offset.ts";

denops/fall/component/input_test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import "../lib/polyfill.ts";
22

3-
import { assertEquals } from "jsr:@std/assert@^1.0.6";
4-
import { delay } from "jsr:@std/async@^1.0.7";
5-
import { test } from "jsr:@denops/test@^3.0.4";
6-
import { fromFileUrl } from "jsr:@std/path@^1.0.8/from-file-url";
7-
import { listDecorations } from "jsr:@denops/std@^7.3.2/buffer";
8-
import * as fn from "jsr:@denops/std@^7.3.2/function";
3+
import { assertEquals } from "@std/assert";
4+
import { delay } from "@std/async";
5+
import { test } from "@denops/test";
6+
import { fromFileUrl } from "@std/path/from-file-url";
7+
import { listDecorations } from "@denops/std/buffer";
8+
import * as fn from "@denops/std/function";
99

1010
import {
1111
HIGHLIGHT_COUNTER,

0 commit comments

Comments
 (0)