Skip to content

Missing TypeScript definitions for Node/Bun built-ins in default template #20

Description

@mr-dev-prince

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions