diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 0000000..09cf720
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,5 @@
+{
+ "recommendations": [
+ "denoland.vscode-deno"
+ ]
+}
diff --git a/deps_dev.ts b/deps_dev.ts
index ac3dc72..e5e832a 100644
--- a/deps_dev.ts
+++ b/deps_dev.ts
@@ -3,3 +3,5 @@ export {
assertExists,
assertRejects,
} from "https://deno.land/std@0.200.0/assert/mod.ts";
+
+export { build, emptyDir } from "https://deno.land/x/dnt@0.38.1/mod.ts";
diff --git a/index.html b/index.html
index e005a08..c532332 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,10 @@
ClassCharts-API
-
+
-
diff --git a/mod.ts b/mod.ts
index 249b084..7650092 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/scripts/build_npm.ts b/scripts/build_npm.ts
index 7155e06..5704378 100644
--- a/scripts/build_npm.ts
+++ b/scripts/build_npm.ts
@@ -1,4 +1,4 @@
-import { build, emptyDir } from "https://deno.land/x/dnt@0.38.1/mod.ts";
+import { build, emptyDir } from "~/deps_dev.ts";
if (!Deno.args[0]) throw new Error("No version specified");
@@ -23,13 +23,12 @@ await build({
},
typeCheck: "both",
package: {
- // package.json properties
name: "classcharts-api",
+ version: String(Deno.args[0]).replace("v", ""),
author: {
name: "James Cook",
email: "james@jaminit.co.uk",
},
- version: String(Deno.args[0]).replace("v", ""),
description:
"A Typescript wrapper for getting information from the ClassCharts API",
license: "ISC",
@@ -48,7 +47,6 @@ await build({
sideEffects: false,
},
postBuild() {
- // steps to run after building and before running the tests
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
},