Socket
Book a DemoInstallSign in
Socket

@cjkihl/tsconfig

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cjkihl/tsconfig

Shared TypeScript configurations for Node.js projects

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
333
674.42%
Maintainers
1
Weekly downloads
 
Created
Source

@cjkihl/tsconfig

Shared TypeScript configurations for Node.js and browser projects. This package provides base, library, and browser configurations that can be extended in your projects.

Installation

bun add -D @cjkihl/tsconfig

Usage

Base Configuration

For basic Node.js projects, extend the base configuration:

{
  "extends": "@cjkihl/tsconfig/base"
}

Library Configuration

For TypeScript libraries that need to generate declaration files:

{
  "extends": "@cjkihl/tsconfig/lib"
}

Browser Configuration

For browser-based projects (React, Vue, etc.):

{
  "extends": "@cjkihl/tsconfig/browser"
}

Features

Base Configuration (tsconfig/base)

  • Modern JavaScript features (ES2022)
  • Strict type checking
  • Module bundler support
  • Node.js types
  • Source maps
  • Path aliases support

Library Configuration (tsconfig/lib)

Extends the base configuration with:

  • Declaration file generation
  • Composite project support
  • Declaration source maps
  • Optimized for library publishing

Browser Configuration (tsconfig/browser)

Extends the base configuration with:

  • DOM types and APIs
  • Browser-specific libraries
  • DOM iteration support
  • Optimized for frontend development

Configuration Details

Base Configuration

{
  "compilerOptions": {
    "target": "es2022",
    "module": "Preserve",
    "moduleResolution": "bundler",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "lib": ["es2022"]
  }
}

Library Configuration

{
  "compilerOptions": {
    "declaration": true,
    "composite": true,
    "sourceMap": true,
    "declarationMap": true
  }
}

Browser Configuration

{
  "compilerOptions": {
    "lib": ["es2022", "dom", "dom.iterable"]
  }
}

License

MIT

Keywords

typescript

FAQs

Package last updated on 21 Sep 2025

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