Skip to content

Commit

Permalink
Remove esm.sh dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Sep 10, 2024
1 parent 5371eab commit f8c0d30
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion denops/skkeleton/deps/encoding_japanese.ts

This file was deleted.

1 change: 0 additions & 1 deletion denops/skkeleton/deps/japanese_numeral.ts

This file was deleted.

1 change: 0 additions & 1 deletion denops/skkeleton/deps/roman.ts

This file was deleted.

8 changes: 4 additions & 4 deletions denops/skkeleton/dictionary.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { config } from "./config.ts";
import { JpNum } from "./deps/japanese_numeral.ts";
import { RomanNum } from "./deps/roman.ts";
import type { CompletionData, RankData } from "./types.ts";
import { number2kanji } from "npm:@geolonia/[email protected]";
import { convertNumberToRoman } from "npm:[email protected]";

import { toFileUrl } from "jsr:@std/path@~1.0.3/to-file-url";
import { zip } from "jsr:@std/collections@~1.0.5/zip";
Expand Down Expand Up @@ -55,8 +55,8 @@ function toKanjiModern(n: number): string {
return kanjiNumbers[parseInt(c)];
});
}
const toRoman: (n: number) => string = RomanNum.convertNumberToRoman;
const toKanjiClassic: (n: number) => string = JpNum.number2kanji;
const toRoman: (n: number) => string = convertNumberToRoman;
const toKanjiClassic: (n: number) => string = number2kanji;

function toDaiji(n: number): string {
return toKanjiClassic(n)
Expand Down
6 changes: 3 additions & 3 deletions denops/skkeleton/sources/skk_server.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { config } from "../config.ts";
import { encoding } from "../deps/encoding_japanese.ts";
import { Encode } from "../types.ts";
import { getKanaTable } from "../kana.ts";
import {
Dictionary as BaseDictionary,
HenkanType,
Source as BaseSource,
} from "../dictionary.ts";
import { getKanaTable } from "../kana.ts";
import { Encode } from "../types.ts";
import type { CompletionData, Encoding, SkkServerOptions } from "../types.ts";
import * as encoding from "npm:[email protected]";

import { TextLineStream } from "jsr:@std/streams@~1.0.3/text-line-stream";

Expand Down
2 changes: 1 addition & 1 deletion denops/skkeleton/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Denops, fn, op } from "./deps.ts";
import { encoding } from "./deps/encoding_japanese.ts";
import * as encoding from "npm:[email protected]";

import { basename } from "jsr:@std/path@~1.0.3/basename";
import { parse } from "jsr:@std/path@~1.0.3/parse";
Expand Down

0 comments on commit f8c0d30

Please sign in to comment.