Skip to content

Latest commit

 

History

History

typescript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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