@typescript-deploys/pr-build 5.5.0-pr-58333-2 → 5.5.0-pr-58337-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js CHANGED
@@ -7457,6 +7457,7 @@ var Diagnostics = {
7457
7457
  Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3 /* Message */, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
7458
7458
  Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
7459
7459
  Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
7460
+ Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3 /* Message */, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
7460
7461
  one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
7461
7462
  one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
7462
7463
  type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
@@ -18282,7 +18283,7 @@ function rangeOfTypeParameters(sourceFile, typeParameters) {
18282
18283
  return { pos, end };
18283
18284
  }
18284
18285
  function skipTypeChecking(sourceFile, options, host) {
18285
- return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);
18286
+ return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);
18286
18287
  }
18287
18288
  function isJsonEqual(a, b) {
18288
18289
  return a === b || typeof a === "object" && a !== null && typeof b === "object" && b !== null && equalOwnProperties(a, b, isJsonEqual);
@@ -36002,6 +36003,20 @@ var commandOptionsWithoutBuild = [
36002
36003
  defaultValueDescription: false,
36003
36004
  description: Diagnostics.Disable_emitting_comments
36004
36005
  },
36006
+ {
36007
+ name: "noCheck",
36008
+ type: "boolean",
36009
+ showInSimplifiedHelpView: false,
36010
+ category: Diagnostics.Compiler_Diagnostics,
36011
+ description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,
36012
+ transpileOptionValue: void 0,
36013
+ defaultValueDescription: false,
36014
+ affectsSemanticDiagnostics: true,
36015
+ affectsBuildInfo: true,
36016
+ extraValidation() {
36017
+ return [Diagnostics.Unknown_compiler_option_0, "noCheck"];
36018
+ }
36019
+ },
36005
36020
  {
36006
36021
  name: "noEmit",
36007
36022
  type: "boolean",
@@ -37849,11 +37864,11 @@ function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, exis
37849
37864
  const excludeOfRaw = getSpecsFromRaw("exclude");
37850
37865
  let isDefaultIncludeSpec = false;
37851
37866
  let excludeSpecs = toPropValue(excludeOfRaw);
37852
- if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
37853
- const outDir = raw.compilerOptions.outDir;
37854
- const declarationDir = raw.compilerOptions.declarationDir;
37867
+ if (excludeOfRaw === "no-prop") {
37868
+ const outDir = options.outDir;
37869
+ const declarationDir = options.declarationDir;
37855
37870
  if (outDir || declarationDir) {
37856
- excludeSpecs = [outDir, declarationDir].filter((d) => !!d);
37871
+ excludeSpecs = filter([outDir, declarationDir], (d) => !!d);
37857
37872
  }
37858
37873
  }
37859
37874
  if (filesSpecs === void 0 && includeSpecs === void 0) {
@@ -52082,6 +52097,7 @@ function createTypeChecker(host) {
52082
52097
  }
52083
52098
  }
52084
52099
  function serializeSymbol(symbol, isPrivate, propertyAsAlias) {
52100
+ void getPropertiesOfType(getTypeOfSymbol(symbol));
52085
52101
  const visitedSym = getMergedSymbol(symbol);
52086
52102
  if (visitedSymbols.has(getSymbolId(visitedSym))) {
52087
52103
  return;
@@ -74723,8 +74739,13 @@ function createTypeChecker(host) {
74723
74739
  if (cached && cached !== resolvingSignature && !candidatesOutArray) {
74724
74740
  return cached;
74725
74741
  }
74742
+ const saveResolutionStart = resolutionStart;
74743
+ if (saveResolutionStart === 0) {
74744
+ resolutionStart = resolutionTargets.length;
74745
+ }
74726
74746
  links.resolvedSignature = resolvingSignature;
74727
74747
  let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
74748
+ resolutionStart = saveResolutionStart;
74728
74749
  if (result !== resolvingSignature) {
74729
74750
  if (links.resolvedSignature !== resolvingSignature) {
74730
74751
  result = links.resolvedSignature;
@@ -85328,6 +85349,7 @@ function createTypeChecker(host) {
85328
85349
  if (!sym) {
85329
85350
  return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker);
85330
85351
  }
85352
+ resolveExternalModuleSymbol(sym);
85331
85353
  return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
85332
85354
  },
85333
85355
  isImportRequiredByAugmentation
@@ -112895,7 +112917,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
112895
112917
  const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;
112896
112918
  const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson);
112897
112919
  const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit;
112898
- if (emitOnly && !getEmitDeclarations(compilerOptions)) {
112920
+ if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck) {
112899
112921
  filesForEmit.forEach(collectLinkedAliases);
112900
112922
  }
112901
112923
  const declarationTransform = transformNodes(
@@ -120989,7 +121011,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
120989
121011
  continue;
120990
121012
  }
120991
121013
  const isFromNodeModulesSearch = resolution.isExternalLibraryImport;
120992
- const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension);
121014
+ const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName);
120993
121015
  const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName));
120994
121016
  const resolvedFileName = resolution.resolvedFileName;
120995
121017
  if (isFromNodeModulesSearch) {
@@ -121284,6 +121306,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
121284
121306
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit");
121285
121307
  }
121286
121308
  }
121309
+ if (options.noCheck) {
121310
+ if (options.noEmit) {
121311
+ createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "noCheck", "noEmit");
121312
+ }
121313
+ if (!options.emitDeclarationOnly) {
121314
+ createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "noCheck", "emitDeclarationOnly");
121315
+ }
121316
+ }
121287
121317
  if (options.emitDecoratorMetadata && !options.experimentalDecorators) {
121288
121318
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators");
121289
121319
  }
package/lib/typescript.js CHANGED
@@ -11068,6 +11068,7 @@ var Diagnostics = {
11068
11068
  Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3 /* Message */, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
11069
11069
  Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
11070
11070
  Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
11071
+ Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3 /* Message */, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
11071
11072
  one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
11072
11073
  one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
11073
11074
  type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
@@ -22549,7 +22550,7 @@ function rangeOfTypeParameters(sourceFile, typeParameters) {
22549
22550
  return { pos, end };
22550
22551
  }
22551
22552
  function skipTypeChecking(sourceFile, options, host) {
22552
- return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);
22553
+ return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);
22553
22554
  }
22554
22555
  function isJsonEqual(a, b) {
22555
22556
  return a === b || typeof a === "object" && a !== null && typeof b === "object" && b !== null && equalOwnProperties(a, b, isJsonEqual);
@@ -40475,6 +40476,20 @@ var commandOptionsWithoutBuild = [
40475
40476
  defaultValueDescription: false,
40476
40477
  description: Diagnostics.Disable_emitting_comments
40477
40478
  },
40479
+ {
40480
+ name: "noCheck",
40481
+ type: "boolean",
40482
+ showInSimplifiedHelpView: false,
40483
+ category: Diagnostics.Compiler_Diagnostics,
40484
+ description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,
40485
+ transpileOptionValue: void 0,
40486
+ defaultValueDescription: false,
40487
+ affectsSemanticDiagnostics: true,
40488
+ affectsBuildInfo: true,
40489
+ extraValidation() {
40490
+ return [Diagnostics.Unknown_compiler_option_0, "noCheck"];
40491
+ }
40492
+ },
40478
40493
  {
40479
40494
  name: "noEmit",
40480
40495
  type: "boolean",
@@ -42347,11 +42362,11 @@ function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, exis
42347
42362
  const excludeOfRaw = getSpecsFromRaw("exclude");
42348
42363
  let isDefaultIncludeSpec = false;
42349
42364
  let excludeSpecs = toPropValue(excludeOfRaw);
42350
- if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
42351
- const outDir = raw.compilerOptions.outDir;
42352
- const declarationDir = raw.compilerOptions.declarationDir;
42365
+ if (excludeOfRaw === "no-prop") {
42366
+ const outDir = options.outDir;
42367
+ const declarationDir = options.declarationDir;
42353
42368
  if (outDir || declarationDir) {
42354
- excludeSpecs = [outDir, declarationDir].filter((d) => !!d);
42369
+ excludeSpecs = filter([outDir, declarationDir], (d) => !!d);
42355
42370
  }
42356
42371
  }
42357
42372
  if (filesSpecs === void 0 && includeSpecs === void 0) {
@@ -56911,6 +56926,7 @@ function createTypeChecker(host) {
56911
56926
  }
56912
56927
  }
56913
56928
  function serializeSymbol(symbol, isPrivate, propertyAsAlias) {
56929
+ void getPropertiesOfType(getTypeOfSymbol(symbol));
56914
56930
  const visitedSym = getMergedSymbol(symbol);
56915
56931
  if (visitedSymbols.has(getSymbolId(visitedSym))) {
56916
56932
  return;
@@ -79552,8 +79568,13 @@ function createTypeChecker(host) {
79552
79568
  if (cached && cached !== resolvingSignature && !candidatesOutArray) {
79553
79569
  return cached;
79554
79570
  }
79571
+ const saveResolutionStart = resolutionStart;
79572
+ if (saveResolutionStart === 0) {
79573
+ resolutionStart = resolutionTargets.length;
79574
+ }
79555
79575
  links.resolvedSignature = resolvingSignature;
79556
79576
  let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
79577
+ resolutionStart = saveResolutionStart;
79557
79578
  if (result !== resolvingSignature) {
79558
79579
  if (links.resolvedSignature !== resolvingSignature) {
79559
79580
  result = links.resolvedSignature;
@@ -90157,6 +90178,7 @@ function createTypeChecker(host) {
90157
90178
  if (!sym) {
90158
90179
  return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker);
90159
90180
  }
90181
+ resolveExternalModuleSymbol(sym);
90160
90182
  return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
90161
90183
  },
90162
90184
  isImportRequiredByAugmentation
@@ -117922,7 +117944,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
117922
117944
  const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;
117923
117945
  const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson);
117924
117946
  const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit;
117925
- if (emitOnly && !getEmitDeclarations(compilerOptions)) {
117947
+ if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck) {
117926
117948
  filesForEmit.forEach(collectLinkedAliases);
117927
117949
  }
117928
117950
  const declarationTransform = transformNodes(
@@ -126062,7 +126084,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
126062
126084
  continue;
126063
126085
  }
126064
126086
  const isFromNodeModulesSearch = resolution.isExternalLibraryImport;
126065
- const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension);
126087
+ const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName);
126066
126088
  const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName));
126067
126089
  const resolvedFileName = resolution.resolvedFileName;
126068
126090
  if (isFromNodeModulesSearch) {
@@ -126357,6 +126379,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
126357
126379
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit");
126358
126380
  }
126359
126381
  }
126382
+ if (options.noCheck) {
126383
+ if (options.noEmit) {
126384
+ createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "noCheck", "noEmit");
126385
+ }
126386
+ if (!options.emitDeclarationOnly) {
126387
+ createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "noCheck", "emitDeclarationOnly");
126388
+ }
126389
+ }
126360
126390
  if (options.emitDecoratorMetadata && !options.experimentalDecorators) {
126361
126391
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators");
126362
126392
  }
@@ -141705,6 +141735,7 @@ function transpileWorker(input, transpileOptions, declaration) {
141705
141735
  options.declaration = true;
141706
141736
  options.emitDeclarationOnly = true;
141707
141737
  options.isolatedDeclarations = true;
141738
+ options.noCheck = true;
141708
141739
  } else {
141709
141740
  options.declaration = false;
141710
141741
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.5.0-pr-58333-2",
5
+ "version": "5.5.0-pr-58337-4",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [