1.1.1 • Published 8 months ago

@rodbe/tsconfig v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

RBX: Shareable TypeScript Configurations 🧙‍♂️

Overview

This package provides shareable TypeScript configuration files to be extended in a TypeScript v5 project. It is structured to support different environments with specific TypeScript compiler options.

Pre-requisites

  • TypeScript >= 5.0.0

Exported Configurations

The package.json exports many configurations that can be used depending on the needs of your project:

By environment

TypeDescriptionExample
DOMEnvironments where DOM types are requiredWeb application like vanilla, react, etc Web Module like libraries
NO-DOMEnvironments where DOM types are not requiredNode.js server-side applications.

Use cases

CompilerTypeApplicationHow to import?Example
BundlerDOMApp@rodbe/tsconfig/bundler/dom/appreact, vite, pkgroll, etc
BundlerDOMLib@rodbe/tsconfig/bundler/dom/libjs module
BundlerNO-DOMApp@rodbe/tsconfig/bundler/no-dom/appCLI
BundlerNO-DOMLib@rodbe/tsconfig/bundler/no-dom/libnodejs module

Usage

You can extend these configurations in your tsconfig.json file like so:

{
  // extends the appropriate configuration based on your needs (see above "how to import")
  "extends": "@rodbe/tsconfig/bundler/no-dom/app",
  "compilerOptions": {
    // Your custom options
  }
}

Make sure to choose the appropriate configuration based on whether you need DOM types or not.

Additional Information

1.1.1

8 months ago

1.1.0

8 months ago

1.0.1

11 months ago

1.0.0

11 months ago