@arcgis/api-extractor 5.2.0-next.16 → 5.2.0-next.161

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.
@@ -58,9 +58,12 @@ export class ApiExtractor {
58
58
  run(): Promise<ApiExtractorResult>;
59
59
  /**
60
60
  * The high-level API for starting a watch-mode extraction on the current project.
61
+ *
61
62
  * When watching, double check that the configuration options the ApiExtractor
62
63
  * was created with are appropriate for watch mode (disable full type check
63
64
  * and type verifier if not necessary).
65
+ *
66
+ * Use [ApiExtractorConfig](https://developers.arcgis.com/javascript/latest/references/api-extractor/extractor/config/#ApiExtractorConfig-watch) to configure the watch callback to receive a reference to the api.json each time it is re-generated.
64
67
  */
65
68
  watch(): Promise<ApiExtractorWatcher>;
66
69
  }
@@ -1,9 +1,8 @@
1
- import "../typeScript-CotszjDS.js";
2
- import "../worker-Cracdkge.js";
3
- import "./processing/links.js";
1
+ import "../chunks/config.js";
2
+ import "../chunks/links.js";
4
3
  import "typescript";
5
- import { A as x } from "../ApiExtractor-1N5atT9H.js";
4
+ import { A as a } from "../chunks/ApiExtractor.js";
6
5
  import "@arcgis/toolkit/function";
7
6
  export {
8
- x as ApiExtractor
7
+ a as ApiExtractor
9
8
  };
@@ -1,9 +1,9 @@
1
1
  import type ts from "typescript";
2
- import type { PackageJson } from "@arcgis/components-build-utils";
2
+ import type { PackageJson } from "@arcgis/node-toolkit/packageJson";
3
3
  import type { CopyDocDefinitions } from "./extractors/copyDoc.js";
4
4
  import type { ApiExtractor } from "./ApiExtractor.js";
5
- import type { TypeScriptConfigResult } from "../vite/typeScript.js";
6
- import type { ApiModule } from "../apiJson.js";
5
+ import type { TypeScriptConfigResult } from "@arcgis/node-toolkit/vite/typeScript";
6
+ import type { ApiInterfaceDeclaration, ApiModule } from "../apiJson.js";
7
7
  import type { ApiExtractorResult } from "./types.js";
8
8
 
9
9
  export interface ApiExtractorConfig {
@@ -161,7 +161,7 @@ export interface ApiExtractorTypesConfig {
161
161
  * If doing full type check, typed extraction is practically free:
162
162
  *
163
163
  * ```log
164
- * [@arcgis/api-extractor] Type checked in 0.911s
164
+ * [typescript] Type checked in 0.911s
165
165
  * [@arcgis/api-extractor] Extracted 5 \@public files in 0.008s
166
166
  * ```
167
167
  *
@@ -215,7 +215,7 @@ export interface ApiExtractorTypesConfig {
215
215
  */
216
216
  readonly typeScriptConfigPath?: string;
217
217
  /**
218
- * A resolved config returned by [loadTypeScriptConfig()](https://developers.arcgis.com/javascript/latest/references/api-extractor/vite/typeScript/#loadTypeScriptConfig).
218
+ * A resolved config returned by \@arcgis/node-toolkit/vite/typeScript
219
219
  * Useful if you already resolved the config for other purposes and wish to
220
220
  * deduplicate the work.
221
221
  */
@@ -271,7 +271,7 @@ export interface DeclarationFile {
271
271
  *
272
272
  * @see https://devtopia.esri.com/WebGIS/arcgis-js-api/discussions/60843
273
273
  * @see https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/69911
274
- * @see https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/73395
274
+ * @see https://devtopia.esri.com/WebGIS/webgis-sdk/issues/20807
275
275
  */
276
276
  export type TypeReplacements = Record<string, Record<string, readonly [modulePath: string, name: string, type: "default" | "named"] | undefined> | undefined>;
277
277
 
@@ -379,6 +379,23 @@ export interface ApiExtractorVerifyConfig {
379
379
  * ```
380
380
  */
381
381
  filterTypeCheckDiagnostic?(diagnostic: ts.Diagnostic): boolean;
382
+ /**
383
+ * Return false to suppress an unreferenced exported type error when
384
+ * [ApiExtractorVerifyConfig](https://developers.arcgis.com/javascript/latest/references/api-extractor/extractor/config/#ApiExtractorVerifyConfig-typeCheckTypes) is enabled.
385
+ *
386
+ * Usually, types that are not referenced by any runtime API are a mistake.
387
+ * Use this option to suppress intentional cases or backwards compatibility
388
+ * cases.
389
+ *
390
+ * @param declaration - The unreferenced interface or type alias.
391
+ * @param module - The module containing the declaration.
392
+ * @example
393
+ * ```ts
394
+ * filterUnreferencedType: (declaration, module) =>
395
+ * !(module.path === "types" && declaration.name === "StandaloneType"),
396
+ * ```
397
+ */
398
+ filterUnreferencedType?(declaration: ApiInterfaceDeclaration, module: ApiModule): boolean;
382
399
  /**
383
400
  * @deprecated REFACTOR: Drop this flag in 5.1
384
401
  * @default false
@@ -1,18 +1,13 @@
1
- import "@arcgis/components-build-utils";
2
- import "../typeScript-CotszjDS.js";
3
- import { l as n, m as A, r as C } from "../worker-Cracdkge.js";
4
- import "./processing/links.js";
5
- import "typescript";
6
- import "fs/promises";
7
- import "node:util";
8
- import "@arcgis/toolkit/string";
9
- import "../utils/apiHelpers.js";
10
- import "@arcgis/toolkit/array";
1
+ import "@arcgis/node-toolkit/file";
2
+ import "@arcgis/node-toolkit/path";
3
+ import "@arcgis/node-toolkit/packageJson";
4
+ import "@arcgis/node-toolkit/vite/typeScript";
11
5
  import "@arcgis/toolkit/function";
12
- import "node:fs";
6
+ import { l as f, m as g, r as x } from "../chunks/config.js";
13
7
  import "node:url";
8
+ import "../chunks/links.js";
14
9
  export {
15
- n as loadApiExtractorConfig,
16
- A as mergeApiExtractorConfigs,
17
- C as resolveApiExtractorConfig
10
+ f as loadApiExtractorConfig,
11
+ g as mergeApiExtractorConfigs,
12
+ x as resolveApiExtractorConfig
18
13
  };
@@ -1,173 +1,14 @@
1
- import { styleText as C } from "node:util";
2
- import { emitJsDocError as a, getApiNodeLabel as w } from "../../utils/apiHelpers.js";
3
- import { g as y } from "../../privateContext-CB7P40up.js";
4
- import { kebabToPascal as I } from "@arcgis/toolkit/string";
5
- function W(e, n) {
6
- if (typeof e == "string") {
7
- const i = e.replaceAll(F, n.resolveJsDocLink).replaceAll(n.config.documentation.alternativeHost, n.config.documentation.host);
8
- return e.includes("](.") && a(P, e, n), i;
9
- }
10
- return e;
11
- }
12
- function j(e, n) {
13
- if (e) {
14
- const i = e.replaceAll(F, n.resolveJsDocLink).replaceAll(n.config.documentation.alternativeHost, n.config.documentation.host);
15
- return i.includes("](.") && a(P, i, n), i;
16
- }
17
- return e;
18
- }
19
- function J(e, n) {
20
- if (e !== void 0 && n.inheritedModuleName === void 0)
21
- for (let i = 0; i < e.length; ++i) {
22
- const d = e[i];
23
- d.text && (d.text = d.text.replaceAll(F, n.resolveJsDocLink).replaceAll(n.config.documentation.alternativeHost, n.config.documentation.host), d.text.includes("](.") && a(P, d.text, n));
24
- }
25
- }
26
- const P = "Unexpected relative markdown link. For links to API within the package use {@link}. For all other links, use absolute markdown. Documentation: https://webgis.esri.com/references/api-extractor/tags-reference#link)", F = /\{@link +([^}]+)\}/gu;
27
- function N(e, n, i) {
28
- let d = i.indexOf(" ");
29
- d === -1 && (d = i.length);
30
- const u = i.slice(0, d), m = i.slice(d + 1);
31
- if (u.startsWith("https://"))
32
- return e.config.strict ? (a(
33
- "Did not expect absolute URLs in a @link tag. Please use markdown links for external links. See https://webgis.esri.com/references/api-extractor/tags-reference#link)",
34
- n,
35
- e
36
- ), "") : `[${m || u}](${u})`;
37
- const [k, t] = u.split("#"), [f, L] = k.split("!");
38
- if (f === "")
39
- return a(
40
- `Expected @link reference to start with a module name (before ! or #), but got: ${u}`,
41
- n,
42
- e
43
- ), n;
44
- let g = e.moduleMap.get(f);
45
- if (g === void 0 && e.isComponentProject && !e.config.strict) {
46
- for (const r of e.moduleMap.values())
47
- if (y(r).index.class?.name === f) {
48
- g = r;
49
- break;
50
- }
51
- }
52
- if (g === void 0)
53
- return e.config.verify.detectBrokenLinks ? a(
54
- `Failed to find referenced module: ${C("red", f)}${f.startsWith("module:") ? '. Module name in @link does not need the "module:" prefix' : f.startsWith("esri/") ? '. Module name in @link does not need to start with the "esri/" prefix.' : ""}`,
55
- n,
56
- e
57
- ) : e.silencedBrokenLinkCount += 1, n;
58
- const v = y(g), D = e.inheritedModuleName === void 0 ? e.apiModule : e.moduleMap.get(e.inheritedModuleName) ?? e.apiModule;
59
- if (e.watchFiles !== void 0 && f !== D.path && y(D).isStale) {
60
- const r = y(D).file.fileName.slice(e.config.context.cwd.length), s = v.file.fileName.slice(e.config.context.cwd.length);
61
- e.watchFiles.get(r).docLinks.push(i), e.watchFiles.get(r).dependencies.add(s);
62
- const b = e.watchFiles.get(s).dependents;
63
- b.has(r) || b.set(r, !1);
64
- }
65
- let h = M(g.path, L, t, e);
66
- if (L !== void 0) {
67
- const r = v.index.named[L];
68
- return r === void 0 ? (e.config.verify.detectBrokenLinks ? a(
69
- `Failed to find the referenced declaration inside the module: ${C("red", `${f}!${L}`)}`,
70
- n,
71
- e
72
- ) : e.silencedBrokenLinkCount += 1, n) : r === v.index.class ? (a(
73
- `Invalid reference syntax used. Class/mixin/custom element declarations must be referenced without specifying the class name. Expected ${C("green", f)}`,
74
- n,
75
- e
76
- ), n) : `[${m || w(r)}](${h})`;
77
- } else if (t !== void 0) {
78
- const r = g.path === D.path, s = v.index.class;
79
- if (s === void 0)
80
- return v.index.named[t] === void 0 ? e.config.verify.detectBrokenLinks ? a(
81
- 'Failed to find the referenced member. Class member reference syntax was used, yet current module does not expose a class/mixin/custom element? Linking to properties in interfaces is not yet supported. For event links, prefix with "event-"',
82
- n,
83
- e
84
- ) : e.silencedBrokenLinkCount += 1 : a(
85
- `Invalid reference syntax used. This syntax is only permitted on modules that export a class/mixin/web component. Perhaps you meant to use ${C("red", `${f}!${t}`)} instead? Linking to properties in interfaces is not yet supported`,
86
- n,
87
- e
88
- ), n;
89
- const b = v.inheritance, p = typeof b == "object" ? b : void 0;
90
- let c;
91
- if (t.startsWith("event-")) {
92
- const o = t.slice(6);
93
- if (p !== void 0)
94
- c = p.indexedEvents?.[o];
95
- else if (s.events !== void 0)
96
- for (let l = 0; l < s.events.length; ++l) {
97
- const $ = s.events[l];
98
- if (o === $.name) {
99
- c = $;
100
- break;
101
- }
102
- }
103
- } else if (t.startsWith("slot-")) {
104
- const o = t.slice(5);
105
- if (p !== void 0)
106
- c = p.indexedSlots?.[o];
107
- else if (s.slots !== void 0)
108
- for (let l = 0; l < s.slots.length; ++l) {
109
- const $ = s.slots[l];
110
- if (o === $.name) {
111
- c = $;
112
- break;
113
- }
114
- }
115
- } else if (t.startsWith("--")) {
116
- if (p !== void 0)
117
- c = p.indexedCssProperties?.[t];
118
- else if (s.cssProperties !== void 0)
119
- for (let o = 0; o < s.cssProperties.length; ++o) {
120
- const l = s.cssProperties[o];
121
- if (t === l.name) {
122
- c = l;
123
- break;
124
- }
125
- }
126
- } else if (p?.indexedMembers !== void 0 && (c = p.indexedMembers[t] ?? p.indexedMembers[`static ${t}`]), c === void 0 && s.members !== void 0) {
127
- for (let o = 0; o < s.members.length; ++o) {
128
- const l = s.members[o];
129
- if (t === l.name) {
130
- c = l;
131
- break;
132
- }
133
- }
134
- if (c === void 0 && !e.config.strict && e.isComponentProject && s.events !== void 0)
135
- for (let o = 0; o < s.events.length; ++o) {
136
- const l = s.events[o];
137
- if (t === l.name) {
138
- c = l, h = h.replace("#", "#event-");
139
- break;
140
- }
141
- }
142
- }
143
- return c === void 0 ? (e.config.verify.detectBrokenLinks ? a("Failed to find the referenced class member", n, e) : e.silencedBrokenLinkCount += 1, n) : `[${m || (r ? w(c) : `${w(s)}.${w(c)}`)}](${h})`;
144
- } else {
145
- const r = v.index.class === void 0 ? U(f) : w(v.index.class);
146
- return `[${m || r}](${h})`;
147
- }
148
- }
149
- function M(e, n, i, d) {
150
- let u;
151
- if (d.isComponentProject && typeof d.config.documentation.getComponentDocsUrl == "function" && e.startsWith("components/")) {
152
- const m = e.slice(11), k = m.indexOf("/"), t = k === -1 ? m : m.slice(0, k), f = d.config.documentation.getComponentDocsUrl(t, I(t));
153
- f !== void 0 && (u = f + (k === -1 ? "" : m.slice(k + 1)));
154
- }
155
- return u ??= `${d.normalizedApiReferencePrefix}${e}/`, x(u, n, i);
156
- }
157
- function x(e, n, i) {
158
- return n !== void 0 ? i === void 0 ? `${e}#${encodeURIComponent(n)}` : `${e}#${encodeURIComponent(n)}-${encodeURIComponent(i)}` : i !== void 0 ? `${e}#${encodeURIComponent(i)}` : e;
159
- }
160
- function U(e) {
161
- const n = e.lastIndexOf("/");
162
- return n === -1 ? e : e.slice(n + 1);
163
- }
164
- const E = (e) => `/javascript/latest/references/${e}/`;
1
+ import "node:util";
2
+ import "../../utils/apiHelpers.js";
3
+ import "../../chunks/privateContext.js";
4
+ import "@arcgis/toolkit/string";
5
+ import { b as i, g as p, a as c, n as l, o as m, q as D, r as g } from "../../chunks/links.js";
165
6
  export {
166
- x as buildViewUrl,
167
- E as getDefaultBasePath,
168
- M as getViewUrl,
169
- W as postProcessDeprecated,
170
- j as postProcessDescription,
171
- J as postProcessDocsTags,
172
- N as resolveJsDocLink
7
+ i as buildViewUrl,
8
+ p as getDefaultBasePath,
9
+ c as getViewUrl,
10
+ l as postProcessDeprecated,
11
+ m as postProcessDescription,
12
+ D as postProcessDocsTags,
13
+ g as resolveJsDocLink
173
14
  };
@@ -1,4 +1,4 @@
1
- import { path as a } from "@arcgis/components-build-utils";
1
+ import { path as a } from "@arcgis/node-toolkit/path";
2
2
  function u(o, s, n) {
3
3
  const e = n.indexOf(a.sep);
4
4
  let t = s.componentPathMapping;
@@ -1,4 +1,4 @@
1
- import { g as f } from "../privateContext-CB7P40up.js";
1
+ import { g as f } from "../chunks/privateContext.js";
2
2
  const g = (e) => e.kind === "method", v = (e) => e.kind === "field";
3
3
  function h(e, n) {
4
4
  const o = e.sourcePath, i = n.sourcePath;
@@ -8,7 +8,7 @@ import type { ApiType, ApiTypeReference } from "../apiJson.js";
8
8
  *
9
9
  * @param apiType - The ApiType to hydrate
10
10
  * @param hydratePart - A callback that converts a type reference into desired output
11
- * @see [Type References](https://devtopia.esri.com/WebGIS/arcgis-web-components/blob/main/packages/support-packages/api-extractor/src/const/typeReferences/README.md)
11
+ * @see [Type References](https://devtopia.esri.com/WebGIS/webgis-sdk/blob/main/packages/support-packages/api-extractor/src/const/typeReferences/README.md)
12
12
  * @example
13
13
  * ```ts
14
14
  * const markdownTypeString = hydrateApiType(
@@ -1,8 +1,8 @@
1
- import { d as l } from "../privateContext-CB7P40up.js";
1
+ import { f as u } from "../chunks/privateContext.js";
2
2
  function m(t, r, i, e, n, o) {
3
- return `${`${r ? "export default " : "export "}${t ? "abstract " : ""}`}class ${i}${f(e)}${n === void 0 ? "" : ` extends ${n}`} {${o}}`;
3
+ return `${`${r ? "export default " : "export "}${t ? "abstract " : ""}`}class ${i}${c(e)}${n === void 0 ? "" : ` extends ${n}`} {${o}}`;
4
4
  }
5
- function f(t) {
5
+ function c(t) {
6
6
  if (t === void 0)
7
7
  return "";
8
8
  let r = "<";
@@ -14,29 +14,29 @@ function f(t) {
14
14
  }
15
15
  function v(t, r, i, e, n) {
16
16
  const o = t ? "export default " : "export ";
17
- let $ = "";
17
+ let f = "";
18
18
  if (e !== void 0) {
19
- $ = " extends ";
20
- for (let c = 0; c < e.length; ++c)
21
- $ += l(e[c]), c < e.length - 1 && ($ += ", ");
19
+ f = " extends ";
20
+ for (let $ = 0; $ < e.length; ++$)
21
+ f += u(e[$]), $ < e.length - 1 && (f += ", ");
22
22
  }
23
- return `${o}interface ${r}${f(i)}${$} {${n}}`;
23
+ return `${o}interface ${r}${c(i)}${f} {${n}}`;
24
24
  }
25
- function g(t, r, i, e, n, o, $, c) {
26
- const s = `${t ? "protected " : ""}${r ? "abstract " : ""}${i ? "static " : ""}`, x = c === void 0 ? "" : `: ${c}`;
27
- return `${s}${n === "" ? "" : d(n)}${e ? "?" : ""}${f(o)}(${a($)})${x};`;
25
+ function g(t, r, i, e, n, o, f, $) {
26
+ const s = `${t ? "protected " : ""}${r ? "abstract " : ""}${i ? "static " : ""}`, d = $ === void 0 ? "" : `: ${$}`;
27
+ return `${s}${n === "" ? "" : a(n)}${e ? "?" : ""}${c(o)}(${l(f)})${d};`;
28
28
  }
29
- function d(t) {
30
- return u.test(t) || t.startsWith("[") ? t : `"${t.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
29
+ function a(t) {
30
+ return x.test(t) || t.startsWith("[") ? t : `"${t.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
31
31
  }
32
- const h = (t) => !u.test(t) && !t.startsWith("["), u = /^[A-Za-z_$][A-Za-z0-9_$]*$/u;
32
+ const h = (t) => !x.test(t) && !t.startsWith("["), x = /^[A-Za-z_$][A-Za-z0-9_$]*$/u;
33
33
  function b(t, r, i, e, n) {
34
- return `${t ? "export default " : "export "}function ${r}${f(i)}(${a(e)}): ${n};`;
34
+ return `${t ? "export default " : "export "}function ${r}${c(i)}(${l(e)}): ${n};`;
35
35
  }
36
36
  function A(t) {
37
- return `${f(t.typeParameters)}(${a(t.parameters)}): ${t.return.type.text}`;
37
+ return `${c(t.typeParameters)}(${l(t.parameters)}): ${t.return.type.text}`;
38
38
  }
39
- function a(t) {
39
+ function l(t) {
40
40
  if (t === void 0)
41
41
  return "";
42
42
  let r = "";
@@ -46,13 +46,14 @@ function a(t) {
46
46
  }
47
47
  return r;
48
48
  }
49
- function P(t, r, i, e, n, o, $, c) {
50
- return `${`${t ? "protected " : ""}${r ? "abstract " : i ? "static " : ""}${e ? "readonly " : n ? "accessor " : ""}`}${d($)}${o ? "?" : ""}: ${c};`;
49
+ function P(t, r, i, e, n, o, f, $) {
50
+ return `${`${t ? "protected " : ""}${r ? "abstract " : i ? "static " : ""}${e ? "readonly " : n ? "accessor " : ""}`}${a(f)}${o ? "?" : ""}: ${$};`;
51
51
  }
52
- function N(t, r, i, e, n, o) {
53
- const $ = `${t ? "protected " : ""}${r ? "abstract " : ""}${i ? "static " : ""}`, c = d(e), s = o === void 0 ? "" : `
54
- ${$}set ${c}(value: ${o});`;
55
- return `${$}get ${c}(): ${n};${s}`;
52
+ function N(t, r, i, e, n, o, f = !1) {
53
+ const $ = `${t ? "protected " : ""}${r ? "abstract " : ""}${i ? "static " : ""}`, s = a(e), d = o === void 0 ? "" : `
54
+ ${f ? `/** @deprecated */
55
+ ` : ""}${$}set ${s}(value: ${o});`;
56
+ return `${$}get ${s}(): ${n};${d}`;
56
57
  }
57
58
  function z(t, r, i) {
58
59
  const n = `${t ? "declare " : "export "}const ${r}: ${i};`;
@@ -60,16 +61,16 @@ function z(t, r, i) {
60
61
  export default ${r};` : n;
61
62
  }
62
63
  function R(t, r, i, e) {
63
- let n = `export type ${t}${f(r)} = `;
64
+ let n = `export type ${t}${c(r)} = `;
64
65
  if (i !== void 0)
65
66
  for (let o = 0; o < i.length; ++o)
66
- n += l(i[o]), (o < i.length - 1 || e !== void 0) && (n += `
67
+ n += u(i[o]), (o < i.length - 1 || e !== void 0) && (n += `
67
68
  & `);
68
69
  return e !== void 0 && (n += e), n += ";", n;
69
70
  }
70
71
  export {
71
72
  h as isPropertyEscapeNeeded,
72
- d as maybeEscapePropertyName,
73
+ a as maybeEscapePropertyName,
73
74
  m as printClass,
74
75
  b as printFunction,
75
76
  N as printGetterSetter,
@@ -78,6 +79,6 @@ export {
78
79
  P as printProperty,
79
80
  A as printSignature,
80
81
  R as printTypeAlias,
81
- f as printTypeParameters,
82
+ c as printTypeParameters,
82
83
  z as printVariable
83
84
  };
@@ -17,8 +17,10 @@ export interface ApiExtractorPluginConfig {
17
17
  * rules, Astro docs generator, and other tools. For consistent results, use
18
18
  * the same settings everywhere.
19
19
  *
20
- * It is safe to use this for setting .afterCreate() hook as long as you don't
20
+ * It is safe to use this for setting .afterExtractorCreated() hook as long as you don't
21
21
  * mutate the api.json in it.
22
+ *
23
+ * Overrides are higher precedence than the `api-extractor.config.ts` file.
22
24
  */
23
25
  unsafeConfigOverride?: ApiExtractorConfig;
24
26
  serve?: ApiExtractorPluginServeConfig;
@@ -1,15 +1,14 @@
1
- import { l as O, m as J } from "../worker-Cracdkge.js";
2
- import { A as S, w as T } from "../ApiExtractor-1N5atT9H.js";
3
- import { p as A, l as C } from "../typeScript-CotszjDS.js";
1
+ import { p as O, l as S, m as J } from "../chunks/config.js";
2
+ import { A as T, l as A, w as C } from "../chunks/ApiExtractor.js";
4
3
  import { writeFile as M } from "node:fs/promises";
5
- import { path as w } from "@arcgis/components-build-utils";
6
- const N = A.name;
7
- function $(s = {}) {
4
+ import { path as w } from "@arcgis/node-toolkit/path";
5
+ const N = O.name;
6
+ function V(s = {}) {
8
7
  let t = !1, v = !1, e, o, c, l, E = !0, h = !1, f, m, u, y, p;
9
8
  async function x(d, n) {
10
9
  if (n.dtsFiles !== void 0 && u !== "") {
11
10
  const g = w.join(w.resolve(p, u), "/");
12
- await T(g, !1, d.changedDtsFiles ?? n.dtsFiles);
11
+ await C(g, !1, d.changedDtsFiles ?? n.dtsFiles);
13
12
  }
14
13
  y !== "" && await M(
15
14
  y,
@@ -57,7 +56,7 @@ function $(s = {}) {
57
56
  }, 250)), a));
58
57
  }
59
58
  }
60
- }, P = s.configFilePath === "" ? void 0 : await O(p, s.configFilePath), F = s.unsafeConfigOverride ?? {}, D = P === void 0 ? g : J(g, P), r = F === void 0 ? D : J(D, F);
59
+ }, P = s.configFilePath === "" ? void 0 : await S(p, s.configFilePath), F = s.unsafeConfigOverride ?? {}, D = P === void 0 ? g : J(g, P), r = F === void 0 ? D : J(D, F);
61
60
  u = t ? r.context?.dtsEmitPath ?? e.build.outDir : "", y = t ? r.context?.apiJsonEmitPath ?? "" : "";
62
61
  const W = r.context?.logger ?? e.logger ?? console, k = {
63
62
  ...r,
@@ -67,7 +66,7 @@ function $(s = {}) {
67
66
  apiJsonEmitPath: "",
68
67
  logger: {
69
68
  info(i) {
70
- !t || i.startsWith(`${C}Wrote `) || W.info(i);
69
+ !t || i.startsWith(`${A}Wrote `) || W.info(i);
71
70
  },
72
71
  error(i) {
73
72
  W.error(i);
@@ -79,7 +78,7 @@ function $(s = {}) {
79
78
  forceProduceDts: r.types?.forceProduceDts === !0 || u !== ""
80
79
  }
81
80
  };
82
- o = new S(k), s.afterExtractorCreated?.(o);
81
+ o = new T(k), s.afterExtractorCreated?.(o);
83
82
  },
84
83
  /**
85
84
  * TypeScript reads files directly from the file system - Vite's
@@ -105,5 +104,5 @@ function $(s = {}) {
105
104
  };
106
105
  }
107
106
  export {
108
- $ as useApiExtractor
107
+ V as useApiExtractor
109
108
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/api-extractor",
3
- "version": "5.2.0-next.16",
3
+ "version": "5.2.0-next.161",
4
4
  "description": "Documentation engine for WebGIS SDK packages",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -41,28 +41,29 @@
41
41
  "./utils/internalTypeScriptApis": "./dist/utils/internalTypeScriptApis.js",
42
42
  "./utils/partPrinter": "./dist/utils/partPrinter.js",
43
43
  "./vite/plugin": "./dist/vite/plugin.js",
44
- "./vite/typeScript": "./dist/vite/typeScript.js",
45
44
  "./package.json": "./package.json"
46
45
  },
47
46
  "files": [
48
47
  "dist/"
49
48
  ],
50
- "bin": "./bin/cli.js",
51
49
  "license": "SEE LICENSE IN LICENSE.md",
52
50
  "dependencies": {
53
- "@commander-js/extra-typings": "^14.0.0",
54
- "commander": "^14.0.0",
55
- "tslib": "^2.8.1",
56
- "@arcgis/components-build-utils": "5.2.0-next.16",
57
- "@arcgis/toolkit": "5.2.0-next.16"
51
+ "@arcgis/node-toolkit": "5.2.0-next.161",
52
+ "@arcgis/toolkit": "5.2.0-next.161",
53
+ "@commander-js/extra-typings": "^15.0.0",
54
+ "commander": "^15.0.0",
55
+ "tslib": "^2.8.1"
58
56
  },
59
57
  "peerDependencies": {
60
- "typescript": "~6.0.2",
58
+ "typescript": "~6.0.3",
61
59
  "vite": "^7.3.2"
62
60
  },
63
61
  "peerDependenciesMeta": {
64
62
  "vite": {
65
63
  "optional": true
66
64
  }
65
+ },
66
+ "bin": {
67
+ "api-extractor": "./bin/cli.js"
67
68
  }
68
69
  }