1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

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:
mike12345567 2024-05-17 16:32:38 +01:00
parent 15b86021ee
commit d23a34687f
3 changed files with 4 additions and 2 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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 $@