1
0
Fork 0
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:
James Cook 2023-09-15 17:06:59 +01:00
parent 3e76d4a762
commit a9afa0e9e5
2 changed files with 7 additions and 12 deletions

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,