--- name: bun description: Default to using Bun instead of Node.js for all JavaScript/TypeScript operations including running files, testing, building, and package management. --- # Bun Runtime Default to using Bun instead of Node.js for all JavaScript/TypeScript operations. ## Core Commands - Use `bun ` instead of `node ` or `ts-node ` - Use `bun test` instead of `jest` or `vitest` - Use `bun build ` instead of `webpack` or `esbuild` - Use `bun install` instead of `npm install` or `yarn install` or `pnpm install` - Use `bun run ``` ### Frontend Components ```tsx import React from "react"; // import .css files directly and it works import './index.css'; import { createRoot } from "react-dom/client"; const root = createRoot(document.body); export default function Frontend() { return

Hello, world!

; } root.render(); ``` ### Running the Server ```sh bun --hot ./index.ts ``` ## Additional Resources For more information, read the Bun API docs in `node_modules/bun-types/docs/**.md`.