@arcgis/api-extractor 5.2.0-next.9 → 5.2.0-next.91

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.
@@ -1,66 +0,0 @@
1
- import { findPath as E, path as u, toSystemPathSeparators as S } from "@arcgis/components-build-utils";
2
- import t from "typescript";
3
- import { styleText as f } from "util";
4
- const w = "@arcgis/api-extractor", P = "5.2.0-next.9", D = {
5
- name: w,
6
- version: P
7
- };
8
- let x;
9
- function N(o) {
10
- return x ??= t.createPrinter(), x.printNode(t.EmitHint.Unspecified, o, void 0);
11
- }
12
- function A(o, e) {
13
- return o.pos !== -1 && o.end !== -1 && e !== void 0 ? o.getText(e) : N(o);
14
- }
15
- let h;
16
- const g = D.name, m = {
17
- getCurrentDirectory: process.cwd,
18
- getCanonicalFileName: (o) => o,
19
- getNewLine: () => t.sys.newLine
20
- }, L = function(o, { file: e, node: n, scope: i, start: s, length: c }) {
21
- this.errorCount += 1, process.exitCode = 1, s ??= n === void 0 || n.pos === -1 ? -1 : n.getStart(e, !1);
22
- const a = n?.end ?? -1;
23
- c ??= a === -1 ? -1 : Math.max(1, a - s);
24
- const r = s >= 0 && c >= 0, d = !r && i !== void 0, l = {
25
- category: t.DiagnosticCategory.Error,
26
- code: r ? g : v,
27
- file: d ? void 0 : e,
28
- start: r ? s : 0,
29
- length: r ? c : 0,
30
- messageText: (d ? `${f("cyan", i, { stream: process.stderr })}: ` : "") + o + (r || n === void 0 ? "" : `
31
-
32
- ${A(n, e)}`)
33
- }, p = t.formatDiagnosticsWithColorAndContext([l], m);
34
- h ??= process.env.CI !== void 0 || f("red", "", { stream: process.stderr }) !== "";
35
- const C = h ? p : p.replaceAll(F, ""), y = r ? C : C.replace(v.toString(), g);
36
- this.config.context.logger.error(y);
37
- }, v = 1490, F = /\x1B\[[0-9;]*m/gu, W = f("cyan", `[${g}] `);
38
- function k(o = process.cwd(), e, n) {
39
- const i = e === void 0 ? E("tsconfig.json", o) : u.resolve(o, e);
40
- if (i === void 0)
41
- throw Error(
42
- `Unable to find ${S(String(e))}. Please make sure the file exists, or provide types.tsconfigPath option to useLumina()`
43
- );
44
- const s = t.readConfigFile(i, t.sys.readFile);
45
- if (s.error !== void 0)
46
- throw Error(t.formatDiagnosticsWithColorAndContext([s.error], m));
47
- const c = s.config, a = n ? c : {
48
- ...c,
49
- include: [],
50
- files: [],
51
- exclude: []
52
- }, r = t.parseJsonConfigFileContent(a, t.sys, u.dirname(i)), d = 18002, l = n ? r.errors : r.errors.filter((p) => p.code !== d);
53
- if (l.length > 0)
54
- throw Error(t.formatDiagnosticsWithColorAndContext(l, m));
55
- return {
56
- configPath: i,
57
- config: r
58
- };
59
- }
60
- export {
61
- m as a,
62
- k as b,
63
- L as e,
64
- W as l,
65
- D as p
66
- };
@@ -1,16 +0,0 @@
1
- import type ts from "typescript";
2
-
3
- export interface TypeScriptConfigResult {
4
- /** Absolute path to the resolved tsconfig.json file. */
5
- configPath: string;
6
- config: ts.ParsedCommandLine;
7
- }
8
-
9
- /**
10
- * @param cwd - Defaults to process.cwd()
11
- * @param configPath - Optional absolute or relative path to a tsconfig.json file.
12
- * @param resolveIncludedFiles - If true, will resolve tsconfig's include, exclude,
13
- * and files globs. Resolved files can be accessed via
14
- * TypeScriptConfigResult.config.fileNames.
15
- */
16
- export function loadTypeScriptConfig(cwd: string | undefined, configPath: string | undefined, resolveIncludedFiles: boolean): TypeScriptConfigResult;
@@ -1,6 +0,0 @@
1
- import "@arcgis/components-build-utils";
2
- import "typescript";
3
- import { b as t } from "../typeScript-DewdSAUb.js";
4
- export {
5
- t as loadTypeScriptConfig
6
- };