@adonisjs/tsconfig
v1.4.0
Published
Base TypeScript configuration files for AdonisJS applications and packages
Downloads
51,082
Readme
@adonisjs/tsconfig
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"
}