Skip to content

Commit

Permalink
Adapt nodemon & typegoose to run with bun (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurogripa authored Oct 3, 2024
1 parent a2f310d commit c9ee274
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"watch": ["src"],
"ext": "ts,json",
"ignore": ["src/**/*.test.ts"],
"exec": "tsx ./src/index.ts"
"exec": "bun ./src/index.ts"
}
3 changes: 2 additions & 1 deletion src/models/Course.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { getModelForClass, prop, Ref } from "@typegoose/typegoose";
import { getModelForClass, prop } from "@typegoose/typegoose";
import type { Ref } from "@typegoose/typegoose";
import BaseModel from "./BaseModel";
import { Module } from "./Module";

Expand Down
3 changes: 2 additions & 1 deletion src/models/Module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { getModelForClass, prop, Ref } from "@typegoose/typegoose";
import { getModelForClass, prop } from "@typegoose/typegoose";
import type { Ref } from "@typegoose/typegoose";
import BaseModel from "./BaseModel";
import { Lesson } from "./Lesson";

Expand Down

0 comments on commit c9ee274

Please sign in to comment.