@arcgis/api-extractor 5.2.0-next.94 → 5.2.0-next.95
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/dist/{ApiExtractor-C2CJZrBq.js → ApiExtractor-V-V1G_t7.js} +1 -1
- package/dist/{config-D0cgQ7jF.js → config-BuNKptF_.js} +1 -1
- package/dist/extractor/ApiExtractor.js +2 -2
- package/dist/extractor/config.js +1 -1
- package/dist/vite/plugin.js +2 -2
- package/package.json +3 -3
- package/dist/ApiExtractor-DEf-EWJ9.js +0 -6525
- package/dist/config-DYM5QUfl.js +0 -191
package/dist/config-DYM5QUfl.js
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { existsAsync as S } from "@arcgis/node-toolkit/file";
|
|
2
|
-
import { path as y, getCwd as E } from "@arcgis/node-toolkit/path";
|
|
3
|
-
import { retrievePackageJson as U } from "@arcgis/node-toolkit/packageJson";
|
|
4
|
-
import { loadTypeScriptConfig as b } from "@arcgis/node-toolkit/vite/typeScript";
|
|
5
|
-
import { identity as d } from "@arcgis/toolkit/function";
|
|
6
|
-
import { pathToFileURL as I } from "node:url";
|
|
7
|
-
import { getDefaultBasePath as J } from "./extractor/processing/links.js";
|
|
8
|
-
const w = "@arcgis/api-extractor", L = "5.2.0-next.94", A = {
|
|
9
|
-
name: w,
|
|
10
|
-
version: L
|
|
11
|
-
}, T = "developers.arcgis.com", k = "next.gha.afd.arcgis.com";
|
|
12
|
-
function N(e) {
|
|
13
|
-
if (e.isResolvedConfig === !0)
|
|
14
|
-
return e;
|
|
15
|
-
const t = e.context, o = e.types, n = e.documentation, r = `${t?.cwd === void 0 ? E() : y.resolve(t?.cwd)}/`, s = t?.packageJson ?? U(r);
|
|
16
|
-
let c = t?.basePath ?? "src/";
|
|
17
|
-
c.endsWith("/") || (c += "/");
|
|
18
|
-
const m = "customElements" in s && "@arcgis/lumina" in (s.dependencies ?? {}), l = o?.typeCheckedExtraction ?? m, p = o?.fullTypeCheck ?? !1, a = o?.typeScriptConfig ?? (l || p ? b(r, o?.typeScriptConfigPath, !0) : {
|
|
19
|
-
configPath: "",
|
|
20
|
-
config: {
|
|
21
|
-
options: {},
|
|
22
|
-
fileNames: [],
|
|
23
|
-
errors: []
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
if (o?.typeScriptConfig?.config.fileNames.length === 0)
|
|
27
|
-
throw Error(
|
|
28
|
-
`${A.name}: Provided types.typeScriptConfig has no included files. If you used loadTypeScriptConfig, make sure to set resolveIncludedFiles to true.`
|
|
29
|
-
);
|
|
30
|
-
const h = {
|
|
31
|
-
config: {
|
|
32
|
-
...a.config,
|
|
33
|
-
options: {
|
|
34
|
-
...a.config.options,
|
|
35
|
-
...o?.compilerOptions
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
configPath: a.configPath
|
|
39
|
-
}, g = t?.dtsEmitPath === void 0 || t?.dtsEmitPath === "" ? "" : `${y.resolve(r, t.dtsEmitPath)}/`, x = g !== "", P = t?.environment ?? "production", u = P === "development", v = t?.emptyDtsEmitPath ?? (!u && x), D = n?.omitInternal ?? !1, C = o?.forceProduceDts ?? !1;
|
|
40
|
-
if (D && (x || C))
|
|
41
|
-
throw Error(
|
|
42
|
-
"omitInternal must be false if emitting .d.ts files in order to produce functional types for internal APIs."
|
|
43
|
-
);
|
|
44
|
-
return {
|
|
45
|
-
isResolvedConfig: !0,
|
|
46
|
-
context: {
|
|
47
|
-
dtsEmitPath: g,
|
|
48
|
-
emptyDtsEmitPath: v,
|
|
49
|
-
apiJsonEmitPath: t?.apiJsonEmitPath ?? "",
|
|
50
|
-
environment: P,
|
|
51
|
-
cwd: r,
|
|
52
|
-
basePath: c,
|
|
53
|
-
packageJson: s,
|
|
54
|
-
logger: t?.logger ?? {
|
|
55
|
-
// We namespace manually
|
|
56
|
-
// eslint-disable-next-line webgis/consistent-logging
|
|
57
|
-
info: console.log,
|
|
58
|
-
// eslint-disable-next-line webgis/consistent-logging
|
|
59
|
-
error: console.error
|
|
60
|
-
},
|
|
61
|
-
excludedDirectories: t?.excludedDirectories ?? /* @__PURE__ */ new Set(),
|
|
62
|
-
isLuminaMinimalExtraction: t?.isLuminaMinimalExtraction ?? !1,
|
|
63
|
-
includeLuminaPrivateComponents: t?.includeLuminaPrivateComponents ?? !1,
|
|
64
|
-
supportApplyMixinsSyntax: t?.supportApplyMixinsSyntax ?? !1
|
|
65
|
-
},
|
|
66
|
-
types: {
|
|
67
|
-
typeCheckedExtraction: l,
|
|
68
|
-
fullTypeCheck: p,
|
|
69
|
-
afterDiagnostic: o?.afterDiagnostic ?? d,
|
|
70
|
-
typeScriptInstanceCreated: o?.typeScriptInstanceCreated ?? d,
|
|
71
|
-
typeScriptConfigPath: a.configPath,
|
|
72
|
-
typeScriptConfig: h,
|
|
73
|
-
compilerOptions: h.config.options,
|
|
74
|
-
declarationTextTransformers: o?.declarationTextTransformers ?? [],
|
|
75
|
-
typeReplacements: o?.typeReplacements ?? {},
|
|
76
|
-
forceProduceDts: C
|
|
77
|
-
},
|
|
78
|
-
documentation: {
|
|
79
|
-
copyDocDefinitions: n?.copyDocDefinitions ?? {},
|
|
80
|
-
noInheritMembers: n?.noInheritMembers ?? {},
|
|
81
|
-
omitInternal: D,
|
|
82
|
-
publicStoryUrlPrefix: n?.publicStoryUrlPrefix ?? !1,
|
|
83
|
-
getComponentDocsUrl: n?.getComponentDocsUrl ?? !1,
|
|
84
|
-
getComponentDemoUrl: n?.getComponentDemoUrl ?? !1,
|
|
85
|
-
host: n?.host ?? (u ? k : T),
|
|
86
|
-
alternativeHost: n?.alternativeHost ?? (u ? T : k),
|
|
87
|
-
basePath: n?.basePath ?? J(s.name.split("/").at(-1))
|
|
88
|
-
},
|
|
89
|
-
verify: {
|
|
90
|
-
typeCheckTypes: e.verify?.typeCheckTypes ?? !1,
|
|
91
|
-
filterTypeCheckDiagnostic: e.verify?.filterTypeCheckDiagnostic ?? (() => !0),
|
|
92
|
-
detectBrokenLinks: e.verify?.detectBrokenLinks ?? !0
|
|
93
|
-
},
|
|
94
|
-
watch: {
|
|
95
|
-
onUpdate: e.watch?.onUpdate ?? d,
|
|
96
|
-
// Many reads can happen in a short time (on folder moves, or if prettier re-runs)
|
|
97
|
-
// Shorter than TypeScript's default of 250ms as we are blocked until this
|
|
98
|
-
// timeout is complete. Short timeout for unchecked extraction as it is fast,
|
|
99
|
-
// so doesn't need long debounce.
|
|
100
|
-
debounceTime: e.watch?.debounceTime ?? (l || p ? 50 : 20),
|
|
101
|
-
clearScreen: e.watch?.clearScreen ?? !1,
|
|
102
|
-
skipWritingUnchanged: v ? !1 : e.watch?.skipWritingUnchanged ?? !0
|
|
103
|
-
},
|
|
104
|
-
strict: e.strict ?? !m,
|
|
105
|
-
afterApiJsonCreate: e.afterApiJsonCreate ?? d
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
async function V(e, t) {
|
|
109
|
-
const o = t !== void 0, n = e ?? process.cwd(), i = y.resolve(n, t ?? "api-extractor.config.ts"), r = await S(i);
|
|
110
|
-
if (o && !r)
|
|
111
|
-
throw Error(`The provided config file at ${i} does not exist.`);
|
|
112
|
-
if (!r)
|
|
113
|
-
return e === void 0 ? {} : { context: { cwd: e } };
|
|
114
|
-
const s = (await import(I(i).href)).config;
|
|
115
|
-
return {
|
|
116
|
-
...s,
|
|
117
|
-
context: {
|
|
118
|
-
...s.context,
|
|
119
|
-
cwd: s.context?.cwd ?? y.dirname(i)
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function j(e, t) {
|
|
124
|
-
const o = e.context, n = t.context, i = e.types, r = t.types, s = e.documentation, c = t.documentation, m = e.verify, l = t.verify, p = e.watch, a = t.watch;
|
|
125
|
-
return {
|
|
126
|
-
isResolvedConfig: e.isResolvedConfig || t.isResolvedConfig || void 0,
|
|
127
|
-
context: {
|
|
128
|
-
dtsEmitPath: n?.dtsEmitPath ?? o?.dtsEmitPath,
|
|
129
|
-
emptyDtsEmitPath: n?.emptyDtsEmitPath ?? o?.emptyDtsEmitPath,
|
|
130
|
-
apiJsonEmitPath: n?.apiJsonEmitPath ?? o?.apiJsonEmitPath,
|
|
131
|
-
environment: n?.environment ?? o?.environment,
|
|
132
|
-
cwd: n?.cwd ?? o?.cwd,
|
|
133
|
-
basePath: n?.basePath ?? o?.basePath,
|
|
134
|
-
packageJson: n?.packageJson ?? o?.packageJson,
|
|
135
|
-
logger: n?.logger ?? o?.logger,
|
|
136
|
-
excludedDirectories: n?.excludedDirectories ?? o?.excludedDirectories,
|
|
137
|
-
isLuminaMinimalExtraction: n?.isLuminaMinimalExtraction ?? o?.isLuminaMinimalExtraction,
|
|
138
|
-
includeLuminaPrivateComponents: n?.includeLuminaPrivateComponents ?? o?.includeLuminaPrivateComponents,
|
|
139
|
-
supportApplyMixinsSyntax: n?.supportApplyMixinsSyntax ?? o?.supportApplyMixinsSyntax ?? !1
|
|
140
|
-
},
|
|
141
|
-
types: {
|
|
142
|
-
typeCheckedExtraction: r?.typeCheckedExtraction ?? i?.typeCheckedExtraction,
|
|
143
|
-
fullTypeCheck: r?.fullTypeCheck ?? i?.fullTypeCheck,
|
|
144
|
-
afterDiagnostic: f(r?.afterDiagnostic, i?.afterDiagnostic),
|
|
145
|
-
typeScriptInstanceCreated: f(
|
|
146
|
-
t?.types?.typeScriptInstanceCreated,
|
|
147
|
-
e?.types?.typeScriptInstanceCreated
|
|
148
|
-
),
|
|
149
|
-
typeScriptConfigPath: r?.typeScriptConfigPath ?? i?.typeScriptConfigPath,
|
|
150
|
-
typeScriptConfig: r?.typeScriptConfig ?? i?.typeScriptConfig,
|
|
151
|
-
compilerOptions: r?.compilerOptions ?? i?.compilerOptions,
|
|
152
|
-
declarationTextTransformers: r?.declarationTextTransformers !== void 0 && i?.declarationTextTransformers !== void 0 ? [...i.declarationTextTransformers, ...r.declarationTextTransformers] : r?.declarationTextTransformers ?? i?.declarationTextTransformers,
|
|
153
|
-
typeReplacements: r?.typeReplacements ?? i?.typeReplacements,
|
|
154
|
-
forceProduceDts: r?.forceProduceDts ?? i?.forceProduceDts
|
|
155
|
-
},
|
|
156
|
-
documentation: {
|
|
157
|
-
copyDocDefinitions: c?.copyDocDefinitions ?? s?.copyDocDefinitions,
|
|
158
|
-
noInheritMembers: c?.noInheritMembers ?? s?.noInheritMembers,
|
|
159
|
-
omitInternal: c?.omitInternal ?? s?.omitInternal,
|
|
160
|
-
publicStoryUrlPrefix: c?.publicStoryUrlPrefix ?? s?.publicStoryUrlPrefix,
|
|
161
|
-
getComponentDocsUrl: c?.getComponentDocsUrl ?? s?.getComponentDocsUrl,
|
|
162
|
-
getComponentDemoUrl: c?.getComponentDemoUrl ?? s?.getComponentDemoUrl,
|
|
163
|
-
host: c?.host ?? s?.host,
|
|
164
|
-
alternativeHost: c?.alternativeHost ?? s?.alternativeHost,
|
|
165
|
-
basePath: c?.basePath ?? s?.basePath
|
|
166
|
-
},
|
|
167
|
-
verify: {
|
|
168
|
-
typeCheckTypes: l?.typeCheckTypes ?? m?.typeCheckTypes,
|
|
169
|
-
filterTypeCheckDiagnostic: l?.filterTypeCheckDiagnostic ?? m?.filterTypeCheckDiagnostic,
|
|
170
|
-
detectBrokenLinks: l?.detectBrokenLinks ?? m?.detectBrokenLinks
|
|
171
|
-
},
|
|
172
|
-
watch: {
|
|
173
|
-
onUpdate: f(a?.onUpdate, p?.onUpdate),
|
|
174
|
-
debounceTime: a?.debounceTime ?? p?.debounceTime,
|
|
175
|
-
clearScreen: a?.clearScreen ?? p?.clearScreen,
|
|
176
|
-
skipWritingUnchanged: a?.skipWritingUnchanged ?? p?.skipWritingUnchanged
|
|
177
|
-
},
|
|
178
|
-
strict: t.strict ?? e.strict,
|
|
179
|
-
afterApiJsonCreate: f(t.afterApiJsonCreate, e.afterApiJsonCreate)
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
function f(e, t) {
|
|
183
|
-
const o = t === d ? void 0 : t, n = e === d ? void 0 : e;
|
|
184
|
-
return o !== void 0 && n !== void 0 ? ((...i) => (o(...i), n(...i))) : n ?? o;
|
|
185
|
-
}
|
|
186
|
-
export {
|
|
187
|
-
V as l,
|
|
188
|
-
j as m,
|
|
189
|
-
A as p,
|
|
190
|
-
N as r
|
|
191
|
-
};
|