@darraghor/nest-backend-libs 2.5.0 → 2.6.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.
|
@@ -7,6 +7,7 @@ exports.WriteApiClientCommand = void 0;
|
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
// eslint-disable-next-line unicorn/import-style
|
|
9
9
|
const util_1 = __importDefault(require("util"));
|
|
10
|
+
const path_1 = __importDefault(require("path"));
|
|
10
11
|
class WriteApiClientCommand {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.command = "api:write-client";
|
|
@@ -37,7 +38,12 @@ class WriteApiClientCommand {
|
|
|
37
38
|
// call the script
|
|
38
39
|
const execPromise = util_1.default.promisify(child_process_1.exec);
|
|
39
40
|
const commandArguments = [args.fePath, args.itPath, args.packageName];
|
|
40
|
-
|
|
41
|
+
// if i ever use modules later
|
|
42
|
+
// const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
43
|
+
const scriptPath = path_1.default.join(
|
|
44
|
+
// eslint-disable-next-line unicorn/prefer-module
|
|
45
|
+
__dirname, "../../open-api-generation/generate.sh");
|
|
46
|
+
const result = await execPromise(`${scriptPath} ${commandArguments.join(" ")}`);
|
|
41
47
|
console.log(result.stdout);
|
|
42
48
|
}
|
|
43
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":";;;;;;AAEA,iDAAmC;AACnC,gDAAgD;AAChD,gDAAwB;AAQxB,MAAa,qBAAqB;IAAlC;QAGI,YAAO,GAAG,kBAAkB,CAAC;QAC7B,aAAQ,GACJ,qFAAqF,CAAC;
|
|
1
|
+
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":";;;;;;AAEA,iDAAmC;AACnC,gDAAgD;AAChD,gDAAwB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