An open API service indexing awesome lists of open source software.

https://github.com/adonisjs/tsconfig

Base TypeScript configuration files for AdonisJS applications and packages
https://github.com/adonisjs/tsconfig

Last synced: 10 months ago
JSON representation

Base TypeScript configuration files for AdonisJS applications and packages

Awesome Lists containing this project

README

          

# @adonisjs/tsconfig





Base TSConfig files


TSConfig config files for AdonisJS (including Inertia) applications or AdonisJS packages.



[![npm-image]][npm-url] [![license-image]][license-url]

## Installation

Install the package from the npm registry.

```sh
npm i -D @adonisjs/tsconfig@beta

# Make sure also to install the following packages
npm i -D typescript ts-node-maintained @swc/core
```

## Usage

After installation, use one of the following base config files.

**For package development**

```json
// tsconfig.json
{
"extends": "@adonisjs/tsconfig/tsconfig.package.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "./build"
}
}
```

**For AdonisJS application**

```json
// tsconfig.json
{
"extends": "@adonisjs/tsconfig/tsconfig.app.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "./build"
}
}
```

**For client-side code inside AdonisJS application**

```ts
// resources/tsconfig.json
{
"extends": "@adonisjs/tsconfig/tsconfig.client.json"
}
```


Built with ❤︎ by Julien Ripouteau and Harminder Virk

[npm-image]: https://img.shields.io/npm/v/@adonisjs/tsconfig/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://www.npmjs.com/package/@adonisjs/tsconfig/v/latest 'npm'
[license-url]: LICENSE.md
[license-image]: https://img.shields.io/github/license/adonisjs/tsconfig?style=for-the-badge