1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 16:17:37 +00:00

fixed some imports

This commit is contained in:
Bowden
2018-03-12 09:43:29 -07:00
parent 2c8f46188a
commit cf1a5bf748
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
import * as winston from "winston";
import winston from "winston";
import { Logger } from "winston";
import { ENVIRONMENT } from "./secrets";
const logger = new (winston.Logger)({
const logger = new (Logger)({
transports: [
new (winston.transports.Console)({ level: process.env.NODE_ENV === "production" ? "error" : "debug" }),
new (winston.transports.File)({ filename: "debug.log", level: "debug"})

View File

@@ -1,6 +1,6 @@
import logger from "./logger";
import * as dotenv from "dotenv";
import * as fs from "fs";
import dotenv from "dotenv";
import fs from "fs";
if (fs.existsSync(".env")) {
logger.debug("Using .env file to supply config environment variables");