@vc-shell/api-client-generator 1.1.28 → 1.1.30

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [1.1.30](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.29...v1.1.30) (2025-06-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **api-client-generator:** update import and types path construction for core modules to use path.join for improved path handling ([1d730a1](https://github.com/VirtoCommerce/vc-shell/commit/1d730a19c7c4aa4a309354875d34ba2e8fc3d335))
7
+
8
+
9
+
10
+ ## [1.1.29](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.28...v1.1.29) (2025-06-05)
11
+
12
+
13
+
1
14
  ## [1.1.28](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.27...v1.1.28) (2025-06-04)
2
15
 
3
16
 
@@ -1,20 +1,20 @@
1
1
  import t from "chalk";
2
2
  import { sync as E } from "cross-spawn";
3
- import { resolveConfig as T } from "vite";
4
- import { existsSync as _, mkdirSync as I, writeFileSync as B, readFileSync as D } from "node:fs";
5
- import y, { dirname as S, resolve as R, join as w, relative as x } from "node:path";
6
- import { fileURLToPath as j } from "node:url";
3
+ import { resolveConfig as O } from "vite";
4
+ import { existsSync as _, mkdirSync as B, writeFileSync as I, readFileSync as D } from "node:fs";
5
+ import m, { dirname as T, resolve as R, join as w, relative as x } from "node:path";
6
+ import { fileURLToPath as S } from "node:url";
7
7
  import { cwd as k } from "node:process";
8
8
  import L from "mri";
9
- const b = j(import.meta.url), F = S(b);
10
- class $ {
9
+ const b = S(import.meta.url), $ = T(b);
10
+ class v {
11
11
  workingDirectory;
12
12
  generatorDirectory;
13
13
  assetsDirectory;
14
14
  apiClientDirectory;
15
15
  nswagPaths;
16
16
  constructor(e) {
17
- this.workingDirectory = k(), this.generatorDirectory = R(F, ".."), this.assetsDirectory = w(this.generatorDirectory, "public", "assets"), this.apiClientDirectory = R(this.workingDirectory, e), this.nswagPaths = {
17
+ this.workingDirectory = k(), this.generatorDirectory = R($, ".."), this.assetsDirectory = w(this.generatorDirectory, "public", "assets"), this.apiClientDirectory = R(this.workingDirectory, e), this.nswagPaths = {
18
18
  configuration: w(x(this.workingDirectory, this.assetsDirectory), "config.nswag"),
19
19
  authApiBase: "authApiBase.ts",
20
20
  templates: "templates"
@@ -29,22 +29,22 @@ class $ {
29
29
  };
30
30
  }
31
31
  }
32
- function O(o, e, p = []) {
32
+ function j(o, e, p = []) {
33
33
  const r = { ...o };
34
34
  for (const a of p)
35
35
  a in e && (r[a] = e[a]);
36
36
  for (const [a, s] of Object.entries(e)) {
37
- const c = a;
38
- a in r && typeof r[c] == "object" && !Array.isArray(r[c]) && typeof s == "object" && !Array.isArray(s) && s !== null ? r[c] = { ...r[c], ...s } : p.includes(a) || (r[c] = s);
37
+ const l = a;
38
+ a in r && typeof r[l] == "object" && !Array.isArray(r[l]) && typeof s == "object" && !Array.isArray(s) && s !== null ? r[l] = { ...r[l], ...s } : p.includes(a) || (r[l] = s);
39
39
  }
40
40
  return r;
41
41
  }
42
- function v(o, e, p, r) {
42
+ function F(o, e, p, r) {
43
43
  const a = {
44
44
  extends: "@vc-shell/ts-config/tsconfig.json",
45
45
  compilerOptions: {
46
46
  baseUrl: ".",
47
- declarationDir: y.join(p, "types"),
47
+ declarationDir: m.join(p, "types"),
48
48
  outDir: r,
49
49
  rootDir: "./"
50
50
  },
@@ -54,13 +54,13 @@ function v(o, e, p, r) {
54
54
  let s = { ...a };
55
55
  if (_(o))
56
56
  try {
57
- const c = D(o, "utf-8");
57
+ const l = D(o, "utf-8");
58
58
  try {
59
- const n = JSON.parse(c);
60
- s = O(a, n), n.compilerOptions && typeof n.compilerOptions == "object" && (s.compilerOptions = {
59
+ const n = JSON.parse(l);
60
+ s = j(a, n), n.compilerOptions && typeof n.compilerOptions == "object" && (s.compilerOptions = {
61
61
  ...a.compilerOptions,
62
62
  ...n.compilerOptions
63
- }, s.compilerOptions.outDir = r, s.compilerOptions.declarationDir = y.join(r, "types"));
63
+ }, s.compilerOptions.outDir = r, s.compilerOptions.declarationDir = m.join(r, "types"));
64
64
  const h = Array.isArray(n.files) ? n.files : [];
65
65
  s.files = Array.from(/* @__PURE__ */ new Set([...e, ...h])), console.log("api-client-generator %s Updated existing tsconfig.json", t.greenBright("success"));
66
66
  } catch (n) {
@@ -70,8 +70,8 @@ function v(o, e, p, r) {
70
70
  n
71
71
  ), s = { ...a }, s.files = e;
72
72
  }
73
- } catch (c) {
74
- console.error("api-client-generator %s Failed to read existing tsconfig.json", t.red("error"), c);
73
+ } catch (l) {
74
+ console.error("api-client-generator %s Failed to read existing tsconfig.json", t.red("error"), l);
75
75
  }
76
76
  else
77
77
  s.files = e, console.log("api-client-generator %s Created new tsconfig.json", t.greenBright("success"));
@@ -89,37 +89,37 @@ function A(o) {
89
89
  break;
90
90
  }
91
91
  } while (r);
92
- return e = e.replace(/\/\.\//g, "/"), e = e.replace(/\/+/g, "/"), e = e.replace(/\.\.\//g, ""), e !== "." && !e.startsWith("./") && !e.startsWith("/") && !y.isAbsolute(e) && (e = "./" + e), e.startsWith("//") && (e = "./" + e.substring(2)), e !== "." && e.startsWith("/") && !e.startsWith("./") && !y.isAbsolute(e) && (e = "." + e), e !== "." && e.startsWith("././") && (e = "./" + e.substring(3)), e;
92
+ return e = e.replace(/\/\.\//g, "/"), e = e.replace(/\/+/g, "/"), e = e.replace(/\.\.\//g, ""), e !== "." && !e.startsWith("./") && !e.startsWith("/") && !m.isAbsolute(e) && (e = "./" + e), e.startsWith("//") && (e = "./" + e.substring(2)), e !== "." && e.startsWith("/") && !e.startsWith("./") && !m.isAbsolute(e) && (e = "." + e), e !== "." && e.startsWith("././") && (e = "./" + e.substring(3)), e;
93
93
  }
94
94
  function P(o) {
95
95
  let e = A(o);
96
- return e = y.basename(e), e = e.replace(/^virtocommerce\./i, ""), e.toLowerCase();
96
+ return e = m.basename(e), e = e.replace(/^virtocommerce\./i, ""), e.toLowerCase();
97
97
  }
98
98
  function M(o) {
99
99
  return o ? [`./${o}`, `./virtocommerce.${o}`] : [];
100
100
  }
101
- function U(o, e, p, r) {
101
+ function N(o, e, p, r) {
102
102
  const a = {}, s = /* @__PURE__ */ new Set();
103
103
  for (const i of o) {
104
- const l = P(i);
105
- if (!l) continue;
106
- const g = `virtocommerce.${l}`, d = `./${e}/${g}.js`, m = `./${e}/types/${g}.d.ts`, f = { import: d, types: m }, u = M(l);
104
+ const c = P(i);
105
+ if (!c) continue;
106
+ const f = `virtocommerce.${c}`, g = `./${m.join(e, `${f}.js`)}`, y = `./${m.join(e, "types", `${f}.d.ts`)}`, d = { import: g, types: y }, u = M(c);
107
107
  for (const C of u)
108
- a[C] = f, r && console.log(
108
+ a[C] = d, r && console.log(
109
109
  "api-client-generator %s Generated standard export: %s -> { import: %s, types: %s }",
110
110
  t.blue("debug"),
111
111
  t.whiteBright(C),
112
- t.whiteBright(d),
113
- t.whiteBright(m)
112
+ t.whiteBright(g),
113
+ t.whiteBright(y)
114
114
  );
115
- s.add(l);
115
+ s.add(c);
116
116
  }
117
- const c = { ...a };
117
+ const l = { ...a };
118
118
  if (p)
119
- for (const [i, l] of Object.entries(p)) {
119
+ for (const [i, c] of Object.entries(p)) {
120
120
  if (i === ".")
121
121
  continue;
122
- if (typeof l != "object" || l === null) {
122
+ if (typeof c != "object" || c === null) {
123
123
  r && console.log(
124
124
  "api-client-generator %s Skipping malformed existing export value for key: %s",
125
125
  t.yellow("warning"),
@@ -127,8 +127,8 @@ function U(o, e, p, r) {
127
127
  );
128
128
  continue;
129
129
  }
130
- const g = l;
131
- if (!g.import || !g.types) {
130
+ const f = c;
131
+ if (!f.import || !f.types) {
132
132
  r && console.log(
133
133
  "api-client-generator %s Skipping existing export with missing import/types for key: %s",
134
134
  t.yellow("warning"),
@@ -136,74 +136,74 @@ function U(o, e, p, r) {
136
136
  );
137
137
  continue;
138
138
  }
139
- const d = A(i);
140
- if (!(!d || d === "."))
141
- if (P(d), d in a)
139
+ const g = A(i);
140
+ if (!(!g || g === "."))
141
+ if (P(g), g in a)
142
142
  r && console.log(
143
143
  "api-client-generator %s Existing export key '%s' was handled by new generation.",
144
144
  t.blue("debug"),
145
- t.whiteBright(d)
145
+ t.whiteBright(g)
146
146
  );
147
147
  else {
148
- const m = A(g.import), f = A(g.types);
149
- c[d] = {
150
- import: `${m}.js`,
151
- types: `${f}.d.ts`
148
+ const y = A(f.import), d = A(f.types);
149
+ l[g] = {
150
+ import: `${y}.js`,
151
+ types: `${d}.d.ts`
152
152
  }, r && console.log(
153
153
  "api-client-generator %s Preserved existing export: %s -> { import: %s, types: %s }",
154
154
  t.blue("debug"),
155
- t.whiteBright(d),
156
- t.whiteBright(`${m}.js`),
157
- t.whiteBright(`${f}.d.ts`)
155
+ t.whiteBright(g),
156
+ t.whiteBright(`${y}.js`),
157
+ t.whiteBright(`${d}.d.ts`)
158
158
  );
159
159
  }
160
160
  }
161
161
  const n = /* @__PURE__ */ new Set();
162
- for (const i in c) {
162
+ for (const i in l) {
163
163
  if (i === ".") continue;
164
- const l = P(i);
165
- l && n.add(l);
164
+ const c = P(i);
165
+ c && n.add(c);
166
166
  }
167
167
  const h = Array.from(n);
168
168
  if (h.length === 1) {
169
- const i = h[0], l = `./${e}/${i}.js`, g = `./${e}/types/${i}.d.ts`;
170
- c["."] = {
171
- import: l,
169
+ const i = h[0], c = `virtocommerce.${i}`, f = `./${m.join(e, `${c}.js`)}`, g = `./${m.join(e, "types", `${c}.d.ts`)}`;
170
+ l["."] = {
171
+ import: f,
172
172
  types: g
173
173
  }, r && console.log(
174
174
  "api-client-generator %s Set root export for single module '%s': { import: %s, types: %s }",
175
175
  t.blue("debug"),
176
176
  t.whiteBright(i),
177
- t.whiteBright(l),
177
+ t.whiteBright(f),
178
178
  t.whiteBright(g)
179
179
  );
180
180
  } else if (p && "." in p) {
181
181
  const i = p["."];
182
182
  if (typeof i == "object" && i !== null) {
183
- const l = i;
184
- if (l.import && l.types) {
185
- const g = P(l.import);
186
- if (g && h.includes(g)) {
187
- const d = `./${e}/${g}.js`, m = `./${e}/types/${g}.d.ts`;
188
- c["."] = { import: d, types: m }, r && console.log(
183
+ const c = i;
184
+ if (c.import && c.types) {
185
+ const f = P(c.import);
186
+ if (f && h.includes(f)) {
187
+ const g = `virtocommerce.${f}`, y = `./${m.join(e, `${g}.js`)}`, d = `./${m.join(e, "types", `${g}.d.ts`)}`;
188
+ l["."] = { import: y, types: d }, r && console.log(
189
189
  "api-client-generator %s Preserved and standardized existing root export pointing to module '%s'",
190
190
  t.blue("debug"),
191
- t.whiteBright(g)
191
+ t.whiteBright(f)
192
192
  );
193
193
  } else r && console.log(
194
194
  "api-client-generator %s Removed existing root export as it pointed to an unknown or unhandled module '%s'",
195
195
  t.yellow("warning"),
196
- g || "unknown"
196
+ f || "unknown"
197
197
  );
198
198
  } else r && console.log("api-client-generator %s Removed malformed existing root export.", t.yellow("warning"));
199
199
  }
200
200
  }
201
- return c;
201
+ return l;
202
202
  }
203
- function N(o, e, p) {
203
+ function U(o, e, p) {
204
204
  const r = p.VERBOSE ?? !1, a = p.APP_BUILD_DIR ?? "dist", s = [];
205
205
  a && s.push(a), s.push("package.json");
206
- const c = {
206
+ const l = {
207
207
  name: p.APP_PACKAGE_NAME || "api-client",
208
208
  version: p.APP_PACKAGE_VERSION || "1.0.0",
209
209
  files: s,
@@ -214,13 +214,13 @@ function N(o, e, p) {
214
214
  generatedAt: (/* @__PURE__ */ new Date()).toISOString()
215
215
  }
216
216
  };
217
- let n = { ...c }, h, i, l;
217
+ let n = { ...l }, h, i, c;
218
218
  if (_(o))
219
219
  try {
220
- const f = D(o, "utf-8");
220
+ const d = D(o, "utf-8");
221
221
  try {
222
- const u = JSON.parse(f);
223
- typeof u.module == "string" && (i = u.module), typeof u.types == "string" && (l = u.types), n = O(c, u, [
222
+ const u = JSON.parse(d);
223
+ typeof u.module == "string" && (i = u.module), typeof u.types == "string" && (c = u.types), n = j(l, u, [
224
224
  "name",
225
225
  "version",
226
226
  "description",
@@ -231,7 +231,7 @@ function N(o, e, p) {
231
231
  "scripts",
232
232
  "devDependencies",
233
233
  "dependencies"
234
- ]), n.apiClientGenerator = c.apiClientGenerator, u.files && Array.isArray(u.files) && (n.files = Array.from(/* @__PURE__ */ new Set([...s, ...u.files]))), h = u.exports, console.log("api-client-generator %s Updated existing package.json", t.greenBright("success"));
234
+ ]), n.apiClientGenerator = l.apiClientGenerator, u.files && Array.isArray(u.files) && (n.files = Array.from(/* @__PURE__ */ new Set([...s, ...u.files]))), h = u.exports, console.log("api-client-generator %s Updated existing package.json", t.greenBright("success"));
235
235
  } catch (u) {
236
236
  console.error(
237
237
  "api-client-generator %s Failed to parse existing package.json, creating new one",
@@ -239,35 +239,35 @@ function N(o, e, p) {
239
239
  u
240
240
  );
241
241
  }
242
- } catch (f) {
243
- console.error("api-client-generator %s Failed to read existing package.json", t.red("error"), f);
242
+ } catch (d) {
243
+ console.error("api-client-generator %s Failed to read existing package.json", t.red("error"), d);
244
244
  }
245
245
  else
246
246
  console.log("api-client-generator %s Creating new package.json", t.greenBright("success"));
247
- n.exports = U(e, a, h, r);
248
- const g = Object.keys(n.exports), d = /* @__PURE__ */ new Set();
249
- for (const f of g) {
250
- if (f === ".") continue;
251
- const u = P(f);
252
- u && d.add(u);
247
+ n.exports = N(e, a, h, r);
248
+ const f = Object.keys(n.exports), g = /* @__PURE__ */ new Set();
249
+ for (const d of f) {
250
+ if (d === ".") continue;
251
+ const u = P(d);
252
+ u && g.add(u);
253
253
  }
254
- if (Array.from(d).length, n.exports && "." in n.exports) {
255
- const f = n.exports["."];
256
- f && f.import && (n.module = f.import, r && console.log(
254
+ if (Array.from(g).length, n.exports && "." in n.exports) {
255
+ const d = n.exports["."];
256
+ d && d.import && (n.module = d.import, r && console.log(
257
257
  "api-client-generator %s Set 'module' field from root export: %s",
258
258
  t.blue("debug"),
259
- t.whiteBright(f.import)
260
- )), f && f.types && (n.types = f.types, r && console.log(
259
+ t.whiteBright(d.import)
260
+ )), d && d.types && (n.types = d.types, r && console.log(
261
261
  "api-client-generator %s Set 'types' field from root export: %s",
262
262
  t.blue("debug"),
263
- t.whiteBright(f.types)
263
+ t.whiteBright(d.types)
264
264
  ));
265
265
  } else
266
266
  "module" in n && (delete n.module, r && console.log("api-client-generator %s Removed 'module' field (no clear root export).", t.blue("debug"))), "types" in n && (delete n.types, r && console.log("api-client-generator %s Removed 'types' field (no clear root export).", t.blue("debug")));
267
267
  return n;
268
268
  }
269
269
  async function J() {
270
- await T({}, "build");
270
+ await O({}, "build");
271
271
  const o = L(process.argv.slice(2)), e = process.env.APP_PLATFORM_URL ?? o.APP_PLATFORM_URL, p = o.VERBOSE ?? !1;
272
272
  if (!e)
273
273
  return console.log(
@@ -278,10 +278,10 @@ async function J() {
278
278
  return console.log(t.red("error"), "api-client-generator modules command is required");
279
279
  if (!o.APP_API_CLIENT_DIRECTORY)
280
280
  return console.log(t.red("error"), "api-client-generator outDir command is required");
281
- const r = o.APP_OUT_DIR ?? "./", a = o.APP_BUILD_DIR ?? "dist", s = new $(o.APP_API_CLIENT_DIRECTORY);
281
+ const r = o.APP_OUT_DIR ?? "./", a = o.APP_BUILD_DIR ?? "dist", s = new v(o.APP_API_CLIENT_DIRECTORY);
282
282
  if (!_(o.APP_API_CLIENT_DIRECTORY))
283
283
  try {
284
- I(o.APP_API_CLIENT_DIRECTORY, { recursive: !0 }), console.log(
284
+ B(o.APP_API_CLIENT_DIRECTORY, { recursive: !0 }), console.log(
285
285
  "api-client-generator %s Created directory %s",
286
286
  t.greenBright("success"),
287
287
  t.whiteBright(o.APP_API_CLIENT_DIRECTORY)
@@ -295,58 +295,58 @@ async function J() {
295
295
  );
296
296
  return;
297
297
  }
298
- const c = y.join(o.APP_API_CLIENT_DIRECTORY, a);
299
- if (!_(c))
298
+ const l = m.join(o.APP_API_CLIENT_DIRECTORY, a);
299
+ if (!_(l))
300
300
  try {
301
- I(c, { recursive: !0 }), console.log(
301
+ B(l, { recursive: !0 }), console.log(
302
302
  "api-client-generator %s Created build directory %s",
303
303
  t.greenBright("success"),
304
- t.whiteBright(c)
304
+ t.whiteBright(l)
305
305
  );
306
306
  } catch (i) {
307
307
  console.error(
308
308
  "api-client-generator %s Failed to create build directory %s",
309
309
  t.red("error"),
310
- t.whiteBright(c),
310
+ t.whiteBright(l),
311
311
  i
312
312
  );
313
313
  }
314
314
  const n = o.APP_PLATFORM_MODULES.replace(/[[\]]/g, "").split(","), h = [];
315
315
  for (const i of n) {
316
- const l = s.resolveApiClientPaths(i);
316
+ const c = s.resolveApiClientPaths(i);
317
317
  console.log(
318
318
  "api-client-generator %s Generating API client for %s module on %s environment",
319
319
  t.green("info"),
320
320
  t.whiteBright(i),
321
321
  t.whiteBright(e)
322
322
  );
323
- const g = [
323
+ const f = [
324
324
  "run",
325
325
  s.nswagPaths.configuration,
326
- `/variables:APP_PLATFORM_URL=${e},APP_PLATFORM_MODULE=${i},APP_AUTH_API_BASE_PATH=${s.nswagPaths.authApiBase},APP_TEMPLATE_DIRECTORY=${s.nswagPaths.templates},APP_API_CLIENT_PATH=${l.nswag}`,
326
+ `/variables:APP_PLATFORM_URL=${e},APP_PLATFORM_MODULE=${i},APP_AUTH_API_BASE_PATH=${s.nswagPaths.authApiBase},APP_TEMPLATE_DIRECTORY=${s.nswagPaths.templates},APP_API_CLIENT_PATH=${c.nswag}`,
327
327
  "/runtime:Net60"
328
328
  ];
329
- p && console.log("api-client-generator %s Running command: npx nswag %s", t.blue("debug"), g.join(" ")), E("npx nswag", g, {
329
+ p && console.log("api-client-generator %s Running command: npx nswag %s", t.blue("debug"), f.join(" ")), E("npx nswag", f, {
330
330
  stdio: ["ignore", "inherit", "ignore"],
331
331
  shell: !0
332
332
  }).status === 0 ? (console.log(
333
333
  "api-client-generator %s Successfully generated %s",
334
334
  t.greenBright("success"),
335
- t.whiteBright(l.console)
335
+ t.whiteBright(c.console)
336
336
  ), o.SKIP_BUILD || h.push(`${i.toLowerCase()}.ts`)) : console.error(
337
337
  "api-client-generator %s Failed to generate %s",
338
338
  t.red("error"),
339
- t.whiteBright(l.console)
339
+ t.whiteBright(c.console)
340
340
  );
341
341
  }
342
342
  if (!o.SKIP_BUILD) {
343
- const i = y.join(o.APP_API_CLIENT_DIRECTORY, "tsconfig.json"), l = v(i, h, r, a);
344
- B(i, JSON.stringify(l, null, 2)), console.log("api-client-generator %s Compiling TypeScript files to JavaScript", t.green("info")), E("npx tsc", ["--project", i], {
343
+ const i = m.join(o.APP_API_CLIENT_DIRECTORY, "tsconfig.json"), c = F(i, h, r, a);
344
+ I(i, JSON.stringify(c, null, 2)), console.log("api-client-generator %s Compiling TypeScript files to JavaScript", t.green("info")), E("npx tsc", ["--project", i], {
345
345
  stdio: ["ignore", "inherit", "ignore"],
346
346
  shell: !0
347
347
  }).status === 0 ? console.log("api-client-generator %s Successfully compiled TypeScript files", t.greenBright("success")) : console.error("api-client-generator %s Failed to compile TypeScript files", t.red("error"));
348
- const d = y.join(o.APP_API_CLIENT_DIRECTORY, "package.json"), m = N(d, h, o);
349
- B(d, JSON.stringify(m, null, 2)), console.log("api-client-generator %s Generated package.json", t.greenBright("success"));
348
+ const g = m.join(o.APP_API_CLIENT_DIRECTORY, "package.json"), y = U(g, h, o);
349
+ I(g, JSON.stringify(y, null, 2)), console.log("api-client-generator %s Generated package.json", t.greenBright("success"));
350
350
  }
351
351
  }
352
352
  J();
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.28",
4
+ "version": "1.1.30",
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.28",
16
+ "@vc-shell/ts-config": "^1.1.30",
17
17
  "typescript": "^5.8.3"
18
18
  },
19
19
  "dependencies": {