typescript 4.8.0-dev.20220510 → 4.8.0-dev.20220511
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/lib/cs/diagnosticMessages.generated.json +1 -0
- package/lib/de/diagnosticMessages.generated.json +1 -0
- package/lib/es/diagnosticMessages.generated.json +1 -0
- package/lib/it/diagnosticMessages.generated.json +1 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/ko/diagnosticMessages.generated.json +1 -0
- package/lib/lib.es2020.intl.d.ts +29 -5
- package/lib/lib.es2021.intl.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +1 -0
- package/lib/ru/diagnosticMessages.generated.json +1 -0
- package/lib/tsc.js +18 -6
- package/lib/tsserver.js +23 -8
- package/lib/tsserverlibrary.js +23 -8
- package/lib/typescript.js +23 -8
- package/lib/typescriptServices.js +23 -8
- package/lib/typingsInstaller.js +23 -8
- package/package.json +1 -1
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Požadované parametry typu nemůžou být až za volitelnými parametry typu.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Překlad pro modul {0} se našel v mezipaměti umístění {1}.",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Překlad pro direktivu odkazu na typ {0} se našel v mezipaměti umístění {1}.",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Kontrolní výrazy režimu řešení jsou nestabilní. Ke ztlumení této chyby použijte noční TypeScript. Zkuste provést aktualizaci pomocí příkazu npm install -D typescript@next.",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Režimy řešení se podporují pouze v případě, že hodnota moduleResolution je node16 nebo nodenext.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "keyof překládejte jen na názvy vlastností s hodnotami typu string (ne čísla ani symboly).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Překládá se modul {0} z {1}. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Erforderliche Typparameter dürfen nicht auf optionale Typparameter folgen.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Die Auflösung für das Modul \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Die Auflösung für die Typreferenzanweisung \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Assertionen im Auflösungsmodus sind instabil. Verwenden Sie „Nightly TypeScript“, um diesen Fehler zu beheben. Versuchen Sie die Aktualisierung mit „npm install -D typescript@next“ durchzuführen..",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Auflösungsmodi werden nur unterstützt, wenn „moduleResolution“ „node16“ oder „nodenext“ ist.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "\"keyof\" darf nur in Eigenschaftennamen mit Zeichenfolgenwert aufgelöst werden (keine Ziffern oder Symbole).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Das Modul \"{0}\" aus \"{1}\" wird aufgelöst. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Los parámetros de tipo requeridos pueden no seguir parámetros de tipo opcionales.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La resolución del módulo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La resolución de la directiva de referencia de tipo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Las aserciones del modo de resolución son inestables. Use TypeScript nocturno para silenciar este error. Intente actualizar con \"npm install -D typescript@next\".",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Los modos de resolución solo se admiten cuando \"moduleResolution\" es \"node16\" o \"nodenext\".",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Resolver \"keyof\" exclusivamente como nombres de propiedad con valores de cadena (sin números ni símbolos).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Resolviendo el módulo '{0}' de '{1}'. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "I parametri di tipo obbligatori potrebbero non seguire i parametri di tipo facoltativi.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La risoluzione per il modulo '{0}' è stata trovata nella cache dal percorso '{1}'.",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La risoluzione per la direttiva '{0}' del riferimento al tipo è stata trovata nella cache dal percorso '{1}'.",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Le asserzioni della modalità di risoluzione sono instabili. Usare TypeScript notturno per disattivare questo errore. Provare ad eseguire l'aggiornamento con 'npm install -D typescript@next'.",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Le modalità di risoluzione sono supportate solo quando 'moduleResolution' è 'node16' o 'nodenext'.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Risolvere 'keyof' solo in nomi di proprietà con valori stringa (senza numeri o simboli).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Risoluzione del modulo '{0}' da '{1}'. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必須の型パラメーターの後に、オプションの型パラメーターを続けることはできません。",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "モジュール '{0}' の解決が場所 '{1}' のキャッシュに見つかりました。",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "種類参照指令 '{0}' の解決策は、場所 '{1}' のキャッシュには見つかりませんでした。",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "解決モード アサーションが不安定です。夜間の TypeScript を使用して、このエラーを無音にします。'npm install -D typescript@next' で更新してみてください。",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "解決モードは、`moduleResolution` が `node16` または `nodenext` の場合にのみサポートされます。",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'keyof' を文字列値のプロパティ名のみに解決します (数字または記号なし)。",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== '{1}' からモジュール '{0}' を解決しています。========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "필수 형식 매개 변수는 선택적 형식 매개 변수 다음에 올 수 없습니다.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' 모듈에 대한 해결을 '{1}' 위치의 캐시에서 찾았습니다.",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{1}' 위치의 캐시에서 형식 참조 지시어 '{0}'에 대한 해상도가 발견되었습니다.",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "해결 모드 어설션이 불안정합니다. 야간 TypeScript를 사용하여 이 오류를 차단하십시오. 'npm install -D typescript@next'로 업데이트해 보세요.",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "해상도 모드는 `moduleResolution`이 `node16` 또는 `nodenext`인 경우에만 지원됩니다.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "문자열 값 속성 이름에 대해서만 'keyof'를 확인합니다(숫자나 기호 아님).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== '{1}'에서 '{0}' 모듈을 확인하는 중입니다. ========",
|
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -50,6 +50,25 @@ declare namespace Intl {
|
|
|
50
50
|
| "second"
|
|
51
51
|
| "seconds";
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Value of the `unit` property in objects returned by
|
|
55
|
+
* `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and
|
|
56
|
+
* `format` methods accept either singular or plural unit names as input,
|
|
57
|
+
* but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.
|
|
58
|
+
* "days").
|
|
59
|
+
*
|
|
60
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
|
61
|
+
*/
|
|
62
|
+
type RelativeTimeFormatUnitSingular =
|
|
63
|
+
| "year"
|
|
64
|
+
| "quarter"
|
|
65
|
+
| "month"
|
|
66
|
+
| "week"
|
|
67
|
+
| "day"
|
|
68
|
+
| "hour"
|
|
69
|
+
| "minute"
|
|
70
|
+
| "second";
|
|
71
|
+
|
|
53
72
|
/**
|
|
54
73
|
* The locale matching algorithm to use.
|
|
55
74
|
*
|
|
@@ -120,11 +139,16 @@ declare namespace Intl {
|
|
|
120
139
|
*
|
|
121
140
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
|
122
141
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
142
|
+
type RelativeTimeFormatPart =
|
|
143
|
+
| {
|
|
144
|
+
type: "literal";
|
|
145
|
+
value: string;
|
|
146
|
+
}
|
|
147
|
+
| {
|
|
148
|
+
type: Exclude<NumberFormatPartTypes, "literal">;
|
|
149
|
+
value: string;
|
|
150
|
+
unit: RelativeTimeFormatUnitSingular;
|
|
151
|
+
};
|
|
128
152
|
|
|
129
153
|
interface RelativeTimeFormat {
|
|
130
154
|
/**
|
package/lib/lib.es2021.intl.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare namespace Intl {
|
|
|
25
25
|
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
26
26
|
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
27
27
|
dayPeriod?: "narrow" | "short" | "long" | undefined;
|
|
28
|
-
fractionalSecondDigits?:
|
|
28
|
+
fractionalSecondDigits?: 1 | 2 | 3 | undefined;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Wymagane parametry typu mogą nie być zgodne z opcjonalnymi parametrami typu.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Znaleziono rozwiązanie dla modułu „{0}” w pamięci podręcznej z lokalizacji „{1}”.",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Znaleziono rozwiązanie dla dyrektywy odwołania do typu „{0}” w pamięci podręcznej z lokalizacji „{1}”.",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Asercje trybu rozdzielczości są niestabilne. Użyj nocnego języka TypeScript, aby wyciszyć ten błąd. Spróbuj zaktualizować za pomocą „npm install -D typescript@next”.",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Tryby rozdzielczości są obsługiwane tylko wtedy, gdy element „moduleResolution” ma wartość „node16” lub „nodenext”.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Rozwiązuj elementy „keyof” tylko do nazw właściwości mających jako wartość ciągi (nie liczby czy symbole).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Rozpoznawanie modułu „{0}” na podstawie „{1}”. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Os parâmetros de tipo necessários podem não seguir os parâmetros de tipo opcionais.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "A resolução para o módulo '{0}' foi encontrada no cache do local '{1}'.",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "A resolução para a diretiva de referência de tipo '{0}' foi encontrada no cache a partir do local '{1}'.",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "As declarações do modo de resolução são instável. Use o TypeScript noturno para silenciar esse erro. Tente atualizar com 'npm install -D typescript@next'.",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Os modos de resolução são suportados apenas quando `moduleResolution` for `node16` ou `nodenext`.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Resolva 'keyof' somente para nomes de propriedades com valores de cadeia de caracteres (sem números nem símbolos).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Resolvendo módulo '{0}' de '{1}'. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Обязательные параметры типа не могут следовать за необязательными параметрами типа.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Разрешение для модуля \"{0}\" найдено в кэше из расположения \"{1}\".",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Разрешение для директивы ссылки на тип \"{0}\" обнаружено в кэше из расположения \"{1}\".",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Утверждения в режиме разрешения нестабильны. Используйте ночную сборку TypeScript, чтобы скрыть эту ошибку. Для обновления попробуйте использовать команду \"npm install -D typescript@next\".",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Режимы разрешения поддерживаются только тогда, когда ''moduleResolution'' равно ''node16'' или ''nodenext''.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Разрешать \"keyof\" только в имена свойств со строковым значением (не числа и не символы).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Идет разрешение модуля \"{0}\" из \"{1}\". ========",
|
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.8";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220511";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -5578,6 +5578,7 @@ var ts;
|
|
|
5578
5578
|
resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, ts.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."),
|
|
5579
5579
|
resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, ts.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."),
|
|
5580
5580
|
Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, ts.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),
|
|
5581
|
+
Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, ts.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"),
|
|
5581
5582
|
The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),
|
|
5582
5583
|
Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead: diag(1471, ts.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),
|
|
5583
5584
|
catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
|
|
@@ -27695,6 +27696,9 @@ var ts;
|
|
|
27695
27696
|
return 1;
|
|
27696
27697
|
}
|
|
27697
27698
|
if (ts.isModifierKind(second) && second !== 131 && lookAhead(nextTokenIsIdentifier)) {
|
|
27699
|
+
if (nextToken() === 127) {
|
|
27700
|
+
return 0;
|
|
27701
|
+
}
|
|
27698
27702
|
return 1;
|
|
27699
27703
|
}
|
|
27700
27704
|
if (!isIdentifier() && second !== 108) {
|
|
@@ -33357,7 +33361,7 @@ var ts;
|
|
|
33357
33361
|
return undefined;
|
|
33358
33362
|
if (ts.length(specs) !== 1)
|
|
33359
33363
|
return specs;
|
|
33360
|
-
if (specs[0] ===
|
|
33364
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
33361
33365
|
return undefined;
|
|
33362
33366
|
return specs;
|
|
33363
33367
|
}
|
|
@@ -33591,6 +33595,7 @@ var ts;
|
|
|
33591
33595
|
function directoryOfCombinedPath(fileName, basePath) {
|
|
33592
33596
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
33593
33597
|
}
|
|
33598
|
+
ts.defaultIncludeSpec = "**/*";
|
|
33594
33599
|
function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache) {
|
|
33595
33600
|
if (existingOptions === void 0) { existingOptions = {}; }
|
|
33596
33601
|
if (resolutionStack === void 0) { resolutionStack = []; }
|
|
@@ -33643,6 +33648,7 @@ var ts;
|
|
|
33643
33648
|
}
|
|
33644
33649
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
33645
33650
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
33651
|
+
var isDefaultIncludeSpec = false;
|
|
33646
33652
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
33647
33653
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
33648
33654
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -33652,7 +33658,8 @@ var ts;
|
|
|
33652
33658
|
}
|
|
33653
33659
|
}
|
|
33654
33660
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
33655
|
-
includeSpecs = [
|
|
33661
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
33662
|
+
isDefaultIncludeSpec = true;
|
|
33656
33663
|
}
|
|
33657
33664
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
33658
33665
|
if (includeSpecs) {
|
|
@@ -33669,6 +33676,7 @@ var ts;
|
|
|
33669
33676
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
33670
33677
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
33671
33678
|
pathPatterns: undefined,
|
|
33679
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
33672
33680
|
};
|
|
33673
33681
|
}
|
|
33674
33682
|
function getFileNames(basePath) {
|
|
@@ -98173,7 +98181,7 @@ var ts;
|
|
|
98173
98181
|
break;
|
|
98174
98182
|
}
|
|
98175
98183
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
98176
|
-
if (!matchedByInclude)
|
|
98184
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
98177
98185
|
return undefined;
|
|
98178
98186
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
98179
98187
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -101495,6 +101503,8 @@ var ts;
|
|
|
101495
101503
|
var configFile = program.getCompilerOptions().configFile;
|
|
101496
101504
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
101497
101505
|
return undefined;
|
|
101506
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
101507
|
+
return true;
|
|
101498
101508
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json");
|
|
101499
101509
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
101500
101510
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -101559,9 +101569,11 @@ var ts;
|
|
|
101559
101569
|
if (matchedByFiles)
|
|
101560
101570
|
return ts.chainDiagnosticMessages(undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
101561
101571
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
101562
|
-
return matchedByInclude ?
|
|
101572
|
+
return ts.isString(matchedByInclude) ?
|
|
101563
101573
|
ts.chainDiagnosticMessages(undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
101564
|
-
ts.chainDiagnosticMessages(undefined,
|
|
101574
|
+
ts.chainDiagnosticMessages(undefined, matchedByInclude ?
|
|
101575
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
101576
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
101565
101577
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
101566
101578
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
101567
101579
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220511";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -8394,6 +8394,7 @@ var ts;
|
|
|
8394
8394
|
resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, ts.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."),
|
|
8395
8395
|
resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, ts.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."),
|
|
8396
8396
|
Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, ts.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),
|
|
8397
|
+
Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, ts.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"),
|
|
8397
8398
|
The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),
|
|
8398
8399
|
Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead: diag(1471, ts.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),
|
|
8399
8400
|
catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
|
|
@@ -34382,6 +34383,10 @@ var ts;
|
|
|
34382
34383
|
// isn't actually allowed, but we want to treat it as a lambda so we can provide
|
|
34383
34384
|
// a good error message.
|
|
34384
34385
|
if (ts.isModifierKind(second) && second !== 131 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) {
|
|
34386
|
+
if (nextToken() === 127 /* AsKeyword */) {
|
|
34387
|
+
// https://github.com/microsoft/TypeScript/issues/44466
|
|
34388
|
+
return 0 /* False */;
|
|
34389
|
+
}
|
|
34385
34390
|
return 1 /* True */;
|
|
34386
34391
|
}
|
|
34387
34392
|
// If we had "(" followed by something that's not an identifier,
|
|
@@ -40971,7 +40976,7 @@ var ts;
|
|
|
40971
40976
|
return undefined;
|
|
40972
40977
|
if (ts.length(specs) !== 1)
|
|
40973
40978
|
return specs;
|
|
40974
|
-
if (specs[0] ===
|
|
40979
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
40975
40980
|
return undefined;
|
|
40976
40981
|
return specs;
|
|
40977
40982
|
}
|
|
@@ -41249,6 +41254,8 @@ var ts;
|
|
|
41249
41254
|
// until consistent casing errors are reported
|
|
41250
41255
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
41251
41256
|
}
|
|
41257
|
+
/*@internal*/
|
|
41258
|
+
ts.defaultIncludeSpec = "**/*";
|
|
41252
41259
|
/**
|
|
41253
41260
|
* Parse the contents of a config file from json or json source file (tsconfig.json).
|
|
41254
41261
|
* @param json The contents of the config file to parse
|
|
@@ -41314,6 +41321,7 @@ var ts;
|
|
|
41314
41321
|
}
|
|
41315
41322
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
41316
41323
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
41324
|
+
var isDefaultIncludeSpec = false;
|
|
41317
41325
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
41318
41326
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
41319
41327
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -41323,7 +41331,8 @@ var ts;
|
|
|
41323
41331
|
}
|
|
41324
41332
|
}
|
|
41325
41333
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
41326
|
-
includeSpecs = [
|
|
41334
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
41335
|
+
isDefaultIncludeSpec = true;
|
|
41327
41336
|
}
|
|
41328
41337
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
41329
41338
|
// The exclude spec list is converted into a regular expression, which allows us to quickly
|
|
@@ -41342,7 +41351,8 @@ var ts;
|
|
|
41342
41351
|
validatedFilesSpec: ts.filter(filesSpecs, ts.isString),
|
|
41343
41352
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
41344
41353
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
41345
|
-
pathPatterns: undefined,
|
|
41354
|
+
pathPatterns: undefined,
|
|
41355
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
41346
41356
|
};
|
|
41347
41357
|
}
|
|
41348
41358
|
function getFileNames(basePath) {
|
|
@@ -118829,7 +118839,7 @@ var ts;
|
|
|
118829
118839
|
}
|
|
118830
118840
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
118831
118841
|
// Could be additional files specified as roots
|
|
118832
|
-
if (!matchedByInclude)
|
|
118842
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
118833
118843
|
return undefined;
|
|
118834
118844
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
118835
118845
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -122717,6 +122727,9 @@ var ts;
|
|
|
122717
122727
|
var configFile = program.getCompilerOptions().configFile;
|
|
122718
122728
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
122719
122729
|
return undefined;
|
|
122730
|
+
// Return true if its default include spec
|
|
122731
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
122732
|
+
return true;
|
|
122720
122733
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json" /* Json */);
|
|
122721
122734
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
122722
122735
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -122782,11 +122795,13 @@ var ts;
|
|
|
122782
122795
|
if (matchedByFiles)
|
|
122783
122796
|
return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
122784
122797
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
122785
|
-
return matchedByInclude ?
|
|
122798
|
+
return ts.isString(matchedByInclude) ?
|
|
122786
122799
|
ts.chainDiagnosticMessages(
|
|
122787
122800
|
/*details*/ undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
122788
|
-
// Could be additional files specified as roots
|
|
122789
|
-
ts.chainDiagnosticMessages(/*details*/ undefined,
|
|
122801
|
+
// Could be additional files specified as roots or matched by default include
|
|
122802
|
+
ts.chainDiagnosticMessages(/*details*/ undefined, matchedByInclude ?
|
|
122803
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
122804
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
122790
122805
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
122791
122806
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
122792
122807
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220511";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -8588,6 +8588,7 @@ var ts;
|
|
|
8588
8588
|
resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, ts.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."),
|
|
8589
8589
|
resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, ts.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."),
|
|
8590
8590
|
Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, ts.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),
|
|
8591
|
+
Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, ts.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"),
|
|
8591
8592
|
The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),
|
|
8592
8593
|
Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead: diag(1471, ts.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),
|
|
8593
8594
|
catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
|
|
@@ -34576,6 +34577,10 @@ var ts;
|
|
|
34576
34577
|
// isn't actually allowed, but we want to treat it as a lambda so we can provide
|
|
34577
34578
|
// a good error message.
|
|
34578
34579
|
if (ts.isModifierKind(second) && second !== 131 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) {
|
|
34580
|
+
if (nextToken() === 127 /* AsKeyword */) {
|
|
34581
|
+
// https://github.com/microsoft/TypeScript/issues/44466
|
|
34582
|
+
return 0 /* False */;
|
|
34583
|
+
}
|
|
34579
34584
|
return 1 /* True */;
|
|
34580
34585
|
}
|
|
34581
34586
|
// If we had "(" followed by something that's not an identifier,
|
|
@@ -41165,7 +41170,7 @@ var ts;
|
|
|
41165
41170
|
return undefined;
|
|
41166
41171
|
if (ts.length(specs) !== 1)
|
|
41167
41172
|
return specs;
|
|
41168
|
-
if (specs[0] ===
|
|
41173
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
41169
41174
|
return undefined;
|
|
41170
41175
|
return specs;
|
|
41171
41176
|
}
|
|
@@ -41443,6 +41448,8 @@ var ts;
|
|
|
41443
41448
|
// until consistent casing errors are reported
|
|
41444
41449
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
41445
41450
|
}
|
|
41451
|
+
/*@internal*/
|
|
41452
|
+
ts.defaultIncludeSpec = "**/*";
|
|
41446
41453
|
/**
|
|
41447
41454
|
* Parse the contents of a config file from json or json source file (tsconfig.json).
|
|
41448
41455
|
* @param json The contents of the config file to parse
|
|
@@ -41508,6 +41515,7 @@ var ts;
|
|
|
41508
41515
|
}
|
|
41509
41516
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
41510
41517
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
41518
|
+
var isDefaultIncludeSpec = false;
|
|
41511
41519
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
41512
41520
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
41513
41521
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -41517,7 +41525,8 @@ var ts;
|
|
|
41517
41525
|
}
|
|
41518
41526
|
}
|
|
41519
41527
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
41520
|
-
includeSpecs = [
|
|
41528
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
41529
|
+
isDefaultIncludeSpec = true;
|
|
41521
41530
|
}
|
|
41522
41531
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
41523
41532
|
// The exclude spec list is converted into a regular expression, which allows us to quickly
|
|
@@ -41536,7 +41545,8 @@ var ts;
|
|
|
41536
41545
|
validatedFilesSpec: ts.filter(filesSpecs, ts.isString),
|
|
41537
41546
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
41538
41547
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
41539
|
-
pathPatterns: undefined,
|
|
41548
|
+
pathPatterns: undefined,
|
|
41549
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
41540
41550
|
};
|
|
41541
41551
|
}
|
|
41542
41552
|
function getFileNames(basePath) {
|
|
@@ -119023,7 +119033,7 @@ var ts;
|
|
|
119023
119033
|
}
|
|
119024
119034
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
119025
119035
|
// Could be additional files specified as roots
|
|
119026
|
-
if (!matchedByInclude)
|
|
119036
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
119027
119037
|
return undefined;
|
|
119028
119038
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
119029
119039
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -122911,6 +122921,9 @@ var ts;
|
|
|
122911
122921
|
var configFile = program.getCompilerOptions().configFile;
|
|
122912
122922
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
122913
122923
|
return undefined;
|
|
122924
|
+
// Return true if its default include spec
|
|
122925
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
122926
|
+
return true;
|
|
122914
122927
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json" /* Json */);
|
|
122915
122928
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
122916
122929
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -122976,11 +122989,13 @@ var ts;
|
|
|
122976
122989
|
if (matchedByFiles)
|
|
122977
122990
|
return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
122978
122991
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
122979
|
-
return matchedByInclude ?
|
|
122992
|
+
return ts.isString(matchedByInclude) ?
|
|
122980
122993
|
ts.chainDiagnosticMessages(
|
|
122981
122994
|
/*details*/ undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
122982
|
-
// Could be additional files specified as roots
|
|
122983
|
-
ts.chainDiagnosticMessages(/*details*/ undefined,
|
|
122995
|
+
// Could be additional files specified as roots or matched by default include
|
|
122996
|
+
ts.chainDiagnosticMessages(/*details*/ undefined, matchedByInclude ?
|
|
122997
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
122998
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
122984
122999
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
122985
123000
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
122986
123001
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220511";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -8588,6 +8588,7 @@ var ts;
|
|
|
8588
8588
|
resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, ts.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."),
|
|
8589
8589
|
resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, ts.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."),
|
|
8590
8590
|
Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, ts.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),
|
|
8591
|
+
Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, ts.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"),
|
|
8591
8592
|
The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),
|
|
8592
8593
|
Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead: diag(1471, ts.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),
|
|
8593
8594
|
catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
|
|
@@ -34576,6 +34577,10 @@ var ts;
|
|
|
34576
34577
|
// isn't actually allowed, but we want to treat it as a lambda so we can provide
|
|
34577
34578
|
// a good error message.
|
|
34578
34579
|
if (ts.isModifierKind(second) && second !== 131 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) {
|
|
34580
|
+
if (nextToken() === 127 /* AsKeyword */) {
|
|
34581
|
+
// https://github.com/microsoft/TypeScript/issues/44466
|
|
34582
|
+
return 0 /* False */;
|
|
34583
|
+
}
|
|
34579
34584
|
return 1 /* True */;
|
|
34580
34585
|
}
|
|
34581
34586
|
// If we had "(" followed by something that's not an identifier,
|
|
@@ -41165,7 +41170,7 @@ var ts;
|
|
|
41165
41170
|
return undefined;
|
|
41166
41171
|
if (ts.length(specs) !== 1)
|
|
41167
41172
|
return specs;
|
|
41168
|
-
if (specs[0] ===
|
|
41173
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
41169
41174
|
return undefined;
|
|
41170
41175
|
return specs;
|
|
41171
41176
|
}
|
|
@@ -41443,6 +41448,8 @@ var ts;
|
|
|
41443
41448
|
// until consistent casing errors are reported
|
|
41444
41449
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
41445
41450
|
}
|
|
41451
|
+
/*@internal*/
|
|
41452
|
+
ts.defaultIncludeSpec = "**/*";
|
|
41446
41453
|
/**
|
|
41447
41454
|
* Parse the contents of a config file from json or json source file (tsconfig.json).
|
|
41448
41455
|
* @param json The contents of the config file to parse
|
|
@@ -41508,6 +41515,7 @@ var ts;
|
|
|
41508
41515
|
}
|
|
41509
41516
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
41510
41517
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
41518
|
+
var isDefaultIncludeSpec = false;
|
|
41511
41519
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
41512
41520
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
41513
41521
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -41517,7 +41525,8 @@ var ts;
|
|
|
41517
41525
|
}
|
|
41518
41526
|
}
|
|
41519
41527
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
41520
|
-
includeSpecs = [
|
|
41528
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
41529
|
+
isDefaultIncludeSpec = true;
|
|
41521
41530
|
}
|
|
41522
41531
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
41523
41532
|
// The exclude spec list is converted into a regular expression, which allows us to quickly
|
|
@@ -41536,7 +41545,8 @@ var ts;
|
|
|
41536
41545
|
validatedFilesSpec: ts.filter(filesSpecs, ts.isString),
|
|
41537
41546
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
41538
41547
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
41539
|
-
pathPatterns: undefined,
|
|
41548
|
+
pathPatterns: undefined,
|
|
41549
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
41540
41550
|
};
|
|
41541
41551
|
}
|
|
41542
41552
|
function getFileNames(basePath) {
|
|
@@ -119023,7 +119033,7 @@ var ts;
|
|
|
119023
119033
|
}
|
|
119024
119034
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
119025
119035
|
// Could be additional files specified as roots
|
|
119026
|
-
if (!matchedByInclude)
|
|
119036
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
119027
119037
|
return undefined;
|
|
119028
119038
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
119029
119039
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -122911,6 +122921,9 @@ var ts;
|
|
|
122911
122921
|
var configFile = program.getCompilerOptions().configFile;
|
|
122912
122922
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
122913
122923
|
return undefined;
|
|
122924
|
+
// Return true if its default include spec
|
|
122925
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
122926
|
+
return true;
|
|
122914
122927
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json" /* Json */);
|
|
122915
122928
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
122916
122929
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -122976,11 +122989,13 @@ var ts;
|
|
|
122976
122989
|
if (matchedByFiles)
|
|
122977
122990
|
return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
122978
122991
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
122979
|
-
return matchedByInclude ?
|
|
122992
|
+
return ts.isString(matchedByInclude) ?
|
|
122980
122993
|
ts.chainDiagnosticMessages(
|
|
122981
122994
|
/*details*/ undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
122982
|
-
// Could be additional files specified as roots
|
|
122983
|
-
ts.chainDiagnosticMessages(/*details*/ undefined,
|
|
122995
|
+
// Could be additional files specified as roots or matched by default include
|
|
122996
|
+
ts.chainDiagnosticMessages(/*details*/ undefined, matchedByInclude ?
|
|
122997
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
122998
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
122984
122999
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
122985
123000
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
122986
123001
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220511";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -8588,6 +8588,7 @@ var ts;
|
|
|
8588
8588
|
resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, ts.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."),
|
|
8589
8589
|
resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, ts.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."),
|
|
8590
8590
|
Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, ts.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),
|
|
8591
|
+
Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, ts.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"),
|
|
8591
8592
|
The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),
|
|
8592
8593
|
Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead: diag(1471, ts.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),
|
|
8593
8594
|
catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
|
|
@@ -34576,6 +34577,10 @@ var ts;
|
|
|
34576
34577
|
// isn't actually allowed, but we want to treat it as a lambda so we can provide
|
|
34577
34578
|
// a good error message.
|
|
34578
34579
|
if (ts.isModifierKind(second) && second !== 131 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) {
|
|
34580
|
+
if (nextToken() === 127 /* AsKeyword */) {
|
|
34581
|
+
// https://github.com/microsoft/TypeScript/issues/44466
|
|
34582
|
+
return 0 /* False */;
|
|
34583
|
+
}
|
|
34579
34584
|
return 1 /* True */;
|
|
34580
34585
|
}
|
|
34581
34586
|
// If we had "(" followed by something that's not an identifier,
|
|
@@ -41165,7 +41170,7 @@ var ts;
|
|
|
41165
41170
|
return undefined;
|
|
41166
41171
|
if (ts.length(specs) !== 1)
|
|
41167
41172
|
return specs;
|
|
41168
|
-
if (specs[0] ===
|
|
41173
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
41169
41174
|
return undefined;
|
|
41170
41175
|
return specs;
|
|
41171
41176
|
}
|
|
@@ -41443,6 +41448,8 @@ var ts;
|
|
|
41443
41448
|
// until consistent casing errors are reported
|
|
41444
41449
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
41445
41450
|
}
|
|
41451
|
+
/*@internal*/
|
|
41452
|
+
ts.defaultIncludeSpec = "**/*";
|
|
41446
41453
|
/**
|
|
41447
41454
|
* Parse the contents of a config file from json or json source file (tsconfig.json).
|
|
41448
41455
|
* @param json The contents of the config file to parse
|
|
@@ -41508,6 +41515,7 @@ var ts;
|
|
|
41508
41515
|
}
|
|
41509
41516
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
41510
41517
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
41518
|
+
var isDefaultIncludeSpec = false;
|
|
41511
41519
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
41512
41520
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
41513
41521
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -41517,7 +41525,8 @@ var ts;
|
|
|
41517
41525
|
}
|
|
41518
41526
|
}
|
|
41519
41527
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
41520
|
-
includeSpecs = [
|
|
41528
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
41529
|
+
isDefaultIncludeSpec = true;
|
|
41521
41530
|
}
|
|
41522
41531
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
41523
41532
|
// The exclude spec list is converted into a regular expression, which allows us to quickly
|
|
@@ -41536,7 +41545,8 @@ var ts;
|
|
|
41536
41545
|
validatedFilesSpec: ts.filter(filesSpecs, ts.isString),
|
|
41537
41546
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
41538
41547
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
41539
|
-
pathPatterns: undefined,
|
|
41548
|
+
pathPatterns: undefined,
|
|
41549
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
41540
41550
|
};
|
|
41541
41551
|
}
|
|
41542
41552
|
function getFileNames(basePath) {
|
|
@@ -119023,7 +119033,7 @@ var ts;
|
|
|
119023
119033
|
}
|
|
119024
119034
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
119025
119035
|
// Could be additional files specified as roots
|
|
119026
|
-
if (!matchedByInclude)
|
|
119036
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
119027
119037
|
return undefined;
|
|
119028
119038
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
119029
119039
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -122911,6 +122921,9 @@ var ts;
|
|
|
122911
122921
|
var configFile = program.getCompilerOptions().configFile;
|
|
122912
122922
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
122913
122923
|
return undefined;
|
|
122924
|
+
// Return true if its default include spec
|
|
122925
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
122926
|
+
return true;
|
|
122914
122927
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json" /* Json */);
|
|
122915
122928
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
122916
122929
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -122976,11 +122989,13 @@ var ts;
|
|
|
122976
122989
|
if (matchedByFiles)
|
|
122977
122990
|
return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
122978
122991
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
122979
|
-
return matchedByInclude ?
|
|
122992
|
+
return ts.isString(matchedByInclude) ?
|
|
122980
122993
|
ts.chainDiagnosticMessages(
|
|
122981
122994
|
/*details*/ undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
122982
|
-
// Could be additional files specified as roots
|
|
122983
|
-
ts.chainDiagnosticMessages(/*details*/ undefined,
|
|
122995
|
+
// Could be additional files specified as roots or matched by default include
|
|
122996
|
+
ts.chainDiagnosticMessages(/*details*/ undefined, matchedByInclude ?
|
|
122997
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
122998
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
122984
122999
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
122985
123000
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
122986
123001
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220511";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -8383,6 +8383,7 @@ var ts;
|
|
|
8383
8383
|
resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, ts.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."),
|
|
8384
8384
|
resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, ts.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."),
|
|
8385
8385
|
Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, ts.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),
|
|
8386
|
+
Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, ts.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"),
|
|
8386
8387
|
The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),
|
|
8387
8388
|
Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead: diag(1471, ts.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),
|
|
8388
8389
|
catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
|
|
@@ -34371,6 +34372,10 @@ var ts;
|
|
|
34371
34372
|
// isn't actually allowed, but we want to treat it as a lambda so we can provide
|
|
34372
34373
|
// a good error message.
|
|
34373
34374
|
if (ts.isModifierKind(second) && second !== 131 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) {
|
|
34375
|
+
if (nextToken() === 127 /* AsKeyword */) {
|
|
34376
|
+
// https://github.com/microsoft/TypeScript/issues/44466
|
|
34377
|
+
return 0 /* False */;
|
|
34378
|
+
}
|
|
34374
34379
|
return 1 /* True */;
|
|
34375
34380
|
}
|
|
34376
34381
|
// If we had "(" followed by something that's not an identifier,
|
|
@@ -40960,7 +40965,7 @@ var ts;
|
|
|
40960
40965
|
return undefined;
|
|
40961
40966
|
if (ts.length(specs) !== 1)
|
|
40962
40967
|
return specs;
|
|
40963
|
-
if (specs[0] ===
|
|
40968
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
40964
40969
|
return undefined;
|
|
40965
40970
|
return specs;
|
|
40966
40971
|
}
|
|
@@ -41238,6 +41243,8 @@ var ts;
|
|
|
41238
41243
|
// until consistent casing errors are reported
|
|
41239
41244
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
41240
41245
|
}
|
|
41246
|
+
/*@internal*/
|
|
41247
|
+
ts.defaultIncludeSpec = "**/*";
|
|
41241
41248
|
/**
|
|
41242
41249
|
* Parse the contents of a config file from json or json source file (tsconfig.json).
|
|
41243
41250
|
* @param json The contents of the config file to parse
|
|
@@ -41303,6 +41310,7 @@ var ts;
|
|
|
41303
41310
|
}
|
|
41304
41311
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
41305
41312
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
41313
|
+
var isDefaultIncludeSpec = false;
|
|
41306
41314
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
41307
41315
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
41308
41316
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -41312,7 +41320,8 @@ var ts;
|
|
|
41312
41320
|
}
|
|
41313
41321
|
}
|
|
41314
41322
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
41315
|
-
includeSpecs = [
|
|
41323
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
41324
|
+
isDefaultIncludeSpec = true;
|
|
41316
41325
|
}
|
|
41317
41326
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
41318
41327
|
// The exclude spec list is converted into a regular expression, which allows us to quickly
|
|
@@ -41331,7 +41340,8 @@ var ts;
|
|
|
41331
41340
|
validatedFilesSpec: ts.filter(filesSpecs, ts.isString),
|
|
41332
41341
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
41333
41342
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
41334
|
-
pathPatterns: undefined,
|
|
41343
|
+
pathPatterns: undefined,
|
|
41344
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
41335
41345
|
};
|
|
41336
41346
|
}
|
|
41337
41347
|
function getFileNames(basePath) {
|
|
@@ -118818,7 +118828,7 @@ var ts;
|
|
|
118818
118828
|
}
|
|
118819
118829
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
118820
118830
|
// Could be additional files specified as roots
|
|
118821
|
-
if (!matchedByInclude)
|
|
118831
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
118822
118832
|
return undefined;
|
|
118823
118833
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
118824
118834
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -122706,6 +122716,9 @@ var ts;
|
|
|
122706
122716
|
var configFile = program.getCompilerOptions().configFile;
|
|
122707
122717
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
122708
122718
|
return undefined;
|
|
122719
|
+
// Return true if its default include spec
|
|
122720
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
122721
|
+
return true;
|
|
122709
122722
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json" /* Json */);
|
|
122710
122723
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
122711
122724
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -122771,11 +122784,13 @@ var ts;
|
|
|
122771
122784
|
if (matchedByFiles)
|
|
122772
122785
|
return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
122773
122786
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
122774
|
-
return matchedByInclude ?
|
|
122787
|
+
return ts.isString(matchedByInclude) ?
|
|
122775
122788
|
ts.chainDiagnosticMessages(
|
|
122776
122789
|
/*details*/ undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
122777
|
-
// Could be additional files specified as roots
|
|
122778
|
-
ts.chainDiagnosticMessages(/*details*/ undefined,
|
|
122790
|
+
// Could be additional files specified as roots or matched by default include
|
|
122791
|
+
ts.chainDiagnosticMessages(/*details*/ undefined, matchedByInclude ?
|
|
122792
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
122793
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
122779
122794
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
122780
122795
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
122781
122796
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.8.0-dev.
|
|
5
|
+
"version": "4.8.0-dev.20220511",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|