JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 37004
  • Score
    100M100P100Q145999F
  • License MIT

Base TypeScript configuration files for AdonisJS applications and packages

Package Exports

  • @adonisjs/tsconfig/tsconfig.app.json
  • @adonisjs/tsconfig/tsconfig.client.json
  • @adonisjs/tsconfig/tsconfig.package.json

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