mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +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:
parent
3e76d4a762
commit
a9afa0e9e5
2 changed files with 7 additions and 12 deletions
11
mod.ts
11
mod.ts
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue