@monkvision/typescript-config
TypeScript icon, indicating that this package has built-in type declarations

4.0.19 • Public • Published

@monkvision/typescript-config

This package provides the TSConfigs used in MonkJs Typescript projects. It also exports useful type declarations for compiling.

Install

To install the project simply run the following command :

yarn add -D typescript @monkvision/typescript-config

How to use

To use one of the Typescript config exported by this package, place the following code in your tsconfig.json :

{
  "extends": "@monkvision/typescript-config/tsconfig.json",
  "include": ["src", "test"]
}

You can replace tsconfig.json by the name of the config file you want to use.

We also recommend using a second tsconfig file used for building your sources using the command tsc -p tsconfig.build.json. The build file will specify the outDir and exclude the test files like this :

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "outDir": "dist"
  },
  "exclude": ["test"]
}

Available configs

Here is a list of available Typescript config files exported by this project :

Name Usage
tsconfig.json Base configuration for TypeScript projects
tsconfig.react.json Base configuration for React projects

Package Sidebar

Install

npm i @monkvision/typescript-config

Weekly Downloads

171

Version

4.0.19

License

BSD-3-Clause-Clear

Unpacked Size

5.68 kB

Total Files

6

Last publish

Collaborators

  • souyahia-monk
  • raphaelmonk