@xfe-repo/bff-app 1.6.2 → 1.6.3

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.
@@ -30,12 +30,13 @@ function runNestBuild(argsString) {
30
30
  }
31
31
  __name(runNestBuild, "runNestBuild");
32
32
  function startAppProcess(options) {
33
- const runtimeFlags = [];
33
+ const runtimeFlags = [
34
+ "--enable-source-maps"
35
+ ];
34
36
  if (options.nodeInspectFlag) {
35
- runtimeFlags.push("--enable-source-maps", options.nodeInspectFlag);
37
+ runtimeFlags.push(options.nodeInspectFlag);
36
38
  }
37
- const runtimePrefix = runtimeFlags.length > 0 ? `${runtimeFlags.join(" ")} ` : "";
38
- return spawnCommand(`node ${runtimePrefix}dist/main.js`);
39
+ return spawnCommand(`node ${runtimeFlags.join(" ")} dist/main.js`);
39
40
  }
40
41
  __name(startAppProcess, "startAppProcess");
41
42
  function killProcess(child) {
package/dist/cli.js CHANGED
@@ -140,12 +140,13 @@ function runNestBuild(argsString) {
140
140
  }
141
141
  __name(runNestBuild, "runNestBuild");
142
142
  function startAppProcess(options) {
143
- const runtimeFlags = [];
143
+ const runtimeFlags = [
144
+ "--enable-source-maps"
145
+ ];
144
146
  if (options.nodeInspectFlag) {
145
- runtimeFlags.push("--enable-source-maps", options.nodeInspectFlag);
147
+ runtimeFlags.push(options.nodeInspectFlag);
146
148
  }
147
- const runtimePrefix = runtimeFlags.length > 0 ? `${runtimeFlags.join(" ")} ` : "";
148
- return spawnCommand(`node ${runtimePrefix}dist/main.js`);
149
+ return spawnCommand(`node ${runtimeFlags.join(" ")} dist/main.js`);
149
150
  }
150
151
  __name(startAppProcess, "startAppProcess");
151
152
  function killProcess(child) {
@@ -324,10 +325,12 @@ function runConfig() {
324
325
  __name(runConfig, "runConfig");
325
326
  function runCommandByType(context) {
326
327
  if (context.command === "dev") {
328
+ process.env.NODE_ENV ??= "development";
327
329
  runDevCommand(context.argsString, context.devOptions);
328
330
  return;
329
331
  }
330
332
  if (context.command === "build") {
333
+ process.env.NODE_ENV ??= "production";
331
334
  runBuild(context.argsString);
332
335
  return;
333
336
  }
package/dist/cli.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  runDevCommand,
6
6
  runNestBuild
7
- } from "./chunk-SANGUZFY.mjs";
7
+ } from "./chunk-UJSLYJ7L.mjs";
8
8
  import "./chunk-C43NFQYC.mjs";
9
9
  import {
10
10
  createArgsString,
@@ -44,10 +44,12 @@ function runConfig() {
44
44
  __name(runConfig, "runConfig");
45
45
  function runCommandByType(context) {
46
46
  if (context.command === "dev") {
47
+ process.env.NODE_ENV ??= "development";
47
48
  runDevCommand(context.argsString, context.devOptions);
48
49
  return;
49
50
  }
50
51
  if (context.command === "build") {
52
+ process.env.NODE_ENV ??= "production";
51
53
  runBuild(context.argsString);
52
54
  return;
53
55
  }
@@ -104,12 +104,13 @@ function runNestBuild(argsString) {
104
104
  }
105
105
  __name(runNestBuild, "runNestBuild");
106
106
  function startAppProcess(options) {
107
- const runtimeFlags = [];
107
+ const runtimeFlags = [
108
+ "--enable-source-maps"
109
+ ];
108
110
  if (options.nodeInspectFlag) {
109
- runtimeFlags.push("--enable-source-maps", options.nodeInspectFlag);
111
+ runtimeFlags.push(options.nodeInspectFlag);
110
112
  }
111
- const runtimePrefix = runtimeFlags.length > 0 ? `${runtimeFlags.join(" ")} ` : "";
112
- return spawnCommand(`node ${runtimePrefix}dist/main.js`);
113
+ return spawnCommand(`node ${runtimeFlags.join(" ")} dist/main.js`);
113
114
  }
114
115
  __name(startAppProcess, "startAppProcess");
115
116
  function killProcess(child) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runDevCommand,
3
3
  runNestBuild
4
- } from "./chunk-SANGUZFY.mjs";
4
+ } from "./chunk-UJSLYJ7L.mjs";
5
5
  import "./chunk-C43NFQYC.mjs";
6
6
  import "./chunk-BAUM5HSG.mjs";
7
7
  import "./chunk-O6YSETKJ.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/bff-app",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "bin": {
5
5
  "xfe-bff": "./bin/index.js"
6
6
  },
@@ -36,9 +36,10 @@
36
36
  "yaml": "^2.3.4"
37
37
  },
38
38
  "devDependencies": {
39
+ "@types/jest": "^30.0.0",
39
40
  "@types/node": "^20.17.0",
40
41
  "eslint": "8.57.1",
41
- "@xfe-repo/typescript-config": "1.6.0",
42
+ "@xfe-repo/typescript-config": "1.6.1",
42
43
  "@xfe-repo/eslint-config": "1.6.0"
43
44
  },
44
45
  "peerDependencies": {},
package/tsconfig.json CHANGED
@@ -1,7 +1,4 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
2
  "extends": "@xfe-repo/typescript-config/nestjs.json",
4
- "compilerOptions": {
5
- },
6
3
  "exclude": ["node_modules", "dist"]
7
- }
4
+ }