Skip to content

Commit

Permalink
fix: server.ts file to setup source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 9, 2020
1 parent 60fc794 commit 45c3592
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion npm-audit.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h5 class="card-title">
<div class="card">
<div class="card-body">
<h5 class="card-title">
October 25th 2020, 4:43:43 am
November 9th 2020, 6:10:16 am
</h5>
<p class="card-text">Last updated</p>
</div>
Expand Down
1 change: 1 addition & 0 deletions tasks/InstallDependencies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const task: TaskFn = async (_, logger, { pkg, client, boilerplate }) => {
*/
pkg.install('proxy-addr', 'latest', false)
pkg.install('reflect-metadata', 'latest', false)
pkg.install('source-map-support', 'latest', false)

/**
* Required dev dependencies
Expand Down
1 change: 1 addition & 0 deletions templates/api/ace
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

require('reflect-metadata')
require('source-map-support').install({ handleUncaughtExceptions: false })

const { Ignitor } = require('@adonisjs/core/build/standalone')
new Ignitor(__dirname)
Expand Down
3 changes: 3 additions & 0 deletions templates/api/server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
*/

import 'reflect-metadata'
import sourceMapSupport from 'source-map-support'
import { Ignitor } from '@adonisjs/core/build/standalone'

sourceMapSupport.install({ handleUncaughtExceptions: false })

new Ignitor(__dirname)
.httpServer()
.start()
1 change: 1 addition & 0 deletions templates/web/ace
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

require('reflect-metadata')
require('source-map-support').install({ handleUncaughtExceptions: false })

const { Ignitor } = require('@adonisjs/core/build/standalone')
new Ignitor(__dirname)
Expand Down
3 changes: 3 additions & 0 deletions templates/web/server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
*/

import 'reflect-metadata'
import sourceMapSupport from 'source-map-support'
import { Ignitor } from '@adonisjs/core/build/standalone'

sourceMapSupport.install({ handleUncaughtExceptions: false })

new Ignitor(__dirname)
.httpServer()
.start()

0 comments on commit 45c3592

Please sign in to comment.