Skip to content

Commit

Permalink
chore: include @adonisjs/view in types
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jul 23, 2023
1 parent 01cb20e commit a743f42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions providers/vite_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
* file that was distributed with this source code.
*/

import '@adonisjs/view'
import { ApplicationService } from '@adonisjs/core/types'
import { ViewContract } from '@adonisjs/view/types'
import type { ApplicationService } from '@adonisjs/core/types'
import type { ViewContract } from '@adonisjs/view/types'
import { Vite } from '../src/backend/vite.js'
import { EdgeError } from 'edge-error'

Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"extends": "@adonisjs/tsconfig/tsconfig.package.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "./build"
}
"outDir": "./build",
"types": [
"@adonisjs/view"
]
},
}

0 comments on commit a743f42

Please sign in to comment.