Quick fix for the CLI - the disabling of pino logging being part of the index means it doesn't run until after TS imports - moving it to be first import/ran before all else.
This commit is contained in:
parent
15b86021ee
commit
d23a34687f
|
@ -1,3 +1,4 @@
|
|||
process.env.DISABLE_PINO_LOGGER = "1"
|
||||
process.env.NO_JS = "1"
|
||||
process.env.JS_BCRYPT = "1"
|
||||
process.env.DISABLE_JWT_WARNING = "1"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env node
|
||||
process.env.DISABLE_PINO_LOGGER = "1"
|
||||
// have to import this before anything else
|
||||
import "./init"
|
||||
import "./environment"
|
||||
import { getCommands } from "./options"
|
||||
import { Command } from "commander"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
dir="$(dirname -- "$(readlink -f "${BASH_SOURCE}")")"
|
||||
${dir}/node_modules/ts-node/dist/bin.js ${dir}/src/index.ts $@
|
||||
${dir}/../../node_modules/ts-node/dist/bin.js ${dir}/src/index.ts $@
|
||||
|
|
Loading…
Reference in New Issue