@xfe-repo/bff-app 1.0.11 → 1.5.0

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.
package/deploy/.drone.yml CHANGED
@@ -1,3 +1,4 @@
1
+ # 此文件为 @xfe-repo 中的 bff-app 项目的部署文件 此处为副本 请勿修改
1
2
  kind: pipeline
2
3
  type: kubernetes
3
4
  name: deploy
package/dist/cli.js CHANGED
@@ -24,12 +24,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  ));
25
25
 
26
26
  // src/cli.ts
27
- var import_minimist = __toESM(require("minimist"));
28
27
  var import_child_process = require("child_process");
28
+ var import_minimist = __toESM(require("minimist"));
29
29
 
30
30
  // src/config.ts
31
- var import_path = __toESM(require("path"));
32
31
  var import_fs = __toESM(require("fs"));
32
+ var import_path = __toESM(require("path"));
33
33
  var import_yaml = __toESM(require("yaml"));
34
34
  var loadXfeConfig = /* @__PURE__ */ __name(() => {
35
35
  const xfeConfigPath = "./xfe.json";
@@ -77,7 +77,7 @@ var { _: commands, ...args } = argv;
77
77
  var [command] = commands;
78
78
  var env = process.env;
79
79
  var argsString = Object.entries(args).map(([key, value]) => `--${key}=${value}`).join(" ");
80
- async function main() {
80
+ function main() {
81
81
  if (command === "dev") {
82
82
  (0, import_child_process.execSync)(`nest start --watch ${argsString}`, {
83
83
  stdio: "inherit",
@@ -93,7 +93,9 @@ async function main() {
93
93
  }
94
94
  }
95
95
  __name(main, "main");
96
- main().catch((err) => {
96
+ try {
97
+ main();
98
+ } catch (err) {
97
99
  console.error("XFE Mini CLI \u6267\u884C\u51FA\u9519:", err);
98
100
  process.exit(1);
99
- });
101
+ }
package/dist/cli.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  __name,
3
3
  configDeploy
4
- } from "./chunk-IVNM4GL4.mjs";
4
+ } from "./chunk-7MBWBSGL.mjs";
5
5
 
6
6
  // src/cli.ts
7
- import minimist from "minimist";
8
7
  import { execSync } from "child_process";
8
+ import minimist from "minimist";
9
9
  var argv = minimist(process.argv.slice(2));
10
10
  var { _: commands, ...args } = argv;
11
11
  var [command] = commands;
12
12
  var env = process.env;
13
13
  var argsString = Object.entries(args).map(([key, value]) => `--${key}=${value}`).join(" ");
14
- async function main() {
14
+ function main() {
15
15
  if (command === "dev") {
16
16
  execSync(`nest start --watch ${argsString}`, {
17
17
  stdio: "inherit",
@@ -27,7 +27,9 @@ async function main() {
27
27
  }
28
28
  }
29
29
  __name(main, "main");
30
- main().catch((err) => {
30
+ try {
31
+ main();
32
+ } catch (err) {
31
33
  console.error("XFE Mini CLI \u6267\u884C\u51FA\u9519:", err);
32
34
  process.exit(1);
33
- });
35
+ }
package/dist/config.js CHANGED
@@ -35,8 +35,8 @@ __export(config_exports, {
35
35
  loadXfeConfig: () => loadXfeConfig
36
36
  });
37
37
  module.exports = __toCommonJS(config_exports);
38
- var import_path = __toESM(require("path"));
39
38
  var import_fs = __toESM(require("fs"));
39
+ var import_path = __toESM(require("path"));
40
40
  var import_yaml = __toESM(require("yaml"));
41
41
  var loadXfeConfig = /* @__PURE__ */ __name(() => {
42
42
  const xfeConfigPath = "./xfe.json";
package/dist/config.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  configDeploy,
3
3
  loadXfeConfig
4
- } from "./chunk-IVNM4GL4.mjs";
4
+ } from "./chunk-7MBWBSGL.mjs";
5
5
  export {
6
6
  configDeploy,
7
7
  loadXfeConfig
@@ -0,0 +1,3 @@
1
+ import { createNestjsConfig } from '@xfe-repo/eslint-config/nestjs.mjs'
2
+
3
+ export default createNestjsConfig(import.meta.dirname)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/bff-app",
3
- "version": "1.0.11",
3
+ "version": "1.5.0",
4
4
  "bin": {
5
5
  "xfe-bff": "./bin/index.js"
6
6
  },
@@ -11,11 +11,11 @@
11
11
  "deploy",
12
12
  "babel.config.js",
13
13
  "tsconfig.json",
14
- ".eslintrc.js"
14
+ "eslint.config.mjs"
15
15
  ],
16
16
  "dependencies": {
17
17
  "@eslint/eslintrc": "^3.3.3",
18
- "@eslint/js": "^9.39.2",
18
+ "@eslint/js": "^8.57.1",
19
19
  "@nestjs/cli": "11.0.16",
20
20
  "@nestjs/schematics": "11.0.9",
21
21
  "@nestjs/testing": "11.1.13",
@@ -36,9 +36,10 @@
36
36
  "yaml": "^2.3.4"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^25.0.10",
40
- "@xfe-repo/eslint-config": "0.0.5",
41
- "@xfe-repo/typescript-config": "0.0.7"
39
+ "@types/node": "^20.17.0",
40
+ "eslint": "8.57.1",
41
+ "@xfe-repo/eslint-config": "1.5.0",
42
+ "@xfe-repo/typescript-config": "1.5.0"
42
43
  },
43
44
  "peerDependencies": {},
44
45
  "publishConfig": {
@@ -47,7 +48,7 @@
47
48
  "scripts": {
48
49
  "build": "tsup",
49
50
  "dev": "tsup --watch",
50
- "lint": "eslint \"src/**/*.ts*\"",
51
+ "lint": "eslint \"src/**/*.ts*\" --fix",
51
52
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
52
53
  }
53
54
  }
package/.eslintrc.js DELETED
@@ -1,12 +0,0 @@
1
- /** @type {import("eslint").Linter.Config} */
2
- module.exports = {
3
- root: true,
4
- extends: ['@xfe-repo/eslint-config/turbo.js'],
5
- env: {
6
- browser: true,
7
- node: true,
8
- },
9
- parserOptions: {
10
- project: './tsconfig.json',
11
- },
12
- }
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
4
  // src/config.ts
5
- import path from "path";
6
5
  import fs from "fs";
6
+ import path from "path";
7
7
  import yaml from "yaml";
8
8
  var loadXfeConfig = /* @__PURE__ */ __name(() => {
9
9
  const xfeConfigPath = "./xfe.json";