When creating a new bunmaska project, opening src/main.ts in an IDE throws TypeScript errors for imports like node:fs and node:path (e.g., Cannot find module 'node:fs' or its corresponding type declarations).
Suggested Fix:
- Add @types/bun to the default devDependencies in the generated package.json.
- Scaffold a default tsconfig.json that includes "types": ["bun-types"] in the compilerOptions.
This will ensure that language servers in editors like VSCode can resolve Bun and Node standard library imports out-of-the-box without manual configuration.
When creating a new bunmaska project, opening src/main.ts in an IDE throws TypeScript errors for imports like node:fs and node:path (e.g., Cannot find module 'node:fs' or its corresponding type declarations).
Suggested Fix:
This will ensure that language servers in editors like VSCode can resolve Bun and Node standard library imports out-of-the-box without manual configuration.