1.0.6 • Published 2 years ago
@takanome/tsconfig v1.0.6
@takanome/tsconfig-base
This package contains 3 tsconfig files which are used in my projects:
base.jsonwhich is the base config for all other configsserver.jsonwhich is the config for server side code (NestJS)nextjs.jsonwhich is the config for client side code (NextJS)
💻 Usage
First, install the package:
npm i -D @takanome/tsconfigThen, create a tsconfig.json file in the root of your project and extend the base config:
{
"extends": "@takanome/tsconfig/base.json"
/// ...
}If you are using NestJS, you can extend the server config:
{
"extends": "@takanome/tsconfig/server.json"
/// ...
}If you are using NextJS, you can extend the client config:
{
"extends": "@takanome/tsconfig/nextjs.json"
/// ...
}⚖️ License
This project is licensed under the terms of the MIT license.