TSConfig config files for AdonisJS (including Inertia) applications or AdonisJS packages.
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
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