Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tsconfig/bun

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsconfig/bun

A base TSConfig for working with Bun.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.5K
increased by7.34%
Maintainers
2
Weekly downloads
 
Created
Source

A base TSConfig for working with Bun.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/bun
yarn add --dev @tsconfig/bun

Add to your tsconfig.json:

"extends": "@tsconfig/bun/tsconfig.json"

The tsconfig.json:

{
  // This is based on https://bun.sh/docs/runtime/typescript#recommended-compileroptions
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Bun",
  "docs": "https://bun.sh/docs/runtime/typescript",

  "compilerOptions": {
    // add Bun type definitions
    "types": [
      "bun-types"
    ],

    // enable latest features
    "lib": [
      "ESNext"
    ],
    "module": "ESNext",
    "target": "ESNext",

    // if TS 5.x+
    "moduleResolution": "bundler",
    "noEmit": true,
    "allowImportingTsExtensions": true,
    "moduleDetection": "force",

    // support JSX
    "jsx": "react-jsx",

    // best practices
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "skipLibCheck": true
  }
}

You can find the code here.

Keywords

FAQs

Package last updated on 22 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc