@adonisjs/tsconfig

1.3.0 • Public • Published

@adonisjs/tsconfig

The @adonisjs/tsconfig package exports the base TypeScript configuration for AdonisJS applications and packages.

Installation

Install the package as a development dependency from the npm packages registry.

npm i -D @adonisjs/tsconfig

# For yarn lovers
yarn add -D @adonisjs/tsconfig

# For pnpm believers
pnpm add -D @adonisjs/tsconfig

Usage

AdonisJS Package

If you are creating an AdonisJS package, you must extend from the tsconfig.package.json file.

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

AdonisJS applications

If you are creating an AdonisJS application, you must extend from the tsconfig.app.json file. AdonisJS starter kits does this by default.

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

Package Sidebar

Install

npm i @adonisjs/tsconfig

Weekly Downloads

6,547

Version

1.3.0

License

MIT

Unpacked Size

2.79 kB

Total Files

6

Last publish

Collaborators

  • julien-r44
  • romainlanz
  • virk