@rife/logger 0.0.6-beta.14 → 0.0.6-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ var __webpack_exports__ = {};
75
75
  'thread-stream-worker': external_path_default().join(__dirname, './worker/thread-stream.cjs'),
76
76
  ...globalThis.__bundlerPathsOverrides
77
77
  };
78
- 'production' === process.env.NODE_ENV || targets.push({
78
+ 'production' === process.env.NODE_ENV || void 0 !== process.env.VITEST || targets.push({
79
79
  level: 'debug',
80
80
  target: 'pino-pretty',
81
81
  options: {
@@ -31,7 +31,7 @@ function getPinoConfig() {
31
31
  'thread-stream-worker': path.join(pino_dirname, './worker/thread-stream.cjs'),
32
32
  ...globalThis.__bundlerPathsOverrides
33
33
  };
34
- 'production' === process.env.NODE_ENV || targets.push({
34
+ 'production' === process.env.NODE_ENV || void 0 !== process.env.VITEST || targets.push({
35
35
  level: 'debug',
36
36
  target: 'pino-pretty',
37
37
  options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rife/logger",
3
- "version": "0.0.6-beta.14",
3
+ "version": "0.0.6-beta.15",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "./src/index.ts",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "thread-stream": "^4.0.0",
47
- "@rife/plugin-rstack": "0.0.1-beta.23",
48
- "@rife/cli": "0.0.6-beta.22"
47
+ "@rife/cli": "0.0.6-beta.23",
48
+ "@rife/plugin-rstack": "0.0.1-beta.23"
49
49
  },
50
50
  "scripts": {
51
51
  "dev": "rife dev",
package/src/pino/index.ts CHANGED
@@ -40,7 +40,10 @@ function getPinoConfig() {
40
40
  };
41
41
  }
42
42
 
43
- if (process.env.NODE_ENV === 'production') {
43
+ if (
44
+ process.env.NODE_ENV === 'production' ||
45
+ typeof process.env.VITEST !== 'undefined' // VITEST
46
+ ) {
44
47
  } else {
45
48
  targets.push({
46
49
  level: 'debug',