@vc-shell/api-client-generator 1.1.99-alpha.2 → 1.1.99-alpha.4

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.
@@ -4,8 +4,8 @@ import { resolveConfig as L } from "vite";
4
4
  import { existsSync as T, mkdirSync as R, writeFileSync as v, readFileSync as j } from "node:fs";
5
5
  import y, { dirname as M, resolve as O, join as x, relative as I } from "node:path";
6
6
  import { fileURLToPath as U } from "node:url";
7
- import { cwd as F } from "node:process";
8
- import $ from "mri";
7
+ import { cwd as $ } from "node:process";
8
+ import F from "mri";
9
9
  const V = U(import.meta.url), G = M(V);
10
10
  class K {
11
11
  workingDirectory;
@@ -14,7 +14,7 @@ class K {
14
14
  apiClientDirectory;
15
15
  nswagPaths;
16
16
  constructor(r) {
17
- this.workingDirectory = F(), this.generatorDirectory = O(G, ".."), this.assetsDirectory = x(this.generatorDirectory, "public", "assets"), this.apiClientDirectory = O(this.workingDirectory, r), this.nswagPaths = {
17
+ this.workingDirectory = $(), this.generatorDirectory = O(G, ".."), this.assetsDirectory = x(this.generatorDirectory, "public", "assets"), this.apiClientDirectory = O(this.workingDirectory, r), this.nswagPaths = {
18
18
  configuration: x(I(this.workingDirectory, this.assetsDirectory), "config.nswag"),
19
19
  authApiBase: "authApiBase.ts",
20
20
  templates: "templates"
@@ -292,7 +292,7 @@ function W(t, r, i) {
292
292
  async function z() {
293
293
  try {
294
294
  await L({}, "build");
295
- const t = $(process.argv.slice(2)), r = process.env.APP_PLATFORM_URL ?? t.APP_PLATFORM_URL, i = process.env.APP_PLATFORM_MODULES ?? t.APP_PLATFORM_MODULES, o = process.env.APP_API_CLIENT_DIRECTORY ?? t.APP_API_CLIENT_DIRECTORY, l = process.env.APP_PACKAGE_NAME ?? t.APP_PACKAGE_NAME, c = process.env.APP_PACKAGE_VERSION ?? t.APP_PACKAGE_VERSION, u = process.env.APP_OUT_DIR ?? t.APP_OUT_DIR ?? "./", n = process.env.APP_BUILD_DIR ?? t.APP_BUILD_DIR ?? "dist", P = process.env.RUNTIME ?? t.RUNTIME ?? "Net80", f = process.env.SKIP_BUILD === "true" || t.SKIP_BUILD === !0, s = process.env.VERBOSE === "true" || t.VERBOSE === !0, h = process.env.APP_TYPE_STYLE ?? t.APP_TYPE_STYLE ?? "Class";
295
+ const t = F(process.argv.slice(2)), r = process.env.APP_PLATFORM_URL ?? t.APP_PLATFORM_URL, i = process.env.APP_PLATFORM_MODULES ?? t.APP_PLATFORM_MODULES, o = process.env.APP_API_CLIENT_DIRECTORY ?? t.APP_API_CLIENT_DIRECTORY, l = process.env.APP_PACKAGE_NAME ?? t.APP_PACKAGE_NAME, c = process.env.APP_PACKAGE_VERSION ?? t.APP_PACKAGE_VERSION, u = process.env.APP_OUT_DIR ?? t.APP_OUT_DIR ?? "./", n = process.env.APP_BUILD_DIR ?? t.APP_BUILD_DIR ?? "dist", P = process.env.RUNTIME ?? t.RUNTIME ?? "Net80", f = process.env.SKIP_BUILD === "true" || t.SKIP_BUILD === !0, s = process.env.VERBOSE === "true" || t.VERBOSE === !0, h = process.env.APP_TYPE_STYLE ?? t.APP_TYPE_STYLE ?? "Class";
296
296
  h !== "Class" && h !== "Interface" && (console.error(
297
297
  "api-client-generator %s Invalid APP_TYPE_STYLE value: %s. Must be either 'Class' or 'Interface'",
298
298
  e.red("error"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vc-shell/api-client-generator",
3
3
  "description": "Tool for API clients generation",
4
- "version": "1.1.99-alpha.2",
4
+ "version": "1.1.99-alpha.4",
5
5
  "type": "module",
6
6
  "bin": "./dist/api-client-generator.js",
7
7
  "files": [
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/cross-spawn": "^6.0.6",
16
- "@vc-shell/ts-config": "1.1.99-alpha.2",
16
+ "@vc-shell/ts-config": "1.1.99-alpha.4",
17
17
  "typescript": "^5.8.3"
18
18
  },
19
19
  "dependencies": {
@@ -30,5 +30,5 @@
30
30
  },
31
31
  "stableVersion": "1.1.90",
32
32
  "npmTag": "alpha",
33
- "gitHead": "600130c2990298afce79325b440f745160a1e4bf"
33
+ "gitHead": "4b882a63a2933adfbfc229d9d7ef89c269f4e651"
34
34
  }