@sprucelabs/spruce-cli 18.1.2 → 18.1.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.
- package/CHANGELOG.md +8 -0
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/skill/SkillFeature.js +0 -1
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/test/TestFeature.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/README.md +2 -0
- package/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts +3 -6
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts +4 -6
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createWatchProgram.d.ts +4 -7
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +5 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +102 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/inferSingleRun.d.ts +15 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/warnAboutTSVersion.d.ts +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +0 -26
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +8 -8
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts +3 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +13 -15
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +7 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts +4 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +51 -38
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts +4 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js +21 -22
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +5 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +7 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +145 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +102 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts +15 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +53 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +68 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +0 -26
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +32 -388
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/package.json +29 -29
- package/src/features/skill/SkillFeature.ts +0 -1
|
@@ -1,64 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.clearParseAndGenerateServicesCalls = exports.clearProgramCache = exports.parseWithNodeMaps = exports.parseAndGenerateServices = exports.parse = void 0;
|
|
30
7
|
const debug_1 = __importDefault(require("debug"));
|
|
31
|
-
const globby_1 = require("globby");
|
|
32
|
-
const is_glob_1 = __importDefault(require("is-glob"));
|
|
33
|
-
const path_1 = require("path");
|
|
34
|
-
const semver_1 = __importDefault(require("semver"));
|
|
35
|
-
const ts = __importStar(require("typescript"));
|
|
36
8
|
const ast_converter_1 = require("./ast-converter");
|
|
37
9
|
const convert_1 = require("./convert");
|
|
38
10
|
const createDefaultProgram_1 = require("./create-program/createDefaultProgram");
|
|
39
11
|
const createIsolatedProgram_1 = require("./create-program/createIsolatedProgram");
|
|
40
12
|
const createProjectProgram_1 = require("./create-program/createProjectProgram");
|
|
41
13
|
const createSourceFile_1 = require("./create-program/createSourceFile");
|
|
42
|
-
const shared_1 = require("./create-program/shared");
|
|
43
14
|
const useProvidedPrograms_1 = require("./create-program/useProvidedPrograms");
|
|
15
|
+
const createParseSettings_1 = require("./parseSettings/createParseSettings");
|
|
44
16
|
const semantic_or_syntactic_errors_1 = require("./semantic-or-syntactic-errors");
|
|
45
17
|
const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser');
|
|
46
|
-
/**
|
|
47
|
-
* This needs to be kept in sync with the top-level README.md in the
|
|
48
|
-
* typescript-eslint monorepo
|
|
49
|
-
*/
|
|
50
|
-
const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <4.9.0';
|
|
51
|
-
/*
|
|
52
|
-
* The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
|
|
53
|
-
* List them all separately here, so we can automatically create the full string
|
|
54
|
-
*/
|
|
55
|
-
const SUPPORTED_PRERELEASE_RANGES = [];
|
|
56
|
-
const ACTIVE_TYPESCRIPT_VERSION = ts.version;
|
|
57
|
-
const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [SUPPORTED_TYPESCRIPT_VERSIONS]
|
|
58
|
-
.concat(SUPPORTED_PRERELEASE_RANGES)
|
|
59
|
-
.join(' || '));
|
|
60
|
-
let extra;
|
|
61
|
-
let warnedAboutTSVersion = false;
|
|
62
18
|
/**
|
|
63
19
|
* Cache existing programs for the single run use-case.
|
|
64
20
|
*
|
|
@@ -69,289 +25,19 @@ function clearProgramCache() {
|
|
|
69
25
|
existingPrograms.clear();
|
|
70
26
|
}
|
|
71
27
|
exports.clearProgramCache = clearProgramCache;
|
|
72
|
-
function enforceString(code) {
|
|
73
|
-
/**
|
|
74
|
-
* Ensure the source code is a string
|
|
75
|
-
*/
|
|
76
|
-
if (typeof code !== 'string') {
|
|
77
|
-
return String(code);
|
|
78
|
-
}
|
|
79
|
-
return code;
|
|
80
|
-
}
|
|
81
28
|
/**
|
|
82
|
-
* @param
|
|
83
|
-
* @param programInstances One or more (potentially lazily constructed) existing programs to use
|
|
29
|
+
* @param parseSettings Internal settings for parsing the file
|
|
84
30
|
* @param shouldProvideParserServices True if the program should be attempted to be calculated from provided tsconfig files
|
|
85
|
-
* @param shouldCreateDefaultProgram True if the program should be created from compiler host
|
|
86
31
|
* @returns Returns a source file and program corresponding to the linted code
|
|
87
32
|
*/
|
|
88
|
-
function getProgramAndAST(
|
|
89
|
-
return ((
|
|
90
|
-
(
|
|
91
|
-
|
|
33
|
+
function getProgramAndAST(parseSettings, shouldProvideParserServices) {
|
|
34
|
+
return ((parseSettings.programs &&
|
|
35
|
+
(0, useProvidedPrograms_1.useProvidedPrograms)(parseSettings.programs, parseSettings)) ||
|
|
36
|
+
(shouldProvideParserServices && (0, createProjectProgram_1.createProjectProgram)(parseSettings)) ||
|
|
92
37
|
(shouldProvideParserServices &&
|
|
93
|
-
|
|
94
|
-
(0, createDefaultProgram_1.createDefaultProgram)(
|
|
95
|
-
(0, createIsolatedProgram_1.createIsolatedProgram)(
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Compute the filename based on the parser options.
|
|
99
|
-
*
|
|
100
|
-
* Even if jsx option is set in typescript compiler, filename still has to
|
|
101
|
-
* contain .tsx file extension.
|
|
102
|
-
*
|
|
103
|
-
* @param options Parser options
|
|
104
|
-
*/
|
|
105
|
-
function getFileName({ jsx } = {}) {
|
|
106
|
-
return jsx ? 'estree.tsx' : 'estree.ts';
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Resets the extra config object
|
|
110
|
-
*/
|
|
111
|
-
function resetExtra() {
|
|
112
|
-
extra = {
|
|
113
|
-
code: '',
|
|
114
|
-
comment: false,
|
|
115
|
-
comments: [],
|
|
116
|
-
createDefaultProgram: false,
|
|
117
|
-
debugLevel: new Set(),
|
|
118
|
-
errorOnTypeScriptSyntacticAndSemanticIssues: false,
|
|
119
|
-
errorOnUnknownASTType: false,
|
|
120
|
-
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: false,
|
|
121
|
-
extraFileExtensions: [],
|
|
122
|
-
filePath: getFileName(),
|
|
123
|
-
jsx: false,
|
|
124
|
-
loc: false,
|
|
125
|
-
log: console.log,
|
|
126
|
-
preserveNodeMaps: true,
|
|
127
|
-
programs: null,
|
|
128
|
-
projects: [],
|
|
129
|
-
range: false,
|
|
130
|
-
strict: false,
|
|
131
|
-
tokens: null,
|
|
132
|
-
tsconfigRootDir: process.cwd(),
|
|
133
|
-
/**
|
|
134
|
-
* Unless we can reliably infer otherwise, we default to assuming that this run could be part
|
|
135
|
-
* of a long-running session (e.g. in an IDE) and watch programs will therefore be required
|
|
136
|
-
*/
|
|
137
|
-
singleRun: false,
|
|
138
|
-
moduleResolver: '',
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function getTsconfigPath(tsconfigPath, extra) {
|
|
142
|
-
return (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(tsconfigPath, extra));
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Normalizes, sanitizes, resolves and filters the provided project paths
|
|
146
|
-
*/
|
|
147
|
-
function prepareAndTransformProjects(projectsInput, ignoreListInput) {
|
|
148
|
-
const sanitizedProjects = [];
|
|
149
|
-
// Normalize and sanitize the project paths
|
|
150
|
-
if (typeof projectsInput === 'string') {
|
|
151
|
-
sanitizedProjects.push(projectsInput);
|
|
152
|
-
}
|
|
153
|
-
else if (Array.isArray(projectsInput)) {
|
|
154
|
-
for (const project of projectsInput) {
|
|
155
|
-
if (typeof project === 'string') {
|
|
156
|
-
sanitizedProjects.push(project);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
if (sanitizedProjects.length === 0) {
|
|
161
|
-
return [];
|
|
162
|
-
}
|
|
163
|
-
// Transform glob patterns into paths
|
|
164
|
-
const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project));
|
|
165
|
-
const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project));
|
|
166
|
-
const uniqueCanonicalProjectPaths = new Set(nonGlobProjects
|
|
167
|
-
.concat((0, globby_1.sync)([...globProjects, ...ignoreListInput], {
|
|
168
|
-
cwd: extra.tsconfigRootDir,
|
|
169
|
-
}))
|
|
170
|
-
.map(project => getTsconfigPath(project, extra)));
|
|
171
|
-
log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths);
|
|
172
|
-
return Array.from(uniqueCanonicalProjectPaths);
|
|
173
|
-
}
|
|
174
|
-
function applyParserOptionsToExtra(options) {
|
|
175
|
-
var _a;
|
|
176
|
-
/**
|
|
177
|
-
* Configure Debug logging
|
|
178
|
-
*/
|
|
179
|
-
if (options.debugLevel === true) {
|
|
180
|
-
extra.debugLevel = new Set(['typescript-eslint']);
|
|
181
|
-
}
|
|
182
|
-
else if (Array.isArray(options.debugLevel)) {
|
|
183
|
-
extra.debugLevel = new Set(options.debugLevel);
|
|
184
|
-
}
|
|
185
|
-
if (extra.debugLevel.size > 0) {
|
|
186
|
-
// debug doesn't support multiple `enable` calls, so have to do it all at once
|
|
187
|
-
const namespaces = [];
|
|
188
|
-
if (extra.debugLevel.has('typescript-eslint')) {
|
|
189
|
-
namespaces.push('typescript-eslint:*');
|
|
190
|
-
}
|
|
191
|
-
if (extra.debugLevel.has('eslint') ||
|
|
192
|
-
// make sure we don't turn off the eslint debug if it was enabled via --debug
|
|
193
|
-
debug_1.default.enabled('eslint:*,-eslint:code-path')) {
|
|
194
|
-
// https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/bin/eslint.js#L25
|
|
195
|
-
namespaces.push('eslint:*,-eslint:code-path');
|
|
196
|
-
}
|
|
197
|
-
debug_1.default.enable(namespaces.join(','));
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Track range information in the AST
|
|
201
|
-
*/
|
|
202
|
-
extra.range = typeof options.range === 'boolean' && options.range;
|
|
203
|
-
extra.loc = typeof options.loc === 'boolean' && options.loc;
|
|
204
|
-
/**
|
|
205
|
-
* Track tokens in the AST
|
|
206
|
-
*/
|
|
207
|
-
if (typeof options.tokens === 'boolean' && options.tokens) {
|
|
208
|
-
extra.tokens = [];
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Track comments in the AST
|
|
212
|
-
*/
|
|
213
|
-
if (typeof options.comment === 'boolean' && options.comment) {
|
|
214
|
-
extra.comment = true;
|
|
215
|
-
extra.comments = [];
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Enable JSX - note the applicable file extension is still required
|
|
219
|
-
*/
|
|
220
|
-
if (typeof options.jsx !== 'boolean') {
|
|
221
|
-
extra.jsx = false;
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
extra.jsx = options.jsx;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Get the file path
|
|
228
|
-
*/
|
|
229
|
-
if (typeof options.filePath === 'string' && options.filePath !== '<input>') {
|
|
230
|
-
extra.filePath = options.filePath;
|
|
231
|
-
}
|
|
232
|
-
else {
|
|
233
|
-
extra.filePath = getFileName(extra);
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Allow the user to cause the parser to error if it encounters an unknown AST Node Type
|
|
237
|
-
* (used in testing)
|
|
238
|
-
*/
|
|
239
|
-
if (typeof options.errorOnUnknownASTType === 'boolean' &&
|
|
240
|
-
options.errorOnUnknownASTType) {
|
|
241
|
-
extra.errorOnUnknownASTType = true;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Allow the user to override the function used for logging
|
|
245
|
-
*/
|
|
246
|
-
if (typeof options.loggerFn === 'function') {
|
|
247
|
-
extra.log = options.loggerFn;
|
|
248
|
-
}
|
|
249
|
-
else if (options.loggerFn === false) {
|
|
250
|
-
extra.log = () => { };
|
|
251
|
-
}
|
|
252
|
-
if (typeof options.tsconfigRootDir === 'string') {
|
|
253
|
-
extra.tsconfigRootDir = options.tsconfigRootDir;
|
|
254
|
-
}
|
|
255
|
-
// NOTE - ensureAbsolutePath relies upon having the correct tsconfigRootDir in extra
|
|
256
|
-
extra.filePath = (0, shared_1.ensureAbsolutePath)(extra.filePath, extra);
|
|
257
|
-
if (Array.isArray(options.programs)) {
|
|
258
|
-
if (!options.programs.length) {
|
|
259
|
-
throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`);
|
|
260
|
-
}
|
|
261
|
-
extra.programs = options.programs;
|
|
262
|
-
log('parserOptions.programs was provided, so parserOptions.project will be ignored.');
|
|
263
|
-
}
|
|
264
|
-
if (!extra.programs) {
|
|
265
|
-
// providing a program overrides project resolution
|
|
266
|
-
const projectFolderIgnoreList = ((_a = options.projectFolderIgnoreList) !== null && _a !== void 0 ? _a : ['**/node_modules/**'])
|
|
267
|
-
.reduce((acc, folder) => {
|
|
268
|
-
if (typeof folder === 'string') {
|
|
269
|
-
acc.push(folder);
|
|
270
|
-
}
|
|
271
|
-
return acc;
|
|
272
|
-
}, [])
|
|
273
|
-
// prefix with a ! for not match glob
|
|
274
|
-
.map(folder => (folder.startsWith('!') ? folder : `!${folder}`));
|
|
275
|
-
// NOTE - prepareAndTransformProjects relies upon having the correct tsconfigRootDir in extra
|
|
276
|
-
extra.projects = prepareAndTransformProjects(options.project, projectFolderIgnoreList);
|
|
277
|
-
}
|
|
278
|
-
if (Array.isArray(options.extraFileExtensions) &&
|
|
279
|
-
options.extraFileExtensions.every(ext => typeof ext === 'string')) {
|
|
280
|
-
extra.extraFileExtensions = options.extraFileExtensions;
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Allow the user to enable or disable the preservation of the AST node maps
|
|
284
|
-
* during the conversion process.
|
|
285
|
-
*/
|
|
286
|
-
if (typeof options.preserveNodeMaps === 'boolean') {
|
|
287
|
-
extra.preserveNodeMaps = options.preserveNodeMaps;
|
|
288
|
-
}
|
|
289
|
-
extra.createDefaultProgram =
|
|
290
|
-
typeof options.createDefaultProgram === 'boolean' &&
|
|
291
|
-
options.createDefaultProgram;
|
|
292
|
-
extra.EXPERIMENTAL_useSourceOfProjectReferenceRedirect =
|
|
293
|
-
typeof options.EXPERIMENTAL_useSourceOfProjectReferenceRedirect ===
|
|
294
|
-
'boolean' && options.EXPERIMENTAL_useSourceOfProjectReferenceRedirect;
|
|
295
|
-
if (typeof options.moduleResolver === 'string') {
|
|
296
|
-
extra.moduleResolver = options.moduleResolver;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
function warnAboutTSVersion() {
|
|
300
|
-
var _a;
|
|
301
|
-
if (!isRunningSupportedTypeScriptVersion && !warnedAboutTSVersion) {
|
|
302
|
-
const isTTY = typeof process === 'undefined' ? false : (_a = process.stdout) === null || _a === void 0 ? void 0 : _a.isTTY;
|
|
303
|
-
if (isTTY) {
|
|
304
|
-
const border = '=============';
|
|
305
|
-
const versionWarning = [
|
|
306
|
-
border,
|
|
307
|
-
'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.',
|
|
308
|
-
'You may find that it works just fine, or you may not.',
|
|
309
|
-
`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,
|
|
310
|
-
`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,
|
|
311
|
-
'Please only submit bug reports when using the officially supported version.',
|
|
312
|
-
border,
|
|
313
|
-
];
|
|
314
|
-
extra.log(versionWarning.join('\n\n'));
|
|
315
|
-
}
|
|
316
|
-
warnedAboutTSVersion = true;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts,
|
|
321
|
-
* such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback
|
|
322
|
-
* on a file in an IDE).
|
|
323
|
-
*
|
|
324
|
-
* When typescript-eslint handles TypeScript Program management behind the scenes, this distinction
|
|
325
|
-
* is important because there is significant overhead to managing the so called Watch Programs
|
|
326
|
-
* needed for the long-running use-case. We therefore use the following logic to figure out which
|
|
327
|
-
* of these contexts applies to the current execution.
|
|
328
|
-
*/
|
|
329
|
-
function inferSingleRun(options) {
|
|
330
|
-
// Allow users to explicitly inform us of their intent to perform a single run (or not) with TSESTREE_SINGLE_RUN
|
|
331
|
-
if (process.env.TSESTREE_SINGLE_RUN === 'false') {
|
|
332
|
-
extra.singleRun = false;
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
if (process.env.TSESTREE_SINGLE_RUN === 'true') {
|
|
336
|
-
extra.singleRun = true;
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
// Currently behind a flag while we gather real-world feedback
|
|
340
|
-
if (options === null || options === void 0 ? void 0 : options.allowAutomaticSingleRunInference) {
|
|
341
|
-
if (
|
|
342
|
-
// Default to single runs for CI processes. CI=true is set by most CI providers by default.
|
|
343
|
-
process.env.CI === 'true' ||
|
|
344
|
-
// This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...`
|
|
345
|
-
process.argv[1].endsWith((0, path_1.normalize)('node_modules/.bin/eslint'))) {
|
|
346
|
-
extra.singleRun = true;
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* We default to assuming that this run could be part of a long-running session (e.g. in an IDE)
|
|
352
|
-
* and watch programs will therefore be required
|
|
353
|
-
*/
|
|
354
|
-
extra.singleRun = false;
|
|
38
|
+
parseSettings.createDefaultProgram &&
|
|
39
|
+
(0, createDefaultProgram_1.createDefaultProgram)(parseSettings)) ||
|
|
40
|
+
(0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings));
|
|
355
41
|
}
|
|
356
42
|
function parse(code, options) {
|
|
357
43
|
const { ast } = parseWithNodeMapsInternal(code, options, false);
|
|
@@ -362,7 +48,7 @@ function parseWithNodeMapsInternal(code, options, shouldPreserveNodeMaps) {
|
|
|
362
48
|
/**
|
|
363
49
|
* Reset the parse configuration
|
|
364
50
|
*/
|
|
365
|
-
|
|
51
|
+
const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options);
|
|
366
52
|
/**
|
|
367
53
|
* Ensure users do not attempt to use parse() when they need parseAndGenerateServices()
|
|
368
54
|
*/
|
|
@@ -370,33 +56,13 @@ function parseWithNodeMapsInternal(code, options, shouldPreserveNodeMaps) {
|
|
|
370
56
|
throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`);
|
|
371
57
|
}
|
|
372
58
|
/**
|
|
373
|
-
*
|
|
374
|
-
*/
|
|
375
|
-
code = enforceString(code);
|
|
376
|
-
extra.code = code;
|
|
377
|
-
/**
|
|
378
|
-
* Apply the given parser options
|
|
379
|
-
*/
|
|
380
|
-
if (typeof options !== 'undefined') {
|
|
381
|
-
applyParserOptionsToExtra(options);
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Warn if the user is using an unsupported version of TypeScript
|
|
385
|
-
*/
|
|
386
|
-
warnAboutTSVersion();
|
|
387
|
-
/**
|
|
388
|
-
* Figure out whether this is a single run or part of a long-running process
|
|
59
|
+
* Create a ts.SourceFile directly, no ts.Program is needed for a simple parse
|
|
389
60
|
*/
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Create a ts.SourceFile directly, no ts.Program is needed for a simple
|
|
393
|
-
* parse
|
|
394
|
-
*/
|
|
395
|
-
const ast = (0, createSourceFile_1.createSourceFile)(code, extra);
|
|
61
|
+
const ast = (0, createSourceFile_1.createSourceFile)(parseSettings);
|
|
396
62
|
/**
|
|
397
63
|
* Convert the TypeScript AST to an ESTree-compatible one
|
|
398
64
|
*/
|
|
399
|
-
const { estree, astMaps } = (0, ast_converter_1.astConverter)(ast,
|
|
65
|
+
const { estree, astMaps } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps);
|
|
400
66
|
return {
|
|
401
67
|
ast: estree,
|
|
402
68
|
esTreeNodeToTSNodeMap: astMaps.esTreeNodeToTSNodeMap,
|
|
@@ -414,44 +80,29 @@ function clearParseAndGenerateServicesCalls() {
|
|
|
414
80
|
}
|
|
415
81
|
exports.clearParseAndGenerateServicesCalls = clearParseAndGenerateServicesCalls;
|
|
416
82
|
function parseAndGenerateServices(code, options) {
|
|
417
|
-
var _a;
|
|
83
|
+
var _a, _b;
|
|
418
84
|
/**
|
|
419
85
|
* Reset the parse configuration
|
|
420
86
|
*/
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Ensure the source code is a string, and store a reference to it
|
|
424
|
-
*/
|
|
425
|
-
code = enforceString(code);
|
|
426
|
-
extra.code = code;
|
|
427
|
-
/**
|
|
428
|
-
* Apply the given parser options
|
|
429
|
-
*/
|
|
87
|
+
const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options);
|
|
430
88
|
if (typeof options !== 'undefined') {
|
|
431
|
-
applyParserOptionsToExtra(options);
|
|
432
89
|
if (typeof options.errorOnTypeScriptSyntacticAndSemanticIssues ===
|
|
433
90
|
'boolean' &&
|
|
434
91
|
options.errorOnTypeScriptSyntacticAndSemanticIssues) {
|
|
435
|
-
|
|
92
|
+
parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues = true;
|
|
436
93
|
}
|
|
437
94
|
}
|
|
438
|
-
/**
|
|
439
|
-
* Warn if the user is using an unsupported version of TypeScript
|
|
440
|
-
*/
|
|
441
|
-
warnAboutTSVersion();
|
|
442
|
-
/**
|
|
443
|
-
* Figure out whether this is a single run or part of a long-running process
|
|
444
|
-
*/
|
|
445
|
-
inferSingleRun(options);
|
|
446
95
|
/**
|
|
447
96
|
* If this is a single run in which the user has not provided any existing programs but there
|
|
448
97
|
* are programs which need to be created from the provided "project" option,
|
|
449
98
|
* create an Iterable which will lazily create the programs as needed by the iteration logic
|
|
450
99
|
*/
|
|
451
|
-
if (
|
|
452
|
-
|
|
100
|
+
if (parseSettings.singleRun &&
|
|
101
|
+
!parseSettings.programs &&
|
|
102
|
+
((_a = parseSettings.projects) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
103
|
+
parseSettings.programs = {
|
|
453
104
|
*[Symbol.iterator]() {
|
|
454
|
-
for (const configFile of
|
|
105
|
+
for (const configFile of parseSettings.projects) {
|
|
455
106
|
const existingProgram = existingPrograms.get(configFile);
|
|
456
107
|
if (existingProgram) {
|
|
457
108
|
yield existingProgram;
|
|
@@ -469,7 +120,7 @@ function parseAndGenerateServices(code, options) {
|
|
|
469
120
|
/**
|
|
470
121
|
* Generate a full ts.Program or offer provided instances in order to be able to provide parser services, such as type-checking
|
|
471
122
|
*/
|
|
472
|
-
const shouldProvideParserServices =
|
|
123
|
+
const shouldProvideParserServices = parseSettings.programs != null || ((_b = parseSettings.projects) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
|
473
124
|
/**
|
|
474
125
|
* If we are in singleRun mode but the parseAndGenerateServices() function has been called more than once for the current file,
|
|
475
126
|
* it must mean that we are in the middle of an ESLint automated fix cycle (in which parsing can be performed up to an additional
|
|
@@ -478,35 +129,28 @@ function parseAndGenerateServices(code, options) {
|
|
|
478
129
|
* In this scenario we cannot rely upon the singleRun AOT compiled programs because the SourceFiles will not contain the source
|
|
479
130
|
* with the latest fixes applied. Therefore we fallback to creating the quickest possible isolated program from the updated source.
|
|
480
131
|
*/
|
|
481
|
-
|
|
482
|
-
let program;
|
|
483
|
-
if (extra.singleRun && options.filePath) {
|
|
132
|
+
if (parseSettings.singleRun && options.filePath) {
|
|
484
133
|
parseAndGenerateServicesCalls[options.filePath] =
|
|
485
134
|
(parseAndGenerateServicesCalls[options.filePath] || 0) + 1;
|
|
486
135
|
}
|
|
487
|
-
|
|
136
|
+
const { ast, program } = parseSettings.singleRun &&
|
|
488
137
|
options.filePath &&
|
|
489
|
-
parseAndGenerateServicesCalls[options.filePath] > 1
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
program = isolatedAstAndProgram.program;
|
|
493
|
-
}
|
|
494
|
-
else {
|
|
495
|
-
const astAndProgram = getProgramAndAST(code, extra.programs, shouldProvideParserServices, extra.createDefaultProgram);
|
|
496
|
-
ast = astAndProgram.ast;
|
|
497
|
-
program = astAndProgram.program;
|
|
498
|
-
}
|
|
138
|
+
parseAndGenerateServicesCalls[options.filePath] > 1
|
|
139
|
+
? (0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings)
|
|
140
|
+
: getProgramAndAST(parseSettings, shouldProvideParserServices);
|
|
499
141
|
/**
|
|
500
142
|
* Convert the TypeScript AST to an ESTree-compatible one, and optionally preserve
|
|
501
143
|
* mappings between converted and original AST nodes
|
|
502
144
|
*/
|
|
503
|
-
const
|
|
504
|
-
|
|
145
|
+
const shouldPreserveNodeMaps = typeof parseSettings.preserveNodeMaps === 'boolean'
|
|
146
|
+
? parseSettings.preserveNodeMaps
|
|
147
|
+
: true;
|
|
148
|
+
const { estree, astMaps } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps);
|
|
505
149
|
/**
|
|
506
150
|
* Even if TypeScript parsed the source code ok, and we had no problems converting the AST,
|
|
507
151
|
* there may be other syntactic or semantic issues in the code that we can optionally report on.
|
|
508
152
|
*/
|
|
509
|
-
if (program &&
|
|
153
|
+
if (program && parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues) {
|
|
510
154
|
const error = (0, semantic_or_syntactic_errors_1.getFirstSemanticOrSyntacticError)(program, ast);
|
|
511
155
|
if (error) {
|
|
512
156
|
throw (0, convert_1.convertError)(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,mCAA0C;AAC1C,sDAA6B;AAC7B,+BAAiC;AACjC,oDAA4B;AAC5B,+CAAiC;AAEjC,mDAA+C;AAC/C,uCAAyC;AACzC,gFAA6E;AAC7E,kFAA+E;AAC/E,gFAA6E;AAC7E,wEAAqE;AAErE,oDAGiC;AACjC,8EAG8C;AAE9C,iFA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QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;KAC9D;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GACpB,aAAa,CAAC,SAAS;QACvB,OAAO,CAAC,QAAQ;QAChB,6BAA6B,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;QACjD,CAAC,CAAC,IAAA,6CAAqB,EAAC,aAAa,CAAC;QACtC,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,2BAA2B,CAAE,CAAC;IAEpE;;;OAGG;IACH,MAAM,sBAAsB,GAC1B,OAAO,aAAa,CAAC,gBAAgB,KAAK,SAAS;QACjD,CAAC,CAAC,aAAa,CAAC,gBAAgB;QAChC,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,4BAAY,EACtC,GAAG,EACH,aAAa,EACb,sBAAsB,CACvB,CAAC;IAEF;;;OAGG;IACH,IAAI,OAAO,IAAI,aAAa,CAAC,2CAA2C,EAAE;QACxE,MAAM,KAAK,GAAG,IAAA,+DAAgC,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC7D,IAAI,KAAK,EAAE;YACT,MAAM,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAC;SAC3B;KACF;IAED;;OAEG;IACH,OAAO;QACL,GAAG,EAAE,MAAgB;QACrB,QAAQ,EAAE;YACR,sBAAsB,EAAE,2BAA2B;YACnD,OAAO;YACP,qBAAqB,EAAE,OAAO,CAAC,qBAAqB;YACpD,qBAAqB,EAAE,OAAO,CAAC,qBAAqB;SACrD;KACF,CAAC;AACJ,CAAC;AAKC,4DAAwB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.0",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@typescript-eslint/types": "5.
|
|
46
|
-
"@typescript-eslint/visitor-keys": "5.
|
|
45
|
+
"@typescript-eslint/types": "5.42.0",
|
|
46
|
+
"@typescript-eslint/visitor-keys": "5.42.0",
|
|
47
47
|
"debug": "^4.3.4",
|
|
48
48
|
"globby": "^11.1.0",
|
|
49
49
|
"is-glob": "^4.0.3",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/is-glob": "*",
|
|
60
60
|
"@types/semver": "*",
|
|
61
61
|
"@types/tmp": "*",
|
|
62
|
-
"@typescript-eslint/shared-fixtures": "5.
|
|
62
|
+
"@typescript-eslint/shared-fixtures": "5.42.0",
|
|
63
63
|
"glob": "*",
|
|
64
64
|
"jest-specific-snapshot": "*",
|
|
65
65
|
"make-dir": "*",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "1e5e9ea4cac25947c3a8748647a4fb4d329c4b25"
|
|
86
86
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/visitor-keys",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.0",
|
|
4
4
|
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@typescript-eslint/types": "5.
|
|
42
|
+
"@typescript-eslint/types": "5.42.0",
|
|
43
43
|
"eslint-visitor-keys": "^3.3.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "1e5e9ea4cac25947c3a8748647a4fb4d329c4b25"
|
|
60
60
|
}
|