@typescript-deploys/pr-build 5.5.0-pr-58323-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;
@@ -84464,18 +84485,6 @@ function createTypeChecker(host) {
84464
84485
  if (node.flags & 67108864 /* InWithStatement */) {
84465
84486
  return errorType;
84466
84487
  }
84467
- const containingFunction = findAncestor(node, (node2) => {
84468
- if (isFunctionLikeDeclaration(node2)) {
84469
- if (node2.asteriskToken) {
84470
- return true;
84471
- }
84472
- return "quit";
84473
- }
84474
- return false;
84475
- });
84476
- if (containingFunction) {
84477
- getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
84478
- }
84479
84488
  const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
84480
84489
  const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
84481
84490
  if (isPartOfTypeNode(node)) {
@@ -85340,6 +85349,7 @@ function createTypeChecker(host) {
85340
85349
  if (!sym) {
85341
85350
  return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker);
85342
85351
  }
85352
+ resolveExternalModuleSymbol(sym);
85343
85353
  return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
85344
85354
  },
85345
85355
  isImportRequiredByAugmentation
@@ -110474,12 +110484,13 @@ function createGetIsolatedDeclarationErrors(resolver) {
110474
110484
  // src/compiler/transformers/declarations.ts
110475
110485
  function getDeclarationDiagnostics(host, resolver, file) {
110476
110486
  const compilerOptions = host.getCompilerOptions();
110487
+ const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson);
110477
110488
  const result = transformNodes(
110478
110489
  resolver,
110479
110490
  host,
110480
110491
  factory,
110481
110492
  compilerOptions,
110482
- file ? [file] : filter(host.getSourceFiles(), isSourceFileNotJson),
110493
+ file ? contains(files, file) ? [file] : emptyArray : files,
110483
110494
  [transformDeclarations],
110484
110495
  /*allowDtsFiles*/
110485
110496
  false
@@ -112906,7 +112917,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
112906
112917
  const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;
112907
112918
  const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson);
112908
112919
  const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit;
112909
- if (emitOnly && !getEmitDeclarations(compilerOptions)) {
112920
+ if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck) {
112910
112921
  filesForEmit.forEach(collectLinkedAliases);
112911
112922
  }
112912
112923
  const declarationTransform = transformNodes(
@@ -121000,7 +121011,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
121000
121011
  continue;
121001
121012
  }
121002
121013
  const isFromNodeModulesSearch = resolution.isExternalLibraryImport;
121003
- const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension);
121014
+ const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName);
121004
121015
  const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName));
121005
121016
  const resolvedFileName = resolution.resolvedFileName;
121006
121017
  if (isFromNodeModulesSearch) {
@@ -121295,6 +121306,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
121295
121306
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit");
121296
121307
  }
121297
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
+ }
121298
121317
  if (options.emitDecoratorMetadata && !options.experimentalDecorators) {
121299
121318
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators");
121300
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;
@@ -89293,18 +89314,6 @@ function createTypeChecker(host) {
89293
89314
  if (node.flags & 67108864 /* InWithStatement */) {
89294
89315
  return errorType;
89295
89316
  }
89296
- const containingFunction = findAncestor(node, (node2) => {
89297
- if (isFunctionLikeDeclaration(node2)) {
89298
- if (node2.asteriskToken) {
89299
- return true;
89300
- }
89301
- return "quit";
89302
- }
89303
- return false;
89304
- });
89305
- if (containingFunction) {
89306
- getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
89307
- }
89308
89317
  const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
89309
89318
  const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
89310
89319
  if (isPartOfTypeNode(node)) {
@@ -90169,6 +90178,7 @@ function createTypeChecker(host) {
90169
90178
  if (!sym) {
90170
90179
  return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker);
90171
90180
  }
90181
+ resolveExternalModuleSymbol(sym);
90172
90182
  return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
90173
90183
  },
90174
90184
  isImportRequiredByAugmentation
@@ -115490,12 +115500,13 @@ function createGetIsolatedDeclarationErrors(resolver) {
115490
115500
  // src/compiler/transformers/declarations.ts
115491
115501
  function getDeclarationDiagnostics(host, resolver, file) {
115492
115502
  const compilerOptions = host.getCompilerOptions();
115503
+ const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson);
115493
115504
  const result = transformNodes(
115494
115505
  resolver,
115495
115506
  host,
115496
115507
  factory,
115497
115508
  compilerOptions,
115498
- file ? [file] : filter(host.getSourceFiles(), isSourceFileNotJson),
115509
+ file ? contains(files, file) ? [file] : emptyArray : files,
115499
115510
  [transformDeclarations],
115500
115511
  /*allowDtsFiles*/
115501
115512
  false
@@ -117933,7 +117944,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla
117933
117944
  const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;
117934
117945
  const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson);
117935
117946
  const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit;
117936
- if (emitOnly && !getEmitDeclarations(compilerOptions)) {
117947
+ if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck) {
117937
117948
  filesForEmit.forEach(collectLinkedAliases);
117938
117949
  }
117939
117950
  const declarationTransform = transformNodes(
@@ -126073,7 +126084,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
126073
126084
  continue;
126074
126085
  }
126075
126086
  const isFromNodeModulesSearch = resolution.isExternalLibraryImport;
126076
- const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension);
126087
+ const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName);
126077
126088
  const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName));
126078
126089
  const resolvedFileName = resolution.resolvedFileName;
126079
126090
  if (isFromNodeModulesSearch) {
@@ -126368,6 +126379,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
126368
126379
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit");
126369
126380
  }
126370
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
+ }
126371
126390
  if (options.emitDecoratorMetadata && !options.experimentalDecorators) {
126372
126391
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators");
126373
126392
  }
@@ -141716,6 +141735,7 @@ function transpileWorker(input, transpileOptions, declaration) {
141716
141735
  options.declaration = true;
141717
141736
  options.emitDeclarationOnly = true;
141718
141737
  options.isolatedDeclarations = true;
141738
+ options.noCheck = true;
141719
141739
  } else {
141720
141740
  options.declaration = false;
141721
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-58323-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": [