typescript 5.0.0-dev.20221214 → 5.0.0-dev.20221216
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/tsc.js +262 -173
- package/lib/tsserver.js +309 -208
- package/lib/tsserverlibrary.d.ts +2 -3
- package/lib/tsserverlibrary.js +310 -210
- package/lib/typescript.d.ts +2 -3
- package/lib/typescript.js +308 -209
- package/lib/typingsInstaller.js +58 -40
- package/package.json +1 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -50,7 +50,7 @@ var path = __toESM(require("path"));
|
|
|
50
50
|
|
|
51
51
|
// src/compiler/corePublic.ts
|
|
52
52
|
var versionMajorMinor = "5.0";
|
|
53
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
53
|
+
var version = `${versionMajorMinor}.0-dev.20221216`;
|
|
54
54
|
|
|
55
55
|
// src/compiler/core.ts
|
|
56
56
|
var emptyArray = [];
|
|
@@ -3196,7 +3196,7 @@ var DiagnosticCategory = /* @__PURE__ */ ((DiagnosticCategory2) => {
|
|
|
3196
3196
|
})(DiagnosticCategory || {});
|
|
3197
3197
|
var ModuleResolutionKind = /* @__PURE__ */ ((ModuleResolutionKind2) => {
|
|
3198
3198
|
ModuleResolutionKind2[ModuleResolutionKind2["Classic"] = 1] = "Classic";
|
|
3199
|
-
ModuleResolutionKind2[ModuleResolutionKind2["
|
|
3199
|
+
ModuleResolutionKind2[ModuleResolutionKind2["Node10"] = 2] = "Node10";
|
|
3200
3200
|
ModuleResolutionKind2[ModuleResolutionKind2["Node16"] = 3] = "Node16";
|
|
3201
3201
|
ModuleResolutionKind2[ModuleResolutionKind2["NodeNext"] = 99] = "NodeNext";
|
|
3202
3202
|
ModuleResolutionKind2[ModuleResolutionKind2["Bundler"] = 100] = "Bundler";
|
|
@@ -5868,7 +5868,7 @@ var Diagnostics = {
|
|
|
5868
5868
|
Its_element_type_0_is_not_a_valid_JSX_element: diag(2789, 1 /* Error */, "Its_element_type_0_is_not_a_valid_JSX_element_2789", "Its element type '{0}' is not a valid JSX element."),
|
|
5869
5869
|
The_operand_of_a_delete_operator_must_be_optional: diag(2790, 1 /* Error */, "The_operand_of_a_delete_operator_must_be_optional_2790", "The operand of a 'delete' operator must be optional."),
|
|
5870
5870
|
Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later: diag(2791, 1 /* Error */, "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791", "Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),
|
|
5871
|
-
|
|
5871
|
+
Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option: diag(2792, 1 /* Error */, "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792", "Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),
|
|
5872
5872
|
The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible: diag(2793, 1 /* Error */, "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793", "The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),
|
|
5873
5873
|
Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise: diag(2794, 1 /* Error */, "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794", "Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),
|
|
5874
5874
|
The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types: diag(2795, 1 /* Error */, "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795", "The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),
|
|
@@ -6050,7 +6050,7 @@ var Diagnostics = {
|
|
|
6050
6050
|
Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(5067, 1 /* Error */, "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067", "Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),
|
|
6051
6051
|
Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig: diag(5068, 1 /* Error */, "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068", "Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),
|
|
6052
6052
|
Option_0_cannot_be_specified_without_specifying_option_1_or_option_2: diag(5069, 1 /* Error */, "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069", "Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),
|
|
6053
|
-
|
|
6053
|
+
Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic: diag(5070, 1 /* Error */, "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070", "Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),
|
|
6054
6054
|
Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext: diag(5071, 1 /* Error */, "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071", "Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),
|
|
6055
6055
|
Unknown_build_option_0: diag(5072, 1 /* Error */, "Unknown_build_option_0_5072", "Unknown build option '{0}'."),
|
|
6056
6056
|
Build_option_0_requires_a_value_of_type_1: diag(5073, 1 /* Error */, "Build_option_0_requires_a_value_of_type_1_5073", "Build option '{0}' requires a value of type {1}."),
|
|
@@ -6081,6 +6081,9 @@ var Diagnostics = {
|
|
|
6081
6081
|
Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler: diag(5098, 1 /* Error */, "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098", "Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),
|
|
6082
6082
|
Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(5099, 1 /* Error */, "Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Aster_5099", `Import assignment is not allowed when 'moduleResolution' is set to 'bundler'. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),
|
|
6083
6083
|
Export_assignment_cannot_be_used_when_moduleResolution_is_set_to_bundler_Consider_using_export_default_or_another_module_format_instead: diag(5100, 1 /* Error */, "Export_assignment_cannot_be_used_when_moduleResolution_is_set_to_bundler_Consider_using_export_defau_5100", "Export assignment cannot be used when 'moduleResolution' is set to 'bundler'. Consider using 'export default' or another module format instead."),
|
|
6084
|
+
Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error: diag(5101, 1 /* Error */, "Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_5101", `Flag '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify 'ignoreDeprecations: "{2}"' to silence this error.`),
|
|
6085
|
+
Flag_0_is_deprecated_Please_remove_it_from_your_configuration: diag(5102, 1 /* Error */, "Flag_0_is_deprecated_Please_remove_it_from_your_configuration_5102", "Flag '{0}' is deprecated. Please remove it from your configuration."),
|
|
6086
|
+
Invalid_value_for_ignoreDeprecations: diag(5103, 1 /* Error */, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."),
|
|
6084
6087
|
Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."),
|
|
6085
6088
|
Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."),
|
|
6086
6089
|
Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
|
|
@@ -9257,10 +9260,10 @@ function isAssertionKey(node) {
|
|
|
9257
9260
|
return isStringLiteral(node) || isIdentifier(node);
|
|
9258
9261
|
}
|
|
9259
9262
|
function isGeneratedIdentifier(node) {
|
|
9260
|
-
return isIdentifier(node) &&
|
|
9263
|
+
return isIdentifier(node) && node.autoGenerate !== void 0;
|
|
9261
9264
|
}
|
|
9262
9265
|
function isGeneratedPrivateIdentifier(node) {
|
|
9263
|
-
return isPrivateIdentifier(node) &&
|
|
9266
|
+
return isPrivateIdentifier(node) && node.autoGenerate !== void 0;
|
|
9264
9267
|
}
|
|
9265
9268
|
function isPrivateIdentifierClassElementDeclaration(node) {
|
|
9266
9269
|
return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name);
|
|
@@ -9909,7 +9912,7 @@ function tryGetTextOfPropertyName(name) {
|
|
|
9909
9912
|
switch (name.kind) {
|
|
9910
9913
|
case 79 /* Identifier */:
|
|
9911
9914
|
case 80 /* PrivateIdentifier */:
|
|
9912
|
-
return name.
|
|
9915
|
+
return name.autoGenerate ? void 0 : name.escapedText;
|
|
9913
9916
|
case 10 /* StringLiteral */:
|
|
9914
9917
|
case 8 /* NumericLiteral */:
|
|
9915
9918
|
case 14 /* NoSubstitutionTemplateLiteral */:
|
|
@@ -11158,9 +11161,16 @@ function Symbol4(flags, name) {
|
|
|
11158
11161
|
this.escapedName = name;
|
|
11159
11162
|
this.declarations = void 0;
|
|
11160
11163
|
this.valueDeclaration = void 0;
|
|
11161
|
-
this.id =
|
|
11162
|
-
this.mergeId =
|
|
11164
|
+
this.id = 0;
|
|
11165
|
+
this.mergeId = 0;
|
|
11163
11166
|
this.parent = void 0;
|
|
11167
|
+
this.members = void 0;
|
|
11168
|
+
this.exports = void 0;
|
|
11169
|
+
this.exportSymbol = void 0;
|
|
11170
|
+
this.constEnumOnlyModule = void 0;
|
|
11171
|
+
this.isReferenced = void 0;
|
|
11172
|
+
this.isAssigned = void 0;
|
|
11173
|
+
this.links = void 0;
|
|
11164
11174
|
}
|
|
11165
11175
|
function Type3(checker, flags) {
|
|
11166
11176
|
this.flags = flags;
|
|
@@ -11342,7 +11352,7 @@ function getEmitModuleResolutionKind(compilerOptions) {
|
|
|
11342
11352
|
if (moduleResolution === void 0) {
|
|
11343
11353
|
switch (getEmitModuleKind(compilerOptions)) {
|
|
11344
11354
|
case 1 /* CommonJS */:
|
|
11345
|
-
moduleResolution = 2 /*
|
|
11355
|
+
moduleResolution = 2 /* Node10 */;
|
|
11346
11356
|
break;
|
|
11347
11357
|
case 100 /* Node16 */:
|
|
11348
11358
|
moduleResolution = 3 /* Node16 */;
|
|
@@ -13019,15 +13029,23 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
13019
13029
|
const node = baseFactory2.createBaseIdentifierNode(79 /* Identifier */);
|
|
13020
13030
|
node.originalKeywordKind = originalKeywordKind;
|
|
13021
13031
|
node.escapedText = escapedText;
|
|
13022
|
-
node.
|
|
13032
|
+
node.autoGenerate = void 0;
|
|
13033
|
+
node.typeArguments = void 0;
|
|
13034
|
+
node.hasExtendedUnicodeEscape = void 0;
|
|
13035
|
+
node.jsDoc = void 0;
|
|
13036
|
+
node.jsDocCache = void 0;
|
|
13037
|
+
node.flowNode = void 0;
|
|
13038
|
+
node.symbol = void 0;
|
|
13023
13039
|
return node;
|
|
13024
13040
|
}
|
|
13025
13041
|
function createBaseGeneratedIdentifier(text, autoGenerateFlags, prefix, suffix) {
|
|
13026
13042
|
const node = createBaseIdentifier(escapeLeadingUnderscores(text), void 0);
|
|
13027
|
-
node.
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13043
|
+
node.autoGenerate = {
|
|
13044
|
+
flags: autoGenerateFlags,
|
|
13045
|
+
id: nextAutoGenerateId,
|
|
13046
|
+
prefix,
|
|
13047
|
+
suffix
|
|
13048
|
+
};
|
|
13031
13049
|
nextAutoGenerateId++;
|
|
13032
13050
|
return node;
|
|
13033
13051
|
}
|
|
@@ -13041,10 +13059,6 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
13041
13059
|
const node = createBaseIdentifier(escapeLeadingUnderscores(text), originalKeywordKind);
|
|
13042
13060
|
node.typeArguments = asNodeArray(typeArguments);
|
|
13043
13061
|
node.hasExtendedUnicodeEscape = hasExtendedUnicodeEscape;
|
|
13044
|
-
node.jsDoc = void 0;
|
|
13045
|
-
node.jsDocCache = void 0;
|
|
13046
|
-
node.flowNode = void 0;
|
|
13047
|
-
node.symbol = void 0;
|
|
13048
13062
|
if (node.originalKeywordKind === 133 /* AwaitKeyword */) {
|
|
13049
13063
|
node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */;
|
|
13050
13064
|
}
|
|
@@ -13089,7 +13103,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
13089
13103
|
function createBasePrivateIdentifier(escapedText) {
|
|
13090
13104
|
const node = baseFactory2.createBasePrivateIdentifierNode(80 /* PrivateIdentifier */);
|
|
13091
13105
|
node.escapedText = escapedText;
|
|
13092
|
-
node.
|
|
13106
|
+
node.autoGenerate = void 0;
|
|
13093
13107
|
node.transformFlags |= 16777216 /* ContainsClassFields */;
|
|
13094
13108
|
return node;
|
|
13095
13109
|
}
|
|
@@ -13100,10 +13114,12 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
13100
13114
|
}
|
|
13101
13115
|
function createBaseGeneratedPrivateIdentifier(text, autoGenerateFlags, prefix, suffix) {
|
|
13102
13116
|
const node = createBasePrivateIdentifier(escapeLeadingUnderscores(text));
|
|
13103
|
-
node.
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13117
|
+
node.autoGenerate = {
|
|
13118
|
+
flags: autoGenerateFlags,
|
|
13119
|
+
id: nextAutoGenerateId,
|
|
13120
|
+
prefix,
|
|
13121
|
+
suffix
|
|
13122
|
+
};
|
|
13107
13123
|
nextAutoGenerateId++;
|
|
13108
13124
|
return node;
|
|
13109
13125
|
}
|
|
@@ -15896,10 +15912,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15896
15912
|
function cloneGeneratedIdentifier(node) {
|
|
15897
15913
|
const clone2 = createBaseIdentifier(node.escapedText, void 0);
|
|
15898
15914
|
clone2.flags |= node.flags & ~8 /* Synthesized */;
|
|
15899
|
-
clone2.
|
|
15900
|
-
clone2.autoGenerateId = node.autoGenerateId;
|
|
15901
|
-
clone2.autoGeneratePrefix = node.autoGeneratePrefix;
|
|
15902
|
-
clone2.autoGenerateSuffix = node.autoGenerateSuffix;
|
|
15915
|
+
clone2.autoGenerate = { ...node.autoGenerate };
|
|
15903
15916
|
clone2.transformFlags = node.transformFlags;
|
|
15904
15917
|
setOriginalNode(clone2, node);
|
|
15905
15918
|
return clone2;
|
|
@@ -15920,10 +15933,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15920
15933
|
function cloneGeneratedPrivateIdentifier(node) {
|
|
15921
15934
|
const clone2 = createBasePrivateIdentifier(node.escapedText);
|
|
15922
15935
|
clone2.flags |= node.flags & ~8 /* Synthesized */;
|
|
15923
|
-
clone2.
|
|
15924
|
-
clone2.autoGenerateId = node.autoGenerateId;
|
|
15925
|
-
clone2.autoGeneratePrefix = node.autoGeneratePrefix;
|
|
15926
|
-
clone2.autoGenerateSuffix = node.autoGenerateSuffix;
|
|
15936
|
+
clone2.autoGenerate = { ...node.autoGenerate };
|
|
15927
15937
|
clone2.transformFlags = node.transformFlags;
|
|
15928
15938
|
setOriginalNode(clone2, node);
|
|
15929
15939
|
return clone2;
|
|
@@ -25172,12 +25182,14 @@ var commandOptionsWithoutBuild = [
|
|
|
25172
25182
|
{
|
|
25173
25183
|
name: "moduleResolution",
|
|
25174
25184
|
type: new Map(getEntries({
|
|
25175
|
-
|
|
25185
|
+
node10: 2 /* Node10 */,
|
|
25186
|
+
node: 2 /* Node10 */,
|
|
25176
25187
|
classic: 1 /* Classic */,
|
|
25177
25188
|
node16: 3 /* Node16 */,
|
|
25178
25189
|
nodenext: 99 /* NodeNext */,
|
|
25179
25190
|
bundler: 100 /* Bundler */
|
|
25180
25191
|
})),
|
|
25192
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
25181
25193
|
affectsModuleResolution: true,
|
|
25182
25194
|
paramType: Diagnostics.STRATEGY,
|
|
25183
25195
|
category: Diagnostics.Modules,
|
|
@@ -25697,6 +25709,11 @@ var commandOptionsWithoutBuild = [
|
|
|
25697
25709
|
description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,
|
|
25698
25710
|
category: Diagnostics.Language_and_Environment,
|
|
25699
25711
|
defaultValueDescription: Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules
|
|
25712
|
+
},
|
|
25713
|
+
{
|
|
25714
|
+
name: "ignoreDeprecations",
|
|
25715
|
+
type: "string",
|
|
25716
|
+
defaultValueDescription: void 0
|
|
25700
25717
|
}
|
|
25701
25718
|
];
|
|
25702
25719
|
var optionDeclarations = [
|
|
@@ -25808,8 +25825,9 @@ var defaultInitCompilerOptions = {
|
|
|
25808
25825
|
skipLibCheck: true
|
|
25809
25826
|
};
|
|
25810
25827
|
function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
|
|
25811
|
-
const namesOfType = arrayFrom(opt.type.keys())
|
|
25812
|
-
|
|
25828
|
+
const namesOfType = arrayFrom(opt.type.keys());
|
|
25829
|
+
const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k) => !opt.deprecatedKeys.has(k)) : namesOfType).map((key) => `'${key}'`).join(", ");
|
|
25830
|
+
return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames);
|
|
25813
25831
|
}
|
|
25814
25832
|
function getOptionName(option) {
|
|
25815
25833
|
return option.name;
|
|
@@ -26447,7 +26465,7 @@ function resolveModuleName(moduleName, containingFile, compilerOptions, host, ca
|
|
|
26447
26465
|
if (moduleResolution === void 0) {
|
|
26448
26466
|
switch (getEmitModuleKind(compilerOptions)) {
|
|
26449
26467
|
case 1 /* CommonJS */:
|
|
26450
|
-
moduleResolution = 2 /*
|
|
26468
|
+
moduleResolution = 2 /* Node10 */;
|
|
26451
26469
|
break;
|
|
26452
26470
|
case 100 /* Node16 */:
|
|
26453
26471
|
moduleResolution = 3 /* Node16 */;
|
|
@@ -26475,7 +26493,7 @@ function resolveModuleName(moduleName, containingFile, compilerOptions, host, ca
|
|
|
26475
26493
|
case 99 /* NodeNext */:
|
|
26476
26494
|
result = nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);
|
|
26477
26495
|
break;
|
|
26478
|
-
case 2 /*
|
|
26496
|
+
case 2 /* Node10 */:
|
|
26479
26497
|
result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
|
|
26480
26498
|
break;
|
|
26481
26499
|
case 1 /* Classic */:
|
|
@@ -26664,7 +26682,7 @@ function tryResolveJSModuleWorker(moduleName, initialDir, host) {
|
|
|
26664
26682
|
0 /* None */,
|
|
26665
26683
|
moduleName,
|
|
26666
26684
|
initialDir,
|
|
26667
|
-
{ moduleResolution: 2 /*
|
|
26685
|
+
{ moduleResolution: 2 /* Node10 */, allowJs: true },
|
|
26668
26686
|
host,
|
|
26669
26687
|
void 0,
|
|
26670
26688
|
2 /* JavaScript */,
|
|
@@ -26717,7 +26735,7 @@ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory,
|
|
|
26717
26735
|
trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
|
|
26718
26736
|
}
|
|
26719
26737
|
let result;
|
|
26720
|
-
if (getEmitModuleResolutionKind(compilerOptions) === 2 /*
|
|
26738
|
+
if (getEmitModuleResolutionKind(compilerOptions) === 2 /* Node10 */) {
|
|
26721
26739
|
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
26722
26740
|
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
26723
26741
|
result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
|
|
@@ -32966,7 +32984,7 @@ var nullLog = {
|
|
|
32966
32984
|
};
|
|
32967
32985
|
function typingToFileName(cachePath, packageName, installTypingHost, log2) {
|
|
32968
32986
|
try {
|
|
32969
|
-
const result = resolveModuleName(packageName, combinePaths(cachePath, "index.d.ts"), { moduleResolution: 2 /*
|
|
32987
|
+
const result = resolveModuleName(packageName, combinePaths(cachePath, "index.d.ts"), { moduleResolution: 2 /* Node10 */ }, installTypingHost);
|
|
32970
32988
|
return result.resolvedModule && result.resolvedModule.resolvedFileName;
|
|
32971
32989
|
} catch (e) {
|
|
32972
32990
|
if (log2.isEnabled()) {
|
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": "5.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20221216",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|