Skip to content

Infra: Use Bun! #64

@PartMan7

Description

@PartMan7

Looked into Bun and it sounds great for quite a few things:

  • Significantly better HMR (can outright remove Sentinel for existing files)
  • Removing a lot of dependencies:
	"dependencies": {
-		"@js-temporal/polyfill": "^0.5.1",
-		"@swc/core": "^1.7.40",
		"@tailwindcss/cli": "^4.0.8",
		"chess.js": "^1.2.0",
-		"chokidar": "^3.5.3",
		"cron": "^4.3.0",
		"discord.js": "^14.11.0",
-		"dotenv": "^16.3.1",
-		"express": "^5.0.1",
		"flat-cache": "^6.1.1",
		"mongoose": "^8.12.1",
		"ps-client": "^4.5.3",
		"react": "^18.2.0",
		"react-dom": "^18.2.0",
		"sheets-parser": "^1.1.1",
		"tailwindcss": "^4.0.8",
-		"ts-loader": "^9.5.2",
-		"ts-node": "^10.9.2",
-		"tsconfig-paths": "^4.2.0",
		"typescript": "^5.1.6",
		"webpack": "^5.98.0",
		"webpack-cli": "^6.0.1"
	},
  • Dropping startup time (currently a major issue with PartBot, though a lot of this stems from the required DB calls for loading configs and whatnot)
  • Moving away from the forced CJS transpilation needed for current Sentinel

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is neededon holdThis task is on hold and may be revisited at a future date.questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions