0.3.2 • Published 2 years ago
@giotramu/tsc v0.3.2
TS Configs
A collection of TSConfigs to extend in your own apps, tuned to a particular runtime environment.
Install
# NPM
npm add --save-dev @giotramu/tsc typescript
# PNPM
pnpm add --save-dev @giotramu/tsc typescript
# Yarn
yarn add --dev @giotramu/tsc typescript
Available Configurations
⚠️ The following configuration supports a version of Node >= 16.
Add to your tsconfig.json
:
{
"extends": "@giotramu/tsc/node/tsconfig.cjs.json",
"compilerOptions": {
"declarationDir": "./types",
"typeRoots": ["./types", "./node_modules/@types"]
}
}
⚠️ The following configuration supports a version of Node >= 16.
Add to your tsconfig.json
:
{
"extends": "@giotramu/tsc/node/tsconfig.esm.json",
"compilerOptions": {
"declarationDir": "./types",
"typeRoots": ["./types", "./node_modules/@types"]
}
}
⚠️ The following configuration is helpful in projects based on Create React App and Next.js.
Add to your tsconfig.json
:
{
"extends": "@giotramu/tsc/react/tsconfig.json"
}