@darraghor/nest-backend-libs 2.8.0 → 2.9.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.
|
@@ -3,6 +3,7 @@ import * as yargs from "yargs";
|
|
|
3
3
|
* Generates a new migration file with sql needs to be executed to update schema.
|
|
4
4
|
*/
|
|
5
5
|
type ArgumentsType = {
|
|
6
|
+
o: string;
|
|
6
7
|
fePath: string;
|
|
7
8
|
itPath: string;
|
|
8
9
|
packageName: string;
|
|
@@ -11,6 +12,8 @@ export declare class WriteApiClientCommand implements yargs.CommandModule<Argume
|
|
|
11
12
|
command: string;
|
|
12
13
|
describe: string;
|
|
13
14
|
builder(args: yargs.Argv): yargs.Argv<{
|
|
15
|
+
o: string;
|
|
16
|
+
} & {
|
|
14
17
|
fePath: string;
|
|
15
18
|
} & {
|
|
16
19
|
itPath: string;
|
|
@@ -8,6 +8,11 @@ export class WriteApiClientCommand {
|
|
|
8
8
|
// eslint-disable-next-line unicorn/prevent-abbreviations
|
|
9
9
|
builder(args) {
|
|
10
10
|
return args
|
|
11
|
+
.option("o", {
|
|
12
|
+
type: "string",
|
|
13
|
+
default: "../../libs/shared-api-client",
|
|
14
|
+
describe: "The output directory for the generated client.",
|
|
15
|
+
})
|
|
11
16
|
.option("fePath", {
|
|
12
17
|
type: "string",
|
|
13
18
|
default: "../../apps/frontend",
|
|
@@ -29,7 +34,12 @@ export class WriteApiClientCommand {
|
|
|
29
34
|
args) {
|
|
30
35
|
// call the script
|
|
31
36
|
const execPromise = util.promisify(exec);
|
|
32
|
-
const commandArguments = [
|
|
37
|
+
const commandArguments = [
|
|
38
|
+
args.o,
|
|
39
|
+
args.fePath,
|
|
40
|
+
args.itPath,
|
|
41
|
+
args.packageName,
|
|
42
|
+
];
|
|
33
43
|
// if i ever use modules later
|
|
34
44
|
// const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
35
45
|
const scriptPath = path.join(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,gDAAgD;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,gDAAgD;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAaxB,MAAM,OAAO,qBAAqB;IAG9B,OAAO,GAAG,kBAAkB,CAAC;IAC7B,QAAQ,GACJ,qFAAqF,CAAC;IAE1F,yDAAyD;IACzD,OAAO,CAAC,IAAgB;QACpB,OAAO,IAAI;aACN,MAAM,CAAC,GAAG,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,8BAA8B;YACvC,QAAQ,EAAE,gDAAgD;SAC7D,CAAC;aACD,MAAM,CAAC,QAAQ,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,qBAAqB;YAC9B,QAAQ,EAAE,wCAAwC;SACrD,CAAC;aACD,MAAM,CAAC,QAAQ,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAwB;YACjC,QAAQ,EAAE,gDAAgD;SAC7D,CAAC;aACD,MAAM,CAAC,aAAa,EAAE;YACnB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,mCAAmC;SAChD,CAAC,CAAC;IACX,CAAC;IAED,KAAK,CAAC,OAAO;IACT,yDAAyD;IACzD,IAA6C;QAE7C,kBAAkB;QAElB,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,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