Skip to content

Commit

Permalink
Add bun script for updating data
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamotoaki committed Aug 29, 2024
1 parent b851e9a commit 90f9ec4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"type": "module",
"scripts": {
"lint": "prettier --check . && eslint src/",
"format": "prettier --write ."
"format": "prettier --write .",
"update-data": "bun src/index.ts"
},
"devDependencies": {
"bun-types": "latest",
Expand All @@ -20,4 +21,4 @@
"@supabase/supabase-js": "^2.45.1",
"redis": "^4.7.0"
}
}
}
2 changes: 2 additions & 0 deletions apps/server/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Usage: bun run update-data <term>

import { populateListings } from "./listings";
import { populateCourses } from "./courses";
import { redisTransfer } from "./transfer";
Expand Down

0 comments on commit 90f9ec4

Please sign in to comment.