xcally-nest-library 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,11 +1,32 @@
1
1
  {
2
2
  "name": "xcally-nest-library",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "author": "",
8
8
  "license": "UNLICENSED",
9
+ "scripts": {
10
+ "bump:patch": "npm version patch -m \"Bump version to %s\"",
11
+ "prepublishOnly": "npm run build",
12
+ "build": "tsc",
13
+ "build:watch": "rimraf dist && tsc-watch -b -v",
14
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
15
+ "prettier:check": "prettier --check ./**/*.{ts,js,json,*rc}",
16
+ "prettier:write": "prettier --write ./**/*.{ts,js,json,*rc}",
17
+ "start": "nest start",
18
+ "start:dev": "nest start --watch",
19
+ "start:debug": "nest start --debug --watch",
20
+ "start:prod": "node dist/main",
21
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
22
+ "test": "jest",
23
+ "test:watch": "jest --watch",
24
+ "test:cov": "jest --coverage",
25
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
26
+ "test:e2e": "jest --config ./test/jest-e2e.json",
27
+ "lib:link": "pnpm link --global",
28
+ "lib:unlink": "pnpm unlink xcally-nest-libs --global"
29
+ },
9
30
  "dependencies": {
10
31
  "@nestjs/axios": "^3.0.2",
11
32
  "@nestjs/common": "^10.3.7",
@@ -70,25 +91,5 @@
70
91
  ],
71
92
  "coverageDirectory": "../coverage",
72
93
  "testEnvironment": "node"
73
- },
74
- "scripts": {
75
- "bump:patch": "npm version patch -m \"Bump version to %s\"",
76
- "build": "tsc",
77
- "build:watch": "rimraf dist && tsc-watch -b -v",
78
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
79
- "prettier:check": "prettier --check ./**/*.{ts,js,json,*rc}",
80
- "prettier:write": "prettier --write ./**/*.{ts,js,json,*rc}",
81
- "start": "nest start",
82
- "start:dev": "nest start --watch",
83
- "start:debug": "nest start --debug --watch",
84
- "start:prod": "node dist/main",
85
- "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
86
- "test": "jest",
87
- "test:watch": "jest --watch",
88
- "test:cov": "jest --coverage",
89
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
90
- "test:e2e": "jest --config ./test/jest-e2e.json",
91
- "lib:link": "pnpm link --global",
92
- "lib:unlink": "pnpm unlink xcally-nest-libs --global"
93
94
  }
94
- }
95
+ }
@@ -54,7 +54,7 @@ import { LoggerService } from './logger.service';
54
54
  level: config.get('LOG_LEVEL') || 'info',
55
55
  target: 'pino/file',
56
56
  options: {
57
- destination: `./logs/${projectName}-info.log`,
57
+ destination: process.env.LOG_OUT_DIR + `${projectName}.log` || `./logs/${projectName}.log`,
58
58
  mkdir: true,
59
59
  append: process.env.NODE_ENV !== 'production' ? false : true,
60
60
  },