typescript 6.0.0-dev.20251124 → 6.0.0-dev.20251125

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 CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "6.0";
21
- var version = `${versionMajorMinor}.0-dev.20251124`;
21
+ var version = `${versionMajorMinor}.0-dev.20251125`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -6241,6 +6241,7 @@ var Diagnostics = {
6241
6241
  await_using_declarations_are_not_allowed_in_ambient_contexts: diag(1546, 1 /* Error */, "await_using_declarations_are_not_allowed_in_ambient_contexts_1546", "'await using' declarations are not allowed in ambient contexts."),
6242
6242
  using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block: diag(1547, 1 /* Error */, "using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block_1547", "'using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block."),
6243
6243
  await_using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block: diag(1548, 1 /* Error */, "await_using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block_1548", "'await using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block."),
6244
+ Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files: diag(1549, 3 /* Message */, "Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files_1549", "Ignore the tsconfig found and build with commandline options and files."),
6244
6245
  The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
6245
6246
  The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
6246
6247
  Call_signature_return_types_0_and_1_are_incompatible: diag(
@@ -7000,6 +7001,7 @@ var Diagnostics = {
7000
7001
  Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),
7001
7002
  Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),
7002
7003
  Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information: diag(5111, 3 /* Message */, "Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information_5111", "Visit https://aka.ms/ts6 for migration information."),
7004
+ tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConfig_to_skip_this_error: diag(5112, 1 /* Error */, "tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConf_5112", "tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error."),
7003
7005
  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."),
7004
7006
  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."),
7005
7007
  Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
@@ -36862,6 +36864,15 @@ var commandOptionsWithoutBuild = [
36862
36864
  description: Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,
36863
36865
  defaultValueDescription: false
36864
36866
  },
36867
+ {
36868
+ name: "ignoreConfig",
36869
+ type: "boolean",
36870
+ showInSimplifiedHelpView: true,
36871
+ category: Diagnostics.Command_line_Options,
36872
+ isCommandLineOnly: true,
36873
+ description: Diagnostics.Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files,
36874
+ defaultValueDescription: false
36875
+ },
36865
36876
  // Basic
36866
36877
  targetOptionDeclaration,
36867
36878
  moduleOptionDeclaration,
@@ -132055,18 +132066,23 @@ function executeCommandLineWorker(sys2, cb, commandLine) {
132055
132066
  return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
132056
132067
  }
132057
132068
  }
132058
- } else if (commandLine.fileNames.length === 0) {
132069
+ } else if (!commandLine.options.ignoreConfig || commandLine.fileNames.length === 0) {
132059
132070
  const searchPath = normalizePath(sys2.getCurrentDirectory());
132060
132071
  configFileName = findConfigFile(searchPath, (fileName) => sys2.fileExists(fileName));
132061
- }
132062
- if (commandLine.fileNames.length === 0 && !configFileName) {
132063
- if (commandLine.options.showConfig) {
132064
- reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys2.getCurrentDirectory())));
132065
- } else {
132066
- printVersion(sys2);
132067
- printHelp(sys2, commandLine);
132072
+ if (commandLine.fileNames.length !== 0) {
132073
+ if (configFileName) {
132074
+ reportDiagnostic(createCompilerDiagnostic(Diagnostics.tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConfig_to_skip_this_error));
132075
+ return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
132076
+ }
132077
+ } else if (!configFileName) {
132078
+ if (commandLine.options.showConfig) {
132079
+ reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys2.getCurrentDirectory())));
132080
+ } else {
132081
+ printVersion(sys2);
132082
+ printHelp(sys2, commandLine);
132083
+ }
132084
+ return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
132068
132085
  }
132069
- return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
132070
132086
  }
132071
132087
  const currentDirectory = sys2.getCurrentDirectory();
132072
132088
  const commandLineOptions = convertToOptionsWithAbsolutePaths(
package/lib/typescript.js CHANGED
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
2286
2286
 
2287
2287
  // src/compiler/corePublic.ts
2288
2288
  var versionMajorMinor = "6.0";
2289
- var version = `${versionMajorMinor}.0-dev.20251124`;
2289
+ var version = `${versionMajorMinor}.0-dev.20251125`;
2290
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2291
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2292
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -9642,6 +9642,7 @@ var Diagnostics = {
9642
9642
  await_using_declarations_are_not_allowed_in_ambient_contexts: diag(1546, 1 /* Error */, "await_using_declarations_are_not_allowed_in_ambient_contexts_1546", "'await using' declarations are not allowed in ambient contexts."),
9643
9643
  using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block: diag(1547, 1 /* Error */, "using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block_1547", "'using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block."),
9644
9644
  await_using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block: diag(1548, 1 /* Error */, "await_using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block_1548", "'await using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block."),
9645
+ Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files: diag(1549, 3 /* Message */, "Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files_1549", "Ignore the tsconfig found and build with commandline options and files."),
9645
9646
  The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
9646
9647
  The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
9647
9648
  Call_signature_return_types_0_and_1_are_incompatible: diag(
@@ -10401,6 +10402,7 @@ var Diagnostics = {
10401
10402
  Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),
10402
10403
  Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),
10403
10404
  Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information: diag(5111, 3 /* Message */, "Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information_5111", "Visit https://aka.ms/ts6 for migration information."),
10405
+ tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConfig_to_skip_this_error: diag(5112, 1 /* Error */, "tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConf_5112", "tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error."),
10404
10406
  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."),
10405
10407
  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."),
10406
10408
  Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
@@ -41140,6 +41142,15 @@ var commandOptionsWithoutBuild = [
41140
41142
  description: Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,
41141
41143
  defaultValueDescription: false
41142
41144
  },
41145
+ {
41146
+ name: "ignoreConfig",
41147
+ type: "boolean",
41148
+ showInSimplifiedHelpView: true,
41149
+ category: Diagnostics.Command_line_Options,
41150
+ isCommandLineOnly: true,
41151
+ description: Diagnostics.Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files,
41152
+ defaultValueDescription: false
41153
+ },
41143
41154
  // Basic
41144
41155
  targetOptionDeclaration,
41145
41156
  moduleOptionDeclaration,
@@ -137040,18 +137051,23 @@ function executeCommandLineWorker(sys2, cb, commandLine) {
137040
137051
  return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
137041
137052
  }
137042
137053
  }
137043
- } else if (commandLine.fileNames.length === 0) {
137054
+ } else if (!commandLine.options.ignoreConfig || commandLine.fileNames.length === 0) {
137044
137055
  const searchPath = normalizePath(sys2.getCurrentDirectory());
137045
137056
  configFileName = findConfigFile(searchPath, (fileName) => sys2.fileExists(fileName));
137046
- }
137047
- if (commandLine.fileNames.length === 0 && !configFileName) {
137048
- if (commandLine.options.showConfig) {
137049
- reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys2.getCurrentDirectory())));
137050
- } else {
137051
- printVersion(sys2);
137052
- printHelp(sys2, commandLine);
137057
+ if (commandLine.fileNames.length !== 0) {
137058
+ if (configFileName) {
137059
+ reportDiagnostic(createCompilerDiagnostic(Diagnostics.tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConfig_to_skip_this_error));
137060
+ return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
137061
+ }
137062
+ } else if (!configFileName) {
137063
+ if (commandLine.options.showConfig) {
137064
+ reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys2.getCurrentDirectory())));
137065
+ } else {
137066
+ printVersion(sys2);
137067
+ printHelp(sys2, commandLine);
137068
+ }
137069
+ return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
137053
137070
  }
137054
- return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */);
137055
137071
  }
137056
137072
  const currentDirectory = sys2.getCurrentDirectory();
137057
137073
  const commandLineOptions = convertToOptionsWithAbsolutePaths(
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": "6.0.0-dev.20251124",
5
+ "version": "6.0.0-dev.20251125",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "fbb051f500afe0f248afa07db7dd258f9f755ae0"
118
+ "gitHead": "669c25c091ad4d32298d0f33b0e4e681d46de3ea"
119
119
  }