@monteway/typescript
v0.4.2
Published
Different TypeScript configs for Monterail projects
Downloads
8
Maintainers
Readme
@monteway/typescript
Diffent TypeScript configs for multiple purposes.
Install
npm i typescript @monteway/typescript
Reference
| Config file | Purpose |
| -------------------------------- | -------------------------------------- |
| tsconfig-base.json
| Includes common compiler options |
| tsconfig-next-app.json
| For Next.js projects |
| tsconfig-node-app.json
| For Node.js projects |
| tsconfig-node-esm-library.json
| For libraries with (outputs ESM) |
| tsconfig-node-library.json
| For libraries with (outputs CommonJS) |
| tsconfig-react-library.json
| For React libraries (outputs CommonJS) |
| tsconfig-remix-app.json
| For Remix projects |
Usage
Just create your TypeScript config file and extend chosen configuration.
{
"extends": "@monteway/typescript/tsconfig-node-esm-library.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist"
},
"include": [...],
"exclude": [...]
}