Skip to content

Latest commit

 

History

History

tsconfig

@risedle/tsconfig

Shared Typescript configuration.

Installation

Use the following command to install @risedle/tsconfig:

# npm
npm install --save-dev --save-exact @risedle/tsconfig@latest

# pnpm
pnpm add --save-dev --save-exact @risedle/tsconfig@latest

Usage

Use available json as the baseline of your tsconfig.json. For example:

{
    "extends": "@risedle/tsconfig/shared-library.json",
    "compilerOptions": {
        "outDir": "dist"
    },
    "include": ["src/**/*.ts"],
    "exclude": ["node_modules", "dist"]
}

You can use various pre-made config for Node, React etc.

Here is the example on how to use @risedle/tsconfig for node project:

{
    "extends": "@risedle/tsconfig/node.json",
    "compilerOptions": {
        "outDir": "dist"
    },
    "include": ["src/**/*.ts"],
    "exclude": ["node_modules", "dist"]
}

Resources