Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@adonisjs/tsconfig

adonisjs106.7kMIT1.4.1

Base TypeScript configuration files for AdonisJS applications and packages

tsconfig, typescript, adonisjs

readme

@adonisjs/tsconfig



Base TSConfig files

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


npm-image license-image

Installation

Install the package from the npm registry.

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

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

For AdonisJS application

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

For client-side code inside AdonisJS application

// resources/tsconfig.json
{
  "extends": "@adonisjs/tsconfig/tsconfig.client.json"
}
Built with ❤︎ by Julien Ripouteau and Harminder Virk