Preset files to be extended by tsconfig and tslint.json
npm install adonis-preset-ts
This module contains the base config files (recommended by the core team) for typescript to be extended by your AdonisJS typescript projects.
``sh
npm i -D adonis-preset-ts
and then setup your config file to extend the base config
tsconfig.json
`json
{
"extends": "./node_modules/adonis-preset-ts/tsconfig",
"compilerOptions": {
"types": [
"@adonisjs/core"
],
"paths": {
"App/": [ "./app/" ],
"Contracts/": [ "./contracts/" ]
}
}
}
``