Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 977 Bytes

README.md

File metadata and controls

49 lines (37 loc) · 977 Bytes

TypeScript Config

OpenAlly TypeScript CJS & ESM configurations.

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i -D @openally/config.typescript
# or
$ yarn add @openally/config.typescript -D

Usage

{
  "extends": "@openally/config.typescript/cjs",
  "compilerOptions": {
    "outDir": "dist",
    "rootDir": "./src"
  },
  "include": ["src"],
  "exclude": ["node_modules", "dist"]
}

Use either cjs or esm

{
  "exports": {
    "./esm": "./src/esm/tsconfig.json",
    "./cjs": "./src/cjs/tsconfig.json"
  }
}

Note

The original inspiration for those configurations is The TSConfig Cheat Sheet by Matt Pocock.

License

MIT