diff --git a/.changeset/wild-bags-rhyme.md b/.changeset/wild-bags-rhyme.md new file mode 100644 index 0000000..f732031 --- /dev/null +++ b/.changeset/wild-bags-rhyme.md @@ -0,0 +1,5 @@ +--- +"@first-australia/latitude-scheduler": patch +--- + +Add exports to build files diff --git a/src/index.ts b/src/index.ts index 2162f9d..2105682 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,18 +2,17 @@ import Timeslot from "@/v8/timeslot/timeslot"; import Timetable from "@/v8/timetable/timetable"; import Tournament from "@/v8/tournament"; -export function add(a: number, b: number): number { - return a + b; -} - -export function subtract(a: number, b: number): number { - return a - b; -} +export * from "@/v8/activity"; +export * from "@/v8/config"; +export * from "@/v8/team"; +export * from "@/v8/timeslot/timeslot"; +export * from "@/v8/timetable/timetable"; +export * from "@/v8/tournament"; console.log("Timetable test:"); const timetable = new Timetable(); for (let i = 0; i < 4; i++) { - timetable.timeslots.push(new Timeslot(9 * 60 + i * 45, 45, 4)); + timetable.timeslots.push(new Timeslot(9 * 60 + i * 45, 45, 4)); } timetable.print(); @@ -21,10 +20,10 @@ console.log("\nTournament test:"); // Initialise a tournament const tournament = new Tournament({ - name: "My Tournament", - numberOfDays: 1, - numberOfTeams: 24, - preset: "ausFLL", + name: "My Tournament", + numberOfDays: 1, + numberOfTeams: 24, + preset: "ausFLL", }); tournament.construct(); tournament.populate();