@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 +1 -0
- package/dist/cli.js +7 -5
- package/dist/cli.mjs +7 -5
- package/dist/config.js +1 -1
- package/dist/config.mjs +1 -1
- package/eslint.config.mjs +3 -0
- package/package.json +8 -7
- package/.eslintrc.js +0 -12
- package/dist/{chunk-IVNM4GL4.mjs → chunk-7MBWBSGL.mjs} +1 -1
package/deploy/.drone.yml
CHANGED
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
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/bff-app",
|
|
3
|
-
"version": "1.0
|
|
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
|
-
".
|
|
14
|
+
"eslint.config.mjs"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@eslint/eslintrc": "^3.3.3",
|
|
18
|
-
"@eslint/js": "^
|
|
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": "^
|
|
40
|
-
"
|
|
41
|
-
"@xfe-repo/
|
|
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
|
@@ -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";
|