X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-repl.ts;h=ab6e215d9dc26f431797bf4166506ea14b64ac52;hb=49c3bf6fa25afb49c8a27937147043c6e4ce95c3;hp=04d8b95a3076b4736bb1b76a23727f650ecc4561;hpb=2a8c5d0af13f3ccb9a505e1fbc9d324b9d33ba1f;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) + })