Move pino-pretty to dev-dep, dev script

This commit is contained in:
Tuan Dang
2023-11-01 13:20:10 +02:00
parent 75992e5566
commit 20d4f16d33
3 changed files with 3 additions and 12 deletions

View File

@@ -53,7 +53,6 @@
"passport-google-oauth20": "^2.0.0",
"pino": "^8.16.1",
"pino-http": "^8.5.1",
"pino-pretty": "^10.2.3",
"posthog-node": "^2.6.0",
"probot": "^12.3.1",
"query-string": "^7.1.3",
@@ -96,6 +95,7 @@
"jest-junit": "^15.0.0",
"nodemon": "^2.0.19",
"npm": "^8.19.3",
"pino-pretty": "^10.2.3",
"smee-client": "^1.2.3",
"supertest": "^6.3.3",
"swagger-autogen": "^2.23.5",

View File

@@ -44,7 +44,6 @@
"passport-google-oauth20": "^2.0.0",
"pino": "^8.16.1",
"pino-http": "^8.5.1",
"pino-pretty": "^10.2.3",
"posthog-node": "^2.6.0",
"probot": "^12.3.1",
"query-string": "^7.1.3",
@@ -67,7 +66,7 @@
"main": "src/index.js",
"scripts": {
"start": "node build/index.js",
"dev": "nodemon",
"dev": "nodemon index.js | npx pino-pretty --colorize",
"swagger-autogen": "node ./swagger/index.ts",
"build": "rimraf ./build && tsc && cp -R ./src/templates ./build && cp -R ./src/data ./build",
"lint": "eslint . --ext .ts",
@@ -119,6 +118,7 @@
"jest-junit": "^15.0.0",
"nodemon": "^2.0.19",
"npm": "^8.19.3",
"pino-pretty": "^10.2.3",
"smee-client": "^1.2.3",
"supertest": "^6.3.3",
"swagger-autogen": "^2.23.5",

View File

@@ -11,14 +11,5 @@ export const logger = pino({
// node_version: process.version
};
},
},
transport: {
targets: [
{
target: "pino-pretty",
level: process.env.PINO_LOG_LEVEL || "trace",
options: { colorize: true }
}
]
}
});