You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"scripts": {"dev": "bun run --bun next dev","build": "bun run --bun next build","start": "bun run --bun next start","test": "bun test","type-check": "bun tsc --noEmit","install": "bun install"}}
8. Detectar Runtime Bun
constisBun=!!process.versions.bun;console.log(`Running on ${isBun ? 'Bun ⚡' : 'Node.js'}`);
9. Regra para Cursor AI (para projetos Next.js/TS)
Priorizar Bun APIs (Bun.file(), Bun.serve(), Bun.password.hash() etc) sobre Node.js nativas
Sempre executar com bun run --bun
Configurar tsconfig com tipos Bun nativos
Usar bun para instalação, build e testes
Sem Fallback para Node somente se Bun não disponível