1429 Commits

Author SHA1 Message Date
Jake Bailey
220706eb03
Add new option "libReplacement" (#60829) 2025-01-23 17:34:52 -08:00
Jake Bailey
51d9a98c55
Ensure createProgram stops referencing rootNamesOrOptions to ensure oldProgram is GC'd (#61034)
Co-authored-by: cplepage <lepage.charlesphilippe@gmail.com>
2025-01-23 15:05:21 -08:00
Andrew Branch
cbac1ddfc7
Skip verifyCompilerOptions when possible on program updates (#60754)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2025-01-09 17:35:20 -08:00
Andrew Branch
f69580f821
Add --module node18 (#60722) 2024-12-13 10:16:23 -08:00
Andrew Branch
bd3d70058c
Rewrite relative import extensions with flag (#59767) 2024-09-27 12:27:16 -07:00
Sheetal Nandi
aa9df4d687
Fix incorrect mode calculation in typereference resolution (#60049) 2024-09-24 13:23:41 -07:00
Sheetal Nandi
49ad1a3917
Remove tsbuildInfo specification error now that we need it for non incremental scenarios as well and there is no way to disable it (#59960) 2024-09-18 10:41:58 -07:00
Sheetal Nandi
02b07a1788
Dont open composite projects to determine if script info is part of project (#59688) 2024-09-18 10:35:22 -07:00
Isabel Duan
52eaa7b02f
Enable --isolatedDeclarations on TS codebase (#59635)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-09-15 18:10:52 -07:00
Sheetal Nandi
87d0e771a8
Fix issues with global typings cache and what gets watches (#59869) 2024-09-05 13:06:30 -07:00
Andrew Branch
a5eec2485f
Simplify handling of node:-prefixed modules in auto-imports (#59702) 2024-08-21 16:43:21 -07:00
Jake Bailey
195203e971
Add regex eslint plugin, fix lints (#59371) 2024-08-13 14:16:53 -07:00
Andrew Branch
5e9b07001e
Actually set impliedNodeFormat in more cases (#59479) 2024-07-31 13:40:27 -07:00
Jake Bailey
3f6f3164d6
Remove stableSort, rename sort to toSorted (#55728) 2024-07-23 18:17:07 -07:00
Andrew Branch
a9139bfdfe
Only look up package.json type if module is node16/nodenext or file is in node_modules (#58825)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-07-17 09:23:51 -07:00
Sheetal Nandi
6369240da6
Store information in buildInfo to repopulate mode mismatch based on status of package.json (#59286) 2024-07-16 10:12:14 -07:00
Sheetal Nandi
9c093c13e6
Do not reuse ambient module name resolution from other files while determining if resolution can be reused (#59243) 2024-07-12 14:43:00 -07:00
Sheetal Nandi
247a98335d
In project, instead of iterating over program files to determine if file needs to be detached, do it through existing mechanism of releasing oldSourceFile (#59181) 2024-07-08 13:37:44 -07:00
Sheetal Nandi
cb98634f49
Remove errors if noEmit is sepcified with noCheck or emitDeclarationOnly (#59071) 2024-06-28 15:25:14 -07:00
Sheetal Nandi
6c68fdd4b5
Delay the calculation of common source root if it would be needed when calculation dts files (#59070) 2024-06-28 14:29:11 -07:00
Sheetal Nandi
22bbe867fd
Show dts errors with --noEmit, fix some of the incremental noEmit issues and support dts diagnostics and fix the caching diagnostics in program (#59065) 2024-06-28 13:55:49 -07:00
Lars Kappert
752135eb40
Remove unused exports & dead code (using Knip) (#56817)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-06-27 14:24:01 -07:00
Sheetal Nandi
7c011e766e
Refactor resolving module or type reference name (#59040) 2024-06-26 12:46:39 -07:00
Oleksandr T
c219989232
fix(58955): @import JSDoc tag doesn't seem to account for resolution-mode import attribute in TS v5.5.2 (#58966) 2024-06-24 15:09:04 -07:00
Sheetal Nandi
beb375a9ca
Fix incorrect lib condition again! (#58945) 2024-06-20 13:18:39 -07:00
Jake Bailey
aa249c094b
Revert "Fix incorrect condition of noLib" (PR 58867) (#58935) 2024-06-19 14:31:51 -07:00
Sheetal Nandi
4239025fa3
Fix incorrect condition of noLib (#58867) 2024-06-18 15:17:29 -07:00
Andrew Branch
56289733a4
Revert #57896 (#58857) 2024-06-13 16:40:23 -07:00
Gabriela Araujo Britto
4857546865
Region-based semantic diagnostics (#57842) 2024-06-13 16:21:01 -07:00
Andrew Branch
97f3f0c8dd
Disable #57896 (Respect package.json "type" and module-format-specific file extensions in more module modes) (#58831) 2024-06-12 16:48:25 -07:00
Sheetal Nandi
dca9182ca8
Always write tsbuildInfo when running tsc -b (#58626) 2024-06-12 13:46:19 -07:00
Sheetal Nandi
9edddc73ad
Write buildInfo even if we dont emit js or dts for --outFile scenarios (#58760) 2024-06-03 17:06:14 -07:00
Sheetal Nandi
40583ff9df
Mark file as skips typechecking if it contains ts-nocheck (#58593) 2024-05-31 12:18:43 -07:00
Wesley Wigham
bbfc1aa281
Enable JS emit for noCheck and noCheck for transpileModule (#58364) 2024-05-30 13:38:37 -07:00
Sheetal Nandi
cd40d26f01
Skip typechecking file when generating declaraiton to get d.ts signature for incremental build (#58592) 2024-05-21 14:09:44 -07:00
Sheetal Nandi
d84431e706
Handle root files listed in project config from referenced project to be same as if they were included through import (#58560) 2024-05-20 10:05:42 -07:00
Sheetal Nandi
ef01ea1ac6
Stop checking existing resolution now that we have concept of package ID (#58528) 2024-05-14 10:30:22 -07:00
Sheetal Nandi
e51cbc8764
Do not lowercase typeReference directive name (#58525) 2024-05-13 16:35:49 -07:00
Sheetal Nandi
524456ff5a
Fix incorrect usage of getResolvedTypeReferenceDirectives and some refactoring (#58527) 2024-05-13 16:03:40 -07:00
Andrew Branch
14b4529a69
Fix tslib resolutions (#58451)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2024-05-07 11:28:20 -07:00
Jake Bailey
16beff101a
Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Sheetal Nandi
fd81d04080
Lazy calculation of expensive file explaining diagnsotics and some caching to be used to share the diagnostic data (#58398) 2024-05-06 16:30:17 -07:00
Sheetal Nandi
7a38980a7e
Validate the options passed in are numbers instead of strings for our custom commandline options (#58388) 2024-05-01 14:51:36 -07:00
Wesley Wigham
f76727d17a
Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
Sheetal Nandi
95d23ca7d2
Treat the input file name from referenced project as "ts" rather than file extension it is when determining eliding file for program construction (#58308) 2024-04-26 13:15:02 -07:00
形素叢集・ぐらふぃーむ
42f238bfbb
Provide Syntax Checking for Regular Expressions (#55600)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:51:08 -07:00
Titian Cernicova-Dragomir
e62418e868
Isolated declarations errors (#58201)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 15:37:15 -07:00
Andrew Branch
e75f470be0
Report positionless tsconfig option errors on compilerOptions key (#58254) 2024-04-19 12:33:00 -07:00
Wesley Wigham
48870169dc
Check nearest package.json dependencies for possible package names for specifier candidates (#58176) 2024-04-18 17:43:08 -07:00
Jake Bailey
17e420daf6
Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095) 2024-04-18 09:06:32 -07:00