Use imports

This commit is contained in:
2023-05-20 10:02:38 +08:00
parent f0b032e948
commit f13387163c
11 changed files with 22 additions and 27 deletions

10
db.ts
View File

@@ -1,8 +1,8 @@
const { DB } = await import("https://deno.land/x/[email protected]/mod.ts");
import { SemVer } from "https://deno.land/[email protected]/semver/mod.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";
import { SqliteError } from "https://deno.land/x/[email protected]/mod.ts";
import { Status } from "https://deno.land/x/[email protected]/src/constants.ts";
const { DB } = await import("sqlite/mod.ts");
import { SemVer } from "std/semver/mod.ts";
import { join } from "std/path/mod.ts";
import { SqliteError } from "sqlite/mod.ts";
import { Status } from "sqlite/src/constants.ts";
import { sleep } from "./utils.ts";
import { Task, TaskType } from "./task.ts";