diff --git a/deno.jsonc b/deno.jsonc index f6d841b..175e392 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -2,8 +2,5 @@ "tasks": { "npm": "deno run -A scripts/build_npm.ts" }, - "exclude": ["npm"], - "imports": { - "~/": "./" - } + "exclude": ["npm"] } diff --git a/mod.ts b/mod.ts index 7650092..249b084 100644 --- a/mod.ts +++ b/mod.ts @@ -1,2 +1,2 @@ -export * from "~/src/core/studentClient.ts"; -export * from "~/src/core/parentClient.ts"; +export * from "./src/core/studentClient.ts"; +export * from "./src/core/parentClient.ts"; diff --git a/src/core/baseClient.ts b/src/core/baseClient.ts index b41489d..6e1d3a5 100644 --- a/src/core/baseClient.ts +++ b/src/core/baseClient.ts @@ -17,7 +17,7 @@ import type { LessonsResponse, PupilFieldsResponse, } from "../types.ts"; -import { PING_INTERVAL } from "~/src/utils/consts.ts"; +import { PING_INTERVAL } from "../utils/consts.ts"; /** * Shared client for both parent and student. This is not exported and should not be used directly diff --git a/src/core/parentClient.ts b/src/core/parentClient.ts index 6f2451a..add0d6b 100644 --- a/src/core/parentClient.ts +++ b/src/core/parentClient.ts @@ -1,8 +1,8 @@ import type { GetPupilsResponse } from "../types.ts"; -import { BaseClient } from "~/src/core/baseClient.ts"; -import { API_BASE_PARENT, BASE_URL } from "~/src/utils/consts.ts"; -import { parseCookies } from "~/src/utils/utils.ts"; +import { BaseClient } from "../core/baseClient.ts"; +import { API_BASE_PARENT, BASE_URL } from "../utils/consts.ts"; +import { parseCookies } from "../utils/utils.ts"; /** * Parent Client */ diff --git a/src/core/parentClient_test.ts b/src/core/parentClient_test.ts index d947082..7e5ac8c 100644 --- a/src/core/parentClient_test.ts +++ b/src/core/parentClient_test.ts @@ -1,5 +1,5 @@ -import { assertRejects } from "~/deps_dev.ts"; -import { ParentClient } from "~/src/core/parentClient.ts"; +import { assertRejects } from "../../deps_dev.ts"; +import { ParentClient } from "../core/parentClient.ts"; Deno.test("Throws when no email is provided", async () => { const client = new ParentClient("", "password"); diff --git a/src/core/studentClient.ts b/src/core/studentClient.ts index d52daff..c424c88 100644 --- a/src/core/studentClient.ts +++ b/src/core/studentClient.ts @@ -1,7 +1,7 @@ -import { API_BASE_STUDENT, BASE_URL } from "~/src/utils/consts.ts"; -import { BaseClient } from "~/src/core/baseClient.ts"; -import { parseCookies } from "~/src/utils/utils.ts"; -import { RewardPurchaseResponse, RewardsResponse } from "~/src/types.ts"; +import { API_BASE_STUDENT, BASE_URL } from "../utils/consts.ts"; +import { BaseClient } from "../core/baseClient.ts"; +import { parseCookies } from "../utils/utils.ts"; +import { RewardPurchaseResponse, RewardsResponse } from "../types.ts"; /** * Student Client diff --git a/src/core/studentClient_test.ts b/src/core/studentClient_test.ts index a5b000a..0f53f3a 100644 --- a/src/core/studentClient_test.ts +++ b/src/core/studentClient_test.ts @@ -1,5 +1,5 @@ -import { assertRejects } from "~/deps_dev.ts"; -import { StudentClient } from "~/src/core/studentClient.ts"; +import { assertRejects } from "../../deps_dev.ts"; +import { StudentClient } from "../core/studentClient.ts"; Deno.test("Throws when no student code is provided", async () => { const client = new StudentClient(""); diff --git a/src/utils/utils_test.ts b/src/utils/utils_test.ts index ccb7696..dcf0b5e 100644 --- a/src/utils/utils_test.ts +++ b/src/utils/utils_test.ts @@ -1,4 +1,4 @@ -import { assertEquals, assertExists } from "~/deps_dev.ts"; +import { assertEquals, assertExists } from "../../deps_dev.ts"; import { parseCookies } from "./utils.ts"; Deno.test("Parses simple cookie", () => { const cookie =