1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 03:56:59 +00:00

feat: export types to classcharts-api/types

This allow types to be easily accessed without knowing the full path.
Eliminates the need to decide which types should be exported from mod.ts
This commit is contained in:
James Cook 2023-09-15 17:06:59 +01:00
parent 3e76d4a762
commit a9afa0e9e5
2 changed files with 7 additions and 12 deletions

11
mod.ts
View file

@ -1,13 +1,2 @@
export * from "./src/core/studentClient.ts";
export * from "./src/core/parentClient.ts";
export type {
ActivityPoint,
Announcement,
AttendanceDate,
Badge,
BehaviourTimelinePoint,
Detention,
Homework,
Lesson,
Student,
} from "./src/types.ts";

View file

@ -5,7 +5,13 @@ if (!Deno.args[0]) throw new Error("No version specified");
await emptyDir("./npm");
await build({
entryPoints: ["./mod.ts"],
entryPoints: [{
name: ".",
path: "./mod.ts",
}, {
name: "./types",
path: "./src/types.ts",
}],
outDir: "./npm",
shims: {
deno: true,