@oclif/plugin-test-esbuild 0.5.17 → 0.5.19
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/README.md +1 -1
- package/dist/{chunk-GYJJIHAB.js → chunk-KKF36Q6V.js} +1 -1
- package/dist/{chunk-MXOJF56Y.js → chunk-NWCXLJN2.js} +1 -1
- package/dist/{chunk-JTPHA54P.js → chunk-NXT2QAWJ.js} +1 -1
- package/dist/{chunk-GO6MSYSN.js → chunk-OV2PEOZH.js} +1 -1
- package/dist/{chunk-EMX7673S.js → chunk-QTBOVN7I.js} +169 -79
- package/dist/{chunk-ZQOI2LXL.js → chunk-S5N7NKOT.js} +22 -4
- package/dist/commands/esbuild.js +2 -2
- package/dist/commands/hello/index.js +2 -2
- package/dist/commands/hello/world.js +2 -2
- package/dist/hooks/init/init.js +2 -2
- package/dist/index.js +17 -7
- package/dist/{npa-TC6TVPHC.js → npa-2DD665WN.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @oclif/plugin-test-esbuild
|
|
|
17
17
|
$ bundle COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ bundle (--version)
|
|
20
|
-
@oclif/plugin-test-esbuild/0.5.
|
|
20
|
+
@oclif/plugin-test-esbuild/0.5.19 linux-x64 node-v20.16.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
|
@@ -3255,9 +3255,9 @@ var require_ansi_styles = __commonJS({
|
|
|
3255
3255
|
}
|
|
3256
3256
|
});
|
|
3257
3257
|
|
|
3258
|
-
// node_modules/wrap-ansi/index.js
|
|
3258
|
+
// node_modules/@oclif/core/node_modules/wrap-ansi/index.js
|
|
3259
3259
|
var require_wrap_ansi = __commonJS({
|
|
3260
|
-
"node_modules/wrap-ansi/index.js"(exports, module) {
|
|
3260
|
+
"node_modules/@oclif/core/node_modules/wrap-ansi/index.js"(exports, module) {
|
|
3261
3261
|
"use strict";
|
|
3262
3262
|
init_cjs_shims();
|
|
3263
3263
|
var stringWidth = require_string_width();
|
|
@@ -6195,6 +6195,7 @@ var require_typescript = __commonJS({
|
|
|
6195
6195
|
trace: () => trace,
|
|
6196
6196
|
tracing: () => tracing,
|
|
6197
6197
|
tracingEnabled: () => tracingEnabled,
|
|
6198
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
6198
6199
|
transform: () => transform,
|
|
6199
6200
|
transformClassFields: () => transformClassFields,
|
|
6200
6201
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -6305,7 +6306,7 @@ var require_typescript = __commonJS({
|
|
|
6305
6306
|
});
|
|
6306
6307
|
module2.exports = __toCommonJS(typescript_exports);
|
|
6307
6308
|
var versionMajorMinor = "5.5";
|
|
6308
|
-
var version = "5.5.
|
|
6309
|
+
var version = "5.5.4";
|
|
6309
6310
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
6310
6311
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
6311
6312
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -9178,10 +9179,12 @@ ${lanes.join("\n")}
|
|
|
9178
9179
|
if (isNodeLikeSystem()) {
|
|
9179
9180
|
try {
|
|
9180
9181
|
const { performance: performance2 } = __require("perf_hooks");
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9182
|
+
if (performance2) {
|
|
9183
|
+
return {
|
|
9184
|
+
shouldWriteNativeEvents: false,
|
|
9185
|
+
performance: performance2
|
|
9186
|
+
};
|
|
9187
|
+
}
|
|
9185
9188
|
} catch {
|
|
9186
9189
|
}
|
|
9187
9190
|
}
|
|
@@ -10326,6 +10329,7 @@ ${lanes.join("\n")}
|
|
|
10326
10329
|
var EmitOnly = /* @__PURE__ */ ((EmitOnly4) => {
|
|
10327
10330
|
EmitOnly4[EmitOnly4["Js"] = 0] = "Js";
|
|
10328
10331
|
EmitOnly4[EmitOnly4["Dts"] = 1] = "Dts";
|
|
10332
|
+
EmitOnly4[EmitOnly4["BuilderSignature"] = 2] = "BuilderSignature";
|
|
10329
10333
|
return EmitOnly4;
|
|
10330
10334
|
})(EmitOnly || {});
|
|
10331
10335
|
var StructureIsReused = /* @__PURE__ */ ((StructureIsReused2) => {
|
|
@@ -16511,6 +16515,7 @@ ${lanes.join("\n")}
|
|
|
16511
16515
|
var tokenFlags;
|
|
16512
16516
|
var commentDirectives;
|
|
16513
16517
|
var skipJsDocLeadingAsterisks = 0;
|
|
16518
|
+
var asteriskSeen = false;
|
|
16514
16519
|
var scriptKind = 0;
|
|
16515
16520
|
var jsDocParsingMode = 0;
|
|
16516
16521
|
setText(text, start, length2);
|
|
@@ -16562,6 +16567,7 @@ ${lanes.join("\n")}
|
|
|
16562
16567
|
resetTokenState,
|
|
16563
16568
|
setTextPos: resetTokenState,
|
|
16564
16569
|
setSkipJsDocLeadingAsterisks,
|
|
16570
|
+
hasLeadingAsterisks,
|
|
16565
16571
|
tryScan,
|
|
16566
16572
|
lookAhead,
|
|
16567
16573
|
scanRange
|
|
@@ -17171,7 +17177,7 @@ ${lanes.join("\n")}
|
|
|
17171
17177
|
function scan() {
|
|
17172
17178
|
fullStartPos = pos;
|
|
17173
17179
|
tokenFlags = 0;
|
|
17174
|
-
|
|
17180
|
+
asteriskSeen = false;
|
|
17175
17181
|
while (true) {
|
|
17176
17182
|
tokenStart = pos;
|
|
17177
17183
|
if (pos >= end) {
|
|
@@ -19046,6 +19052,9 @@ ${lanes.join("\n")}
|
|
|
19046
19052
|
function setSkipJsDocLeadingAsterisks(skip) {
|
|
19047
19053
|
skipJsDocLeadingAsterisks += skip ? 1 : -1;
|
|
19048
19054
|
}
|
|
19055
|
+
function hasLeadingAsterisks() {
|
|
19056
|
+
return asteriskSeen;
|
|
19057
|
+
}
|
|
19049
19058
|
}
|
|
19050
19059
|
function codePointAt(s, i) {
|
|
19051
19060
|
return s.codePointAt(i);
|
|
@@ -21008,7 +21017,7 @@ ${lanes.join("\n")}
|
|
|
21008
21017
|
}
|
|
21009
21018
|
if (isJSDocNode(node) || node.kind === 12) {
|
|
21010
21019
|
return skipTrivia(
|
|
21011
|
-
(sourceFile
|
|
21020
|
+
(sourceFile ?? getSourceFileOfNode(node)).text,
|
|
21012
21021
|
node.pos,
|
|
21013
21022
|
/*stopAfterLineBreak*/
|
|
21014
21023
|
false,
|
|
@@ -21020,13 +21029,14 @@ ${lanes.join("\n")}
|
|
|
21020
21029
|
return getTokenPosOfNode(node.jsDoc[0], sourceFile);
|
|
21021
21030
|
}
|
|
21022
21031
|
if (node.kind === 352) {
|
|
21023
|
-
|
|
21032
|
+
sourceFile ?? (sourceFile = getSourceFileOfNode(node));
|
|
21033
|
+
const first2 = firstOrUndefined(getNodeChildren(node, sourceFile));
|
|
21024
21034
|
if (first2) {
|
|
21025
21035
|
return getTokenPosOfNode(first2, sourceFile, includeJsDoc);
|
|
21026
21036
|
}
|
|
21027
21037
|
}
|
|
21028
21038
|
return skipTrivia(
|
|
21029
|
-
(sourceFile
|
|
21039
|
+
(sourceFile ?? getSourceFileOfNode(node)).text,
|
|
21030
21040
|
node.pos,
|
|
21031
21041
|
/*stopAfterLineBreak*/
|
|
21032
21042
|
false,
|
|
@@ -24629,11 +24639,11 @@ ${lanes.join("\n")}
|
|
|
24629
24639
|
return emitOutputFilePathWithoutExtension + extension;
|
|
24630
24640
|
}
|
|
24631
24641
|
function getDeclarationEmitOutputFilePath(fileName, host) {
|
|
24632
|
-
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host
|
|
24642
|
+
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host);
|
|
24633
24643
|
}
|
|
24634
|
-
function getDeclarationEmitOutputFilePathWorker(fileName, options,
|
|
24644
|
+
function getDeclarationEmitOutputFilePathWorker(fileName, options, host) {
|
|
24635
24645
|
const outputDir = options.declarationDir || options.outDir;
|
|
24636
|
-
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir,
|
|
24646
|
+
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
|
|
24637
24647
|
const declarationExtension = getDeclarationEmitExtensionForPath(path);
|
|
24638
24648
|
return removeFileExtension(path) + declarationExtension;
|
|
24639
24649
|
}
|
|
@@ -33219,7 +33229,7 @@ ${lanes.join("\n")}
|
|
|
33219
33229
|
352
|
|
33220
33230
|
/* SyntaxList */
|
|
33221
33231
|
);
|
|
33222
|
-
|
|
33232
|
+
node._children = children;
|
|
33223
33233
|
return node;
|
|
33224
33234
|
}
|
|
33225
33235
|
function createNotEmittedStatement(original) {
|
|
@@ -36156,17 +36166,43 @@ ${lanes.join("\n")}
|
|
|
36156
36166
|
function isSyntaxList(n) {
|
|
36157
36167
|
return n.kind === 352;
|
|
36158
36168
|
}
|
|
36159
|
-
var
|
|
36160
|
-
function getNodeChildren(node) {
|
|
36161
|
-
|
|
36162
|
-
|
|
36169
|
+
var sourceFileToNodeChildren = /* @__PURE__ */ new WeakMap();
|
|
36170
|
+
function getNodeChildren(node, sourceFile) {
|
|
36171
|
+
var _a;
|
|
36172
|
+
const kind = node.kind;
|
|
36173
|
+
if (!isNodeKind(kind)) {
|
|
36174
|
+
return emptyArray;
|
|
36175
|
+
}
|
|
36176
|
+
if (kind === 352) {
|
|
36177
|
+
return node._children;
|
|
36178
|
+
}
|
|
36179
|
+
return (_a = sourceFileToNodeChildren.get(sourceFile)) == null ? void 0 : _a.get(node);
|
|
36163
36180
|
}
|
|
36164
|
-
function setNodeChildren(node, children) {
|
|
36165
|
-
|
|
36181
|
+
function setNodeChildren(node, sourceFile, children) {
|
|
36182
|
+
if (node.kind === 352) {
|
|
36183
|
+
Debug.fail("Should not need to re-set the children of a SyntaxList.");
|
|
36184
|
+
}
|
|
36185
|
+
let map2 = sourceFileToNodeChildren.get(sourceFile);
|
|
36186
|
+
if (map2 === void 0) {
|
|
36187
|
+
map2 = /* @__PURE__ */ new WeakMap();
|
|
36188
|
+
sourceFileToNodeChildren.set(sourceFile, map2);
|
|
36189
|
+
}
|
|
36190
|
+
map2.set(node, children);
|
|
36166
36191
|
return children;
|
|
36167
36192
|
}
|
|
36168
|
-
function unsetNodeChildren(node) {
|
|
36169
|
-
|
|
36193
|
+
function unsetNodeChildren(node, origSourceFile) {
|
|
36194
|
+
var _a;
|
|
36195
|
+
if (node.kind === 352) {
|
|
36196
|
+
Debug.fail("Did not expect to unset the children of a SyntaxList.");
|
|
36197
|
+
}
|
|
36198
|
+
(_a = sourceFileToNodeChildren.get(origSourceFile)) == null ? void 0 : _a.delete(node);
|
|
36199
|
+
}
|
|
36200
|
+
function transferSourceFileChildren(sourceFile, targetSourceFile) {
|
|
36201
|
+
const map2 = sourceFileToNodeChildren.get(sourceFile);
|
|
36202
|
+
if (map2 !== void 0) {
|
|
36203
|
+
sourceFileToNodeChildren.delete(sourceFile);
|
|
36204
|
+
sourceFileToNodeChildren.set(targetSourceFile, map2);
|
|
36205
|
+
}
|
|
36170
36206
|
}
|
|
36171
36207
|
function createEmptyExports(factory2) {
|
|
36172
36208
|
return factory2.createExportDeclaration(
|
|
@@ -39474,7 +39510,7 @@ ${lanes.join("\n")}
|
|
|
39474
39510
|
function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) {
|
|
39475
39511
|
if (isIdentifier3) {
|
|
39476
39512
|
identifierCount++;
|
|
39477
|
-
const pos = getNodePos();
|
|
39513
|
+
const pos = scanner2.hasLeadingAsterisks() ? scanner2.getTokenStart() : getNodePos();
|
|
39478
39514
|
const originalKeywordKind = token();
|
|
39479
39515
|
const text = internIdentifier(scanner2.getTokenValue());
|
|
39480
39516
|
const hasExtendedUnicodeEscape = scanner2.hasExtendedUnicodeEscape();
|
|
@@ -46315,6 +46351,7 @@ ${lanes.join("\n")}
|
|
|
46315
46351
|
aggressiveChecks
|
|
46316
46352
|
);
|
|
46317
46353
|
result.impliedNodeFormat = sourceFile.impliedNodeFormat;
|
|
46354
|
+
transferSourceFileChildren(sourceFile, result);
|
|
46318
46355
|
return result;
|
|
46319
46356
|
}
|
|
46320
46357
|
IncrementalParser2.updateSourceFile = updateSourceFile2;
|
|
@@ -46350,7 +46387,7 @@ ${lanes.join("\n")}
|
|
|
46350
46387
|
}
|
|
46351
46388
|
}
|
|
46352
46389
|
}
|
|
46353
|
-
function moveElementEntirelyPastChangeRange(element, isArray2, delta, oldText, newText, aggressiveChecks) {
|
|
46390
|
+
function moveElementEntirelyPastChangeRange(element, origSourceFile, isArray2, delta, oldText, newText, aggressiveChecks) {
|
|
46354
46391
|
if (isArray2) {
|
|
46355
46392
|
visitArray2(element);
|
|
46356
46393
|
} else {
|
|
@@ -46362,7 +46399,7 @@ ${lanes.join("\n")}
|
|
|
46362
46399
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
46363
46400
|
text = oldText.substring(node.pos, node.end);
|
|
46364
46401
|
}
|
|
46365
|
-
unsetNodeChildren(node);
|
|
46402
|
+
unsetNodeChildren(node, origSourceFile);
|
|
46366
46403
|
setTextRangePosEnd(node, node.pos + delta, node.end + delta);
|
|
46367
46404
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
46368
46405
|
Debug.assert(text === newText.substring(node.pos, node.end));
|
|
@@ -46436,6 +46473,7 @@ ${lanes.join("\n")}
|
|
|
46436
46473
|
if (child.pos > changeRangeOldEnd) {
|
|
46437
46474
|
moveElementEntirelyPastChangeRange(
|
|
46438
46475
|
child,
|
|
46476
|
+
sourceFile,
|
|
46439
46477
|
/*isArray*/
|
|
46440
46478
|
false,
|
|
46441
46479
|
delta,
|
|
@@ -46448,7 +46486,7 @@ ${lanes.join("\n")}
|
|
|
46448
46486
|
const fullEnd = child.end;
|
|
46449
46487
|
if (fullEnd >= changeStart) {
|
|
46450
46488
|
markAsIntersectingIncrementalChange(child);
|
|
46451
|
-
unsetNodeChildren(child);
|
|
46489
|
+
unsetNodeChildren(child, sourceFile);
|
|
46452
46490
|
adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);
|
|
46453
46491
|
forEachChild(child, visitNode3, visitArray2);
|
|
46454
46492
|
if (hasJSDocNodes(child)) {
|
|
@@ -46466,6 +46504,7 @@ ${lanes.join("\n")}
|
|
|
46466
46504
|
if (array.pos > changeRangeOldEnd) {
|
|
46467
46505
|
moveElementEntirelyPastChangeRange(
|
|
46468
46506
|
array,
|
|
46507
|
+
sourceFile,
|
|
46469
46508
|
/*isArray*/
|
|
46470
46509
|
true,
|
|
46471
46510
|
delta,
|
|
@@ -47178,7 +47217,6 @@ ${lanes.join("\n")}
|
|
|
47178
47217
|
affectsBuildInfo: true,
|
|
47179
47218
|
showInSimplifiedHelpView: true,
|
|
47180
47219
|
category: Diagnostics.Emit,
|
|
47181
|
-
transpileOptionValue: void 0,
|
|
47182
47220
|
defaultValueDescription: false,
|
|
47183
47221
|
description: Diagnostics.Create_sourcemaps_for_d_ts_files
|
|
47184
47222
|
},
|
|
@@ -47507,6 +47545,7 @@ ${lanes.join("\n")}
|
|
|
47507
47545
|
type: "boolean",
|
|
47508
47546
|
affectsEmit: true,
|
|
47509
47547
|
affectsBuildInfo: true,
|
|
47548
|
+
affectsSourceFile: true,
|
|
47510
47549
|
category: Diagnostics.Emit,
|
|
47511
47550
|
description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,
|
|
47512
47551
|
defaultValueDescription: false
|
|
@@ -47974,6 +48013,7 @@ ${lanes.join("\n")}
|
|
|
47974
48013
|
affectsEmit: true,
|
|
47975
48014
|
affectsBuildInfo: true,
|
|
47976
48015
|
affectsModuleResolution: true,
|
|
48016
|
+
affectsSourceFile: true,
|
|
47977
48017
|
category: Diagnostics.Language_and_Environment,
|
|
47978
48018
|
description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,
|
|
47979
48019
|
defaultValueDescription: "react"
|
|
@@ -57606,7 +57646,8 @@ ${lanes.join("\n")}
|
|
|
57606
57646
|
isUndefinedIdentifierExpression(node) {
|
|
57607
57647
|
Debug.assert(isExpressionNode(node));
|
|
57608
57648
|
return getSymbolAtLocation(node) === undefinedSymbol;
|
|
57609
|
-
}
|
|
57649
|
+
},
|
|
57650
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
57610
57651
|
});
|
|
57611
57652
|
var evaluate = createEvaluator({
|
|
57612
57653
|
evaluateElementAccessExpression,
|
|
@@ -58471,6 +58512,7 @@ ${lanes.join("\n")}
|
|
|
58471
58512
|
};
|
|
58472
58513
|
var amalgamatedDuplicates;
|
|
58473
58514
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
58515
|
+
var reverseHomomorphicMappedCache = /* @__PURE__ */ new Map();
|
|
58474
58516
|
var ambientModulesCache;
|
|
58475
58517
|
var patternAmbientModules;
|
|
58476
58518
|
var patternAmbientModuleAugmentations;
|
|
@@ -58598,6 +58640,21 @@ ${lanes.join("\n")}
|
|
|
58598
58640
|
];
|
|
58599
58641
|
initializeTypeChecker();
|
|
58600
58642
|
return checker;
|
|
58643
|
+
function isDefinitelyReferenceToGlobalSymbolObject(node) {
|
|
58644
|
+
if (!isPropertyAccessExpression(node)) return false;
|
|
58645
|
+
if (!isIdentifier(node.name)) return false;
|
|
58646
|
+
if (!isPropertyAccessExpression(node.expression) && !isIdentifier(node.expression)) return false;
|
|
58647
|
+
if (isIdentifier(node.expression)) {
|
|
58648
|
+
return idText(node.expression) === "Symbol" && getResolvedSymbol(node.expression) === (getGlobalSymbol(
|
|
58649
|
+
"Symbol",
|
|
58650
|
+
111551 | 1048576,
|
|
58651
|
+
/*diagnostic*/
|
|
58652
|
+
void 0
|
|
58653
|
+
) || unknownSymbol);
|
|
58654
|
+
}
|
|
58655
|
+
if (!isIdentifier(node.expression.expression)) return false;
|
|
58656
|
+
return idText(node.expression.name) === "Symbol" && idText(node.expression.expression) === "globalThis" && getResolvedSymbol(node.expression.expression) === globalThisSymbol;
|
|
58657
|
+
}
|
|
58601
58658
|
function getCachedType(key) {
|
|
58602
58659
|
return key ? cachedTypes.get(key) : void 0;
|
|
58603
58660
|
}
|
|
@@ -61987,11 +62044,11 @@ ${lanes.join("\n")}
|
|
|
61987
62044
|
function tryReuseExistingTypeNode(context, typeNode, type, host2, addUndefined) {
|
|
61988
62045
|
const originalType = type;
|
|
61989
62046
|
if (addUndefined) {
|
|
61990
|
-
type = getOptionalType(type);
|
|
62047
|
+
type = getOptionalType(type, !isParameter(host2));
|
|
61991
62048
|
}
|
|
61992
62049
|
const clone2 = tryReuseExistingNonParameterTypeNode(context, typeNode, type, host2);
|
|
61993
62050
|
if (clone2) {
|
|
61994
|
-
if (addUndefined && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
62051
|
+
if (addUndefined && containsNonMissingUndefinedType(type) && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
61995
62052
|
return factory.createUnionTypeNode([clone2, factory.createKeywordTypeNode(
|
|
61996
62053
|
157
|
|
61997
62054
|
/* UndefinedKeyword */
|
|
@@ -62977,7 +63034,21 @@ ${lanes.join("\n")}
|
|
|
62977
63034
|
}
|
|
62978
63035
|
function shouldUsePlaceholderForProperty(propertySymbol, context) {
|
|
62979
63036
|
var _a;
|
|
62980
|
-
|
|
63037
|
+
const depth = 3;
|
|
63038
|
+
return !!(getCheckFlags(propertySymbol) & 8192) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16) || isDeeplyNestedReverseMappedTypeProperty());
|
|
63039
|
+
function isDeeplyNestedReverseMappedTypeProperty() {
|
|
63040
|
+
var _a2;
|
|
63041
|
+
if ((((_a2 = context.reverseMappedStack) == null ? void 0 : _a2.length) ?? 0) < depth) {
|
|
63042
|
+
return false;
|
|
63043
|
+
}
|
|
63044
|
+
for (let i = 0; i < depth; i++) {
|
|
63045
|
+
const prop = context.reverseMappedStack[context.reverseMappedStack.length - 1 - i];
|
|
63046
|
+
if (prop.links.mappedType.symbol !== propertySymbol.links.mappedType.symbol) {
|
|
63047
|
+
return false;
|
|
63048
|
+
}
|
|
63049
|
+
}
|
|
63050
|
+
return true;
|
|
63051
|
+
}
|
|
62981
63052
|
}
|
|
62982
63053
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
62983
63054
|
var _a;
|
|
@@ -64181,8 +64252,8 @@ ${lanes.join("\n")}
|
|
|
64181
64252
|
return enclosingDeclaration;
|
|
64182
64253
|
}
|
|
64183
64254
|
function serializeTypeForDeclaration(context, declaration, type, symbol) {
|
|
64184
|
-
var _a;
|
|
64185
|
-
const
|
|
64255
|
+
var _a, _b;
|
|
64256
|
+
const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration);
|
|
64186
64257
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
64187
64258
|
const oldFlags = context.flags;
|
|
64188
64259
|
if (declaration && hasInferredType(declaration) && !(context.flags & -2147483648)) {
|
|
@@ -64193,6 +64264,7 @@ ${lanes.join("\n")}
|
|
|
64193
64264
|
const declWithExistingAnnotation = declaration && getNonlocalEffectiveTypeAnnotationNode(declaration) ? declaration : getDeclarationWithTypeAnnotation(symbol);
|
|
64194
64265
|
if (declWithExistingAnnotation && !isFunctionLikeDeclaration(declWithExistingAnnotation) && !isGetAccessorDeclaration(declWithExistingAnnotation)) {
|
|
64195
64266
|
const existing = getNonlocalEffectiveTypeAnnotationNode(declWithExistingAnnotation);
|
|
64267
|
+
const addUndefined = addUndefinedForParameter || !!(symbol.flags & 4 && symbol.flags & 16777216 && isOptionalDeclaration(declWithExistingAnnotation) && ((_a = symbol.links) == null ? void 0 : _a.mappedType) && containsNonMissingUndefinedType(type));
|
|
64196
64268
|
const result2 = !isTypePredicateNode(existing) && tryReuseExistingTypeNode(context, existing, type, declWithExistingAnnotation, addUndefined);
|
|
64197
64269
|
if (result2) {
|
|
64198
64270
|
context.flags = oldFlags;
|
|
@@ -64203,9 +64275,9 @@ ${lanes.join("\n")}
|
|
|
64203
64275
|
if (type.flags & 8192 && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)))) {
|
|
64204
64276
|
context.flags |= 1048576;
|
|
64205
64277
|
}
|
|
64206
|
-
const decl = declaration ?? symbol.valueDeclaration ?? ((
|
|
64278
|
+
const decl = declaration ?? symbol.valueDeclaration ?? ((_b = symbol.declarations) == null ? void 0 : _b[0]);
|
|
64207
64279
|
const expr = decl && isDeclarationWithPossibleInnerTypeNodeReuse(decl) ? getPossibleTypeNodeReuseExpression(decl) : void 0;
|
|
64208
|
-
const result = expressionOrTypeToTypeNode(context, expr, type,
|
|
64280
|
+
const result = expressionOrTypeToTypeNode(context, expr, type, addUndefinedForParameter);
|
|
64209
64281
|
context.flags = oldFlags;
|
|
64210
64282
|
return result;
|
|
64211
64283
|
}
|
|
@@ -64247,9 +64319,9 @@ ${lanes.join("\n")}
|
|
|
64247
64319
|
const typePredicate = getTypePredicateOfSignature(signature);
|
|
64248
64320
|
const type = getReturnTypeOfSignature(signature);
|
|
64249
64321
|
if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1) && signature.declaration && !nodeIsSynthesized(signature.declaration)) {
|
|
64250
|
-
const annotation =
|
|
64251
|
-
if (annotation
|
|
64252
|
-
const result =
|
|
64322
|
+
const annotation = getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration);
|
|
64323
|
+
if (annotation) {
|
|
64324
|
+
const result = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration);
|
|
64253
64325
|
if (result) {
|
|
64254
64326
|
return result;
|
|
64255
64327
|
}
|
|
@@ -64775,7 +64847,10 @@ ${lanes.join("\n")}
|
|
|
64775
64847
|
);
|
|
64776
64848
|
}
|
|
64777
64849
|
if (isNamedDeclaration(node) && node.name.kind === 167 && !isLateBindableName(node.name)) {
|
|
64778
|
-
if (!
|
|
64850
|
+
if (!hasDynamicName(node)) {
|
|
64851
|
+
return visitEachChild2(node, visitExistingNodeTreeSymbols);
|
|
64852
|
+
}
|
|
64853
|
+
if (!(context.flags & 1 && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1)) {
|
|
64779
64854
|
return void 0;
|
|
64780
64855
|
}
|
|
64781
64856
|
}
|
|
@@ -64908,7 +64983,7 @@ ${lanes.join("\n")}
|
|
|
64908
64983
|
if (result) {
|
|
64909
64984
|
if (result.pos !== -1 || result.end !== -1) {
|
|
64910
64985
|
if (result === nodes) {
|
|
64911
|
-
result = factory.createNodeArray(nodes, nodes.hasTrailingComma);
|
|
64986
|
+
result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma);
|
|
64912
64987
|
}
|
|
64913
64988
|
setTextRangePosEnd(result, -1, -1);
|
|
64914
64989
|
}
|
|
@@ -71333,7 +71408,7 @@ ${lanes.join("\n")}
|
|
|
71333
71408
|
);
|
|
71334
71409
|
}
|
|
71335
71410
|
function createSignatureTypeMapper(signature, typeArguments) {
|
|
71336
|
-
return createTypeMapper(signature.typeParameters, typeArguments);
|
|
71411
|
+
return createTypeMapper(sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp), typeArguments);
|
|
71337
71412
|
}
|
|
71338
71413
|
function getErasedSignature(signature) {
|
|
71339
71414
|
return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature;
|
|
@@ -76171,6 +76246,10 @@ ${lanes.join("\n")}
|
|
|
76171
76246
|
function containsUndefinedType(type) {
|
|
76172
76247
|
return !!((type.flags & 1048576 ? type.types[0] : type).flags & 32768);
|
|
76173
76248
|
}
|
|
76249
|
+
function containsNonMissingUndefinedType(type) {
|
|
76250
|
+
const candidate = type.flags & 1048576 ? type.types[0] : type;
|
|
76251
|
+
return !!(candidate.flags & 32768) && candidate !== missingType;
|
|
76252
|
+
}
|
|
76174
76253
|
function isStringIndexSignatureOnlyType(type) {
|
|
76175
76254
|
return type.flags & 524288 && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) || type.flags & 3145728 && every(type.types, isStringIndexSignatureOnlyType) || false;
|
|
76176
76255
|
}
|
|
@@ -80049,11 +80128,11 @@ ${lanes.join("\n")}
|
|
|
80049
80128
|
}
|
|
80050
80129
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
80051
80130
|
const cacheKey = source.id + "," + target.id + "," + constraint.id;
|
|
80052
|
-
if (
|
|
80053
|
-
return
|
|
80131
|
+
if (reverseHomomorphicMappedCache.has(cacheKey)) {
|
|
80132
|
+
return reverseHomomorphicMappedCache.get(cacheKey);
|
|
80054
80133
|
}
|
|
80055
80134
|
const type = createReverseMappedType(source, target, constraint);
|
|
80056
|
-
|
|
80135
|
+
reverseHomomorphicMappedCache.set(cacheKey, type);
|
|
80057
80136
|
return type;
|
|
80058
80137
|
}
|
|
80059
80138
|
function isPartiallyInferableType(type) {
|
|
@@ -83605,7 +83684,7 @@ ${lanes.join("\n")}
|
|
|
83605
83684
|
if (!canCollectSymbolAliasAccessabilityData) {
|
|
83606
83685
|
return;
|
|
83607
83686
|
}
|
|
83608
|
-
if (location.flags & 33554432) {
|
|
83687
|
+
if (location.flags & 33554432 && !isPropertySignature(location) && !isPropertyDeclaration(location)) {
|
|
83609
83688
|
return;
|
|
83610
83689
|
}
|
|
83611
83690
|
switch (hint) {
|
|
@@ -86799,11 +86878,7 @@ ${lanes.join("\n")}
|
|
|
86799
86878
|
checkGrammarJsxElement(node);
|
|
86800
86879
|
}
|
|
86801
86880
|
checkJsxPreconditions(node);
|
|
86802
|
-
|
|
86803
|
-
node,
|
|
86804
|
-
4
|
|
86805
|
-
/* Jsx */
|
|
86806
|
-
);
|
|
86881
|
+
markJsxAliasReferenced(node);
|
|
86807
86882
|
if (isNodeOpeningLikeElement) {
|
|
86808
86883
|
const jsxOpeningLikeNode = node;
|
|
86809
86884
|
const sig = getResolvedSignature(jsxOpeningLikeNode);
|
|
@@ -100577,15 +100652,14 @@ ${lanes.join("\n")}
|
|
|
100577
100652
|
function checkChildIdentifiers(node2) {
|
|
100578
100653
|
forEachNodeRecursively(node2, checkIdentifiers);
|
|
100579
100654
|
}
|
|
100655
|
+
function isExpressionNodeOrShorthandPropertyAssignmentName(node2) {
|
|
100656
|
+
return isExpressionNode(node2) || isShorthandPropertyAssignment(node2.parent) && (node2.parent.objectAssignmentInitializer ?? node2.parent.name) === node2;
|
|
100657
|
+
}
|
|
100580
100658
|
function checkSingleIdentifier(node2) {
|
|
100581
100659
|
const nodeLinks2 = getNodeLinks(node2);
|
|
100582
100660
|
nodeLinks2.calculatedFlags |= 536870912 | 16384 | 32768;
|
|
100583
|
-
if (isIdentifier(node2) &&
|
|
100584
|
-
const s =
|
|
100585
|
-
node2,
|
|
100586
|
-
/*ignoreErrors*/
|
|
100587
|
-
true
|
|
100588
|
-
);
|
|
100661
|
+
if (isIdentifier(node2) && isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) {
|
|
100662
|
+
const s = getResolvedSymbol(node2);
|
|
100589
100663
|
if (s && s !== unknownSymbol) {
|
|
100590
100664
|
checkIdentifierCalculateNodeCheckFlags(node2, s);
|
|
100591
100665
|
}
|
|
@@ -101102,7 +101176,8 @@ ${lanes.join("\n")}
|
|
|
101102
101176
|
resolveExternalModuleSymbol(sym);
|
|
101103
101177
|
return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
|
|
101104
101178
|
},
|
|
101105
|
-
isImportRequiredByAugmentation
|
|
101179
|
+
isImportRequiredByAugmentation,
|
|
101180
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
101106
101181
|
};
|
|
101107
101182
|
function isImportRequiredByAugmentation(node) {
|
|
101108
101183
|
const file = getSourceFileOfNode(node);
|
|
@@ -128383,6 +128458,7 @@ ${lanes.join("\n")}
|
|
|
128383
128458
|
}
|
|
128384
128459
|
function reportInferenceFallback(node) {
|
|
128385
128460
|
if (!isolatedDeclarations || isSourceFileJS(currentSourceFile)) return;
|
|
128461
|
+
if (getSourceFileOfNode(node) !== currentSourceFile) return;
|
|
128386
128462
|
if (isVariableDeclaration(node) && resolver.isExpandoFunctionDeclaration(node)) {
|
|
128387
128463
|
reportExpandoFunctionErrors(node);
|
|
128388
128464
|
} else {
|
|
@@ -129042,15 +129118,17 @@ ${lanes.join("\n")}
|
|
|
129042
129118
|
if (isDeclarationAndNotVisible(input)) return;
|
|
129043
129119
|
if (hasDynamicName(input)) {
|
|
129044
129120
|
if (isolatedDeclarations) {
|
|
129045
|
-
if (
|
|
129046
|
-
|
|
129047
|
-
|
|
129048
|
-
|
|
129049
|
-
|
|
129050
|
-
|
|
129051
|
-
|
|
129052
|
-
|
|
129053
|
-
|
|
129121
|
+
if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) {
|
|
129122
|
+
if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) {
|
|
129123
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));
|
|
129124
|
+
return;
|
|
129125
|
+
} else if (
|
|
129126
|
+
// Type declarations just need to double-check that the input computed name is an entity name expression
|
|
129127
|
+
(isInterfaceDeclaration(input.parent) || isTypeLiteralNode(input.parent)) && !isEntityNameExpression(input.name.expression)
|
|
129128
|
+
) {
|
|
129129
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));
|
|
129130
|
+
return;
|
|
129131
|
+
}
|
|
129054
129132
|
}
|
|
129055
129133
|
} else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) {
|
|
129056
129134
|
return;
|
|
@@ -130930,7 +131008,7 @@ ${lanes.join("\n")}
|
|
|
130930
131008
|
noEmitHelpers: true,
|
|
130931
131009
|
module: compilerOptions.module,
|
|
130932
131010
|
target: compilerOptions.target,
|
|
130933
|
-
sourceMap:
|
|
131011
|
+
sourceMap: emitOnly !== 2 && compilerOptions.declarationMap,
|
|
130934
131012
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
130935
131013
|
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
130936
131014
|
onlyPrintJsDocStyle: true,
|
|
@@ -131157,7 +131235,8 @@ ${lanes.join("\n")}
|
|
|
131157
131235
|
getJsxFragmentFactoryEntity: notImplemented,
|
|
131158
131236
|
isBindingCapturedByNode: notImplemented,
|
|
131159
131237
|
getDeclarationStatementsForSourceFile: notImplemented,
|
|
131160
|
-
isImportRequiredByAugmentation: notImplemented
|
|
131238
|
+
isImportRequiredByAugmentation: notImplemented,
|
|
131239
|
+
isDefinitelyReferenceToGlobalSymbolObject: notImplemented
|
|
131161
131240
|
};
|
|
131162
131241
|
var createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({}));
|
|
131163
131242
|
var createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true }));
|
|
@@ -139553,7 +139632,8 @@ ${lanes.join("\n")}
|
|
|
139553
139632
|
if (options.outDir || // there is --outDir specified
|
|
139554
139633
|
options.rootDir || // there is --rootDir specified
|
|
139555
139634
|
options.sourceRoot || // there is --sourceRoot specified
|
|
139556
|
-
options.mapRoot
|
|
139635
|
+
options.mapRoot || // there is --mapRoot specified
|
|
139636
|
+
getEmitDeclarations(options) && options.declarationDir) {
|
|
139557
139637
|
const dir = getCommonSourceDirectory2();
|
|
139558
139638
|
if (options.outDir && dir === "" && files.some((file) => getRootLength(file.fileName) > 1)) {
|
|
139559
139639
|
createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
|
|
@@ -140660,8 +140740,7 @@ ${lanes.join("\n")}
|
|
|
140660
140740
|
);
|
|
140661
140741
|
},
|
|
140662
140742
|
cancellationToken,
|
|
140663
|
-
|
|
140664
|
-
true,
|
|
140743
|
+
2,
|
|
140665
140744
|
/*customTransformers*/
|
|
140666
140745
|
void 0,
|
|
140667
140746
|
/*forceDtsEmit*/
|
|
@@ -148100,7 +148179,7 @@ ${lanes.join("\n")}
|
|
|
148100
148179
|
expression,
|
|
148101
148180
|
/*includeBigInt*/
|
|
148102
148181
|
false
|
|
148103
|
-
)) {
|
|
148182
|
+
) && !resolver.isDefinitelyReferenceToGlobalSymbolObject(expression)) {
|
|
148104
148183
|
context.tracker.reportInferenceFallback(prop.name);
|
|
148105
148184
|
result = false;
|
|
148106
148185
|
}
|
|
@@ -152215,6 +152294,7 @@ ${lanes.join("\n")}
|
|
|
152215
152294
|
function forEachNameOfDefaultExport(defaultExport, checker, compilerOptions, preferCapitalizedNames, cb) {
|
|
152216
152295
|
let chain;
|
|
152217
152296
|
let current = defaultExport;
|
|
152297
|
+
const seen = /* @__PURE__ */ new Map();
|
|
152218
152298
|
while (current) {
|
|
152219
152299
|
const fromDeclaration = getDefaultLikeExportNameFromDeclaration(current);
|
|
152220
152300
|
if (fromDeclaration) {
|
|
@@ -152226,6 +152306,7 @@ ${lanes.join("\n")}
|
|
|
152226
152306
|
if (final) return final;
|
|
152227
152307
|
}
|
|
152228
152308
|
chain = append(chain, current);
|
|
152309
|
+
if (!addToSeen(seen, current)) break;
|
|
152229
152310
|
current = current.flags & 2097152 ? checker.getImmediateAliasedSymbol(current) : void 0;
|
|
152230
152311
|
}
|
|
152231
152312
|
for (const symbol of chain ?? emptyArray) {
|
|
@@ -154837,7 +154918,7 @@ ${lanes.join("\n")}
|
|
|
154837
154918
|
}
|
|
154838
154919
|
const options = program.getCompilerOptions();
|
|
154839
154920
|
const outPath = options.outFile;
|
|
154840
|
-
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(),
|
|
154921
|
+
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(), program);
|
|
154841
154922
|
if (declarationPath === void 0) return void 0;
|
|
154842
154923
|
const newLoc = getDocumentPositionMapper2(declarationPath, info.fileName).getGeneratedPosition(info);
|
|
154843
154924
|
return newLoc === info ? void 0 : newLoc;
|
|
@@ -161930,9 +162011,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161930
162011
|
getChildAt(index, sourceFile) {
|
|
161931
162012
|
return this.getChildren(sourceFile)[index];
|
|
161932
162013
|
}
|
|
161933
|
-
getChildren(sourceFile) {
|
|
162014
|
+
getChildren(sourceFile = getSourceFileOfNode(this)) {
|
|
161934
162015
|
this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine");
|
|
161935
|
-
return getNodeChildren(this) ?? setNodeChildren(this, createChildren(this, sourceFile));
|
|
162016
|
+
return getNodeChildren(this, sourceFile) ?? setNodeChildren(this, sourceFile, createChildren(this, sourceFile));
|
|
161936
162017
|
}
|
|
161937
162018
|
getFirstToken(sourceFile) {
|
|
161938
162019
|
this.assertHasRealPosition();
|
|
@@ -162017,7 +162098,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162017
162098
|
pos = node.end;
|
|
162018
162099
|
}
|
|
162019
162100
|
addSyntheticNodes(children, pos, nodes.end, parent2);
|
|
162020
|
-
|
|
162101
|
+
list._children = children;
|
|
162021
162102
|
return list;
|
|
162022
162103
|
}
|
|
162023
162104
|
var TokenOrIdentifierObject = class {
|
|
@@ -175607,6 +175688,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
175607
175688
|
function visit(node) {
|
|
175608
175689
|
if (isLiteralImportTypeNode(node) && node.qualifier) {
|
|
175609
175690
|
const firstIdentifier = getFirstIdentifier(node.qualifier);
|
|
175691
|
+
if (!firstIdentifier.symbol) {
|
|
175692
|
+
return visitEachChild(
|
|
175693
|
+
node,
|
|
175694
|
+
visit,
|
|
175695
|
+
/*context*/
|
|
175696
|
+
void 0
|
|
175697
|
+
);
|
|
175698
|
+
}
|
|
175610
175699
|
const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
|
|
175611
175700
|
const qualifier = name !== firstIdentifier.text ? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name)) : node.qualifier;
|
|
175612
175701
|
symbols = append(symbols, firstIdentifier.symbol);
|
|
@@ -182186,7 +182275,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
182186
182275
|
return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol);
|
|
182187
182276
|
}
|
|
182188
182277
|
function getSourceFileLikeForImportDeclaration(node) {
|
|
182189
|
-
if (node.kind === 213) {
|
|
182278
|
+
if (node.kind === 213 || node.kind === 351) {
|
|
182190
182279
|
return node.getSourceFile();
|
|
182191
182280
|
}
|
|
182192
182281
|
const { parent: parent2 } = node;
|
|
@@ -196565,6 +196654,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
196565
196654
|
trace: () => trace,
|
|
196566
196655
|
tracing: () => tracing,
|
|
196567
196656
|
tracingEnabled: () => tracingEnabled,
|
|
196657
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
196568
196658
|
transform: () => transform,
|
|
196569
196659
|
transformClassFields: () => transformClassFields,
|
|
196570
196660
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -199375,7 +199465,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
199375
199465
|
this.generatedFilesMap.forEach((watcher, source) => {
|
|
199376
199466
|
const sourceFile = this.program.getSourceFileByPath(source);
|
|
199377
199467
|
if (!sourceFile || sourceFile.resolvedPath !== source || !this.isValidGeneratedFileWatcher(
|
|
199378
|
-
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.
|
|
199468
|
+
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.program),
|
|
199379
199469
|
watcher
|
|
199380
199470
|
)) {
|
|
199381
199471
|
closeFileWatcherOf(watcher);
|
|
@@ -838,6 +838,7 @@ var require_lrucache = __commonJS({
|
|
|
838
838
|
var require_range = __commonJS({
|
|
839
839
|
"node_modules/semver/classes/range.js"(exports, module) {
|
|
840
840
|
init_cjs_shims();
|
|
841
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
841
842
|
var Range = class _Range {
|
|
842
843
|
constructor(range, options) {
|
|
843
844
|
options = parseOptions(options);
|
|
@@ -851,13 +852,13 @@ var require_range = __commonJS({
|
|
|
851
852
|
if (range instanceof Comparator) {
|
|
852
853
|
this.raw = range.value;
|
|
853
854
|
this.set = [[range]];
|
|
854
|
-
this.
|
|
855
|
+
this.formatted = void 0;
|
|
855
856
|
return this;
|
|
856
857
|
}
|
|
857
858
|
this.options = options;
|
|
858
859
|
this.loose = !!options.loose;
|
|
859
860
|
this.includePrerelease = !!options.includePrerelease;
|
|
860
|
-
this.raw = range.trim().
|
|
861
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
861
862
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
862
863
|
if (!this.set.length) {
|
|
863
864
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -876,10 +877,27 @@ var require_range = __commonJS({
|
|
|
876
877
|
}
|
|
877
878
|
}
|
|
878
879
|
}
|
|
879
|
-
this.
|
|
880
|
+
this.formatted = void 0;
|
|
881
|
+
}
|
|
882
|
+
get range() {
|
|
883
|
+
if (this.formatted === void 0) {
|
|
884
|
+
this.formatted = "";
|
|
885
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
886
|
+
if (i > 0) {
|
|
887
|
+
this.formatted += "||";
|
|
888
|
+
}
|
|
889
|
+
const comps = this.set[i];
|
|
890
|
+
for (let k = 0; k < comps.length; k++) {
|
|
891
|
+
if (k > 0) {
|
|
892
|
+
this.formatted += " ";
|
|
893
|
+
}
|
|
894
|
+
this.formatted += comps[k].toString().trim();
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
return this.formatted;
|
|
880
899
|
}
|
|
881
900
|
format() {
|
|
882
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
883
901
|
return this.range;
|
|
884
902
|
}
|
|
885
903
|
toString() {
|
package/dist/commands/esbuild.js
CHANGED
package/dist/hooks/init/init.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KKF36Q6V.js";
|
|
4
4
|
import {
|
|
5
5
|
Hello
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NWCXLJN2.js";
|
|
7
7
|
import {
|
|
8
8
|
World
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NXT2QAWJ.js";
|
|
10
10
|
import {
|
|
11
11
|
init_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OV2PEOZH.js";
|
|
13
13
|
import {
|
|
14
14
|
require_ansis,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_src
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QTBOVN7I.js";
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2,
|
|
20
20
|
require_semver
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-S5N7NKOT.js";
|
|
22
22
|
import {
|
|
23
23
|
__toESM,
|
|
24
24
|
init_cjs_shims
|
|
@@ -500,7 +500,7 @@ var Plugins = class {
|
|
|
500
500
|
const url = name;
|
|
501
501
|
const output = await this.npm.install([...args, url], options);
|
|
502
502
|
const { dependencies } = await this.pjson();
|
|
503
|
-
const { default: npa } = await import("./npa-
|
|
503
|
+
const { default: npa } = await import("./npa-2DD665WN.js");
|
|
504
504
|
const normalizedUrl = npa(url);
|
|
505
505
|
const matches = Object.entries(dependencies ?? {}).find(([, u]) => {
|
|
506
506
|
const normalized = npa(u);
|
|
@@ -1134,6 +1134,10 @@ Use the <%= config.scopedEnvVarKey('NPM_REGISTRY') %> environment variable to se
|
|
|
1134
1134
|
import_core7.ux.action.stop(bold.red("failed"));
|
|
1135
1135
|
throw error;
|
|
1136
1136
|
}
|
|
1137
|
+
const pluginInstance = new import_core7.Plugin(plugin);
|
|
1138
|
+
await pluginInstance.load();
|
|
1139
|
+
this.config.plugins.set(pluginInstance.name, pluginInstance);
|
|
1140
|
+
await this.config.runHook("plugins:postinstall", {});
|
|
1137
1141
|
import_core7.ux.action.stop(`installed v${plugin.version}`);
|
|
1138
1142
|
}
|
|
1139
1143
|
}
|
|
@@ -1289,6 +1293,7 @@ var PluginsUninstall = class _PluginsUninstall extends import_core10.Command {
|
|
|
1289
1293
|
config: this.config,
|
|
1290
1294
|
logLevel: determineLogLevel(this.config, flags, "silent")
|
|
1291
1295
|
});
|
|
1296
|
+
const pluginNameToDelete = [];
|
|
1292
1297
|
if (argv.length === 0)
|
|
1293
1298
|
argv.push(".");
|
|
1294
1299
|
for (const plugin of argv) {
|
|
@@ -1305,12 +1310,17 @@ var PluginsUninstall = class _PluginsUninstall extends import_core10.Command {
|
|
|
1305
1310
|
const displayName = friendly === "." ? name : friendly ?? name;
|
|
1306
1311
|
import_core10.ux.action.start(`${this.config.name}: Uninstalling ${displayName}`);
|
|
1307
1312
|
await plugins.uninstall(name);
|
|
1313
|
+
pluginNameToDelete.push(name);
|
|
1308
1314
|
} catch (error) {
|
|
1309
1315
|
import_core10.ux.action.stop(bold.red("failed"));
|
|
1310
1316
|
throw error;
|
|
1311
1317
|
}
|
|
1312
1318
|
import_core10.ux.action.stop();
|
|
1313
1319
|
}
|
|
1320
|
+
for (const p of pluginNameToDelete) {
|
|
1321
|
+
this.config.plugins.delete(p);
|
|
1322
|
+
}
|
|
1323
|
+
await this.config.runHook("plugins:postuninstall", {});
|
|
1314
1324
|
}
|
|
1315
1325
|
};
|
|
1316
1326
|
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-esbuild",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"description": "Bundled plugin for testing",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@oclif/core": "^4",
|
|
15
|
-
"@oclif/plugin-test-esm-1": "^0.8.
|
|
16
|
-
"@oclif/plugin-plugins": "^5.
|
|
15
|
+
"@oclif/plugin-test-esm-1": "^0.8.15",
|
|
16
|
+
"@oclif/plugin-plugins": "^5.4.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@oclif/prettier-config": "^0.2.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint-config-oclif-typescript": "^3",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
30
|
"mocha": "^10",
|
|
31
|
-
"oclif": "^4.14.
|
|
31
|
+
"oclif": "^4.14.9",
|
|
32
32
|
"shx": "^0.3.4",
|
|
33
33
|
"ts-node": "^10.9.2",
|
|
34
34
|
"typescript": "^5"
|