Skip to content

Commit

Permalink
chore: enable decorator metadata for ioc container decorators to work
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 15, 2020
1 parent 2630e2f commit 3218525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions commands/ListRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export default class ListRoutes extends BaseCommand {

@inject(['Adonis/Core/Route'])
public async handle (router: RouterContract) {
router.commit()

if (this.json) {
this.log(JSON.stringify(this.outputJSON(router), null, 2))
} else {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@adonisjs/mrm-preset/_tsconfig",
"compilerOptions": {
"skipLibCheck": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
}
}

0 comments on commit 3218525

Please sign in to comment.