Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit d2dd81e

Browse files
committed
refactor: create minimal .adonisrc.json file
1 parent 2f6f742 commit d2dd81e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tasks/createRcFile.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@ import { logCreateFile } from '../src/logger'
1414
/**
1515
* Creates the `.adonisrc.json` file in the project root
1616
*/
17-
const task: TaskFn = (absPath, application) => {
17+
const task: TaskFn = (absPath) => {
1818
const rcFile = new RcFile(absPath)
1919

2020
rcFile.setExceptionHandler('App/Exceptions/Handler')
2121
rcFile.setAutoload('App', 'app')
2222
rcFile.setAutoload('Contracts', 'contracts')
2323

24-
application.directoriesMap.forEach((value, key) => {
25-
rcFile.setDirectory(key, value)
26-
})
27-
2824
rcFile.setPreload('start/routes')
2925
rcFile.setPreload('start/kernel')
3026

0 commit comments

Comments
 (0)