2019-09-11 07:06:21 +00:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Ace Commands
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2020-10-17 13:45:12 +00:00
|
|
|
| This file is the entry point for running ace commands. For typescript
|
|
|
|
|
| projects, the ace commands will fallback to the compiled code and
|
|
|
|
|
| hence this file has to be executable by node directly.
|
2019-09-11 07:06:21 +00:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2020-10-17 13:45:12 +00:00
|
|
|
require('reflect-metadata')
|
|
|
|
|
require('source-map-support').install({ handleUncaughtExceptions: false })
|
2019-09-11 07:06:21 +00:00
|
|
|
|
2020-10-17 13:45:12 +00:00
|
|
|
const { Ignitor } = require('@adonisjs/core/build/src/Ignitor')
|
|
|
|
|
new Ignitor(__dirname)
|
|
|
|
|
.ace()
|
|
|
|
|
.handle(process.argv.slice(2))
|
2019-09-11 07:06:21 +00:00
|
|
|
.catch(console.error)
|