X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-repl.ts;h=ab6e215d9dc26f431797bf4166506ea14b64ac52;hb=837666fe48f9ed786db75c96e2025cbcf20a1e3b;hp=04d8b95a3076b4736bb1b76a23727f650ecc4561;hpb=1b5e2d72900c8ceaf76940b72839d3c424ac96e8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube-repl.ts b/server/tools/peertube-repl.ts index 04d8b95a3..ab6e215d9 100644 --- a/server/tools/peertube-repl.ts +++ b/server/tools/peertube-repl.ts @@ -1,3 +1,6 @@ +import { registerTSPaths } from '../helpers/register-ts-paths' +registerTSPaths() + import * as repl from 'repl' import * as path from 'path' import * as _ from 'lodash' @@ -43,7 +46,7 @@ const start = async () => { Object.defineProperty(context, prop, { configurable: false, enumerable: true, - value: properties[prop] + value: properties[ prop ] }) } } @@ -69,8 +72,7 @@ const start = async () => { } -start().then((data) => { - // do nothing -}).catch((err) => { - console.error(err) -}) +start() + .catch((err) => { + console.error(err) + })