311 Commits

Author SHA1 Message Date
Andrew Branch
019fec8bf2
Fix accidental ESM-mode directory module lookup in package non-root (#61082) 2025-01-30 10:17:14 -08:00
Andrew Branch
329387d76f
Fix missing failed lookup locations when resolving bare-specifier package.json "imports" (#60924) 2025-01-23 15:28:53 -08:00
Andrew Branch
b78f466812
Fix ESM/CJS resolution cache collision in non-nodenext resolution modes (#60910) 2025-01-21 11:10:51 -08:00
Andrew Branch
421f5c5458
Fix incorrect usage of package.json types/main in package subdirectories (#60696) 2024-12-06 13:47:41 -08:00
Mateusz Burzyński
48f2ada110
Add string literal completions for package.json imports field (#57718) 2024-10-31 13:33:40 -07:00
Andrew Branch
31de163db7
Do not mark #imports and self-name imports as external library imports in module resolution (#60228) 2024-10-15 10:53:32 -07:00
Andrew Branch
bd3d70058c
Rewrite relative import extensions with flag (#59767) 2024-09-27 12:27:16 -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
Daniel Rosenwasser
e6f3bafddf
Optimize path mapping lookups (#59048) 2024-08-29 09:17:24 -07:00
Jake Bailey
3f6f3164d6
Remove stableSort, rename sort to toSorted (#55728) 2024-07-23 18:17:07 -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
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
Jake Bailey
e30b5fbafe
Remove typescript-etw (#58832) 2024-06-13 13:04:51 -07:00
Jake Bailey
16beff101a
Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -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
Andrew Branch
30095a225c
Do not populate exports pattern keys if more than one * exists (#58123) 2024-04-10 10:12:02 -07:00
Sheetal Nandi
98f2c120d8
Take into account peerDependency versions when calculating packageId (#57029)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-04-01 09:04:02 -07:00
Jake Bailey
23156cb970
Error on unused eslint directives, reenable lost eslint rules (#57350) 2024-02-27 10:49:41 -08:00
Andrew Branch
61200368bb
Use loader with extension substitution for package.json main, types, typesVersions (#57261) 2024-02-02 13:20:32 -08:00
Abraham Guo
3c9aea3ed1
enable @typescript-eslint/no-unused-vars (#57123) 2024-01-29 11:31:51 -08:00
Jake Bailey
1982349339
Update dependencies to latest compatible versions (#56561)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2024-01-19 12:44:01 -08:00
Andrew Branch
6cb6fc94ae
Add --module preserve, support require in --moduleResolution bundler (#56785) 2024-01-19 12:03:24 -08:00
Andrew Branch
69f2e2ae65
Issue better error when unresolvable package in --moduleResolution node10 resolves with --moduleResolution bundler (#56949) 2024-01-16 09:36:14 -08:00
Andrew Branch
0ea57f6ca1
Let AutoImportProvider find non-declaration files in wildcard exports... (#56848) 2024-01-03 15:01:49 -08:00
Emma Hamilton
fbcdb8cf4f
Add auto-import for the package.json imports field (#55015)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2023-12-21 09:48:03 -08:00
Jake Bailey
1d7c0c977a
Try and deal with CodeQL reports on replace("*", ...) (#56607) 2023-12-05 13:58:56 -08:00
Sheetal Nandi
b6121e400c
Replace disk path operations to use fileNames instead of path (#56476)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-11-27 22:21:29 -08:00
Andrew Branch
0ee2db33ca
Fix declaration emit in --moduleResolution bundler using wrong exports conditions (#56265) 2023-10-30 15:39:57 -07:00
Sheetal Nandi
9473195b6c
noDts project resolutions verification and updates for incremental behaviour (#56016) 2023-10-10 10:24:08 -07:00
Andrew Branch
1b70ac32b2
Support resolution-mode overrides in type-only constructs in all moduleResolution modes (#55725) 2023-09-26 14:20:05 -07:00
Andrew Branch
5b7b011518
Fix export path patterns with .d.ts target extensions in AutoImportProvider (#55815) 2023-09-21 15:03:11 -07:00
Sheetal Nandi
ec1414f627
Source files not affected by all module resolution options (#55790) 2023-09-20 16:45:32 -07:00
Jake Bailey
41a914f00d
Don't debug assert on broken link in moduleNameResolver (#55649) 2023-09-06 12:00:18 -07:00
Sampo Kivistö
ec2bd4e252
perf: replace String and Array indexOf method calls with includes method call (#55482) 2023-08-25 11:27:55 -07:00
Jake Bailey
5e8c261b6a
dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Sheetal Nandi
9261ca7a13
Share redirects cache key calculation between multiple caches used for module resolution and type reference directive (#55376) 2023-08-14 18:46:55 -07:00
Jake Bailey
3b43d841d1
Enable eslint rules prefer-rest-params and prefer-spread (#55181) 2023-08-11 15:07:06 -07:00
Andrew Branch
22a9ae9eed
Offer auto-imports from wildcard exports with AutoImportProvider (#54831) 2023-07-07 12:50:38 -05:00
Andrew Branch
5932420b0f
Fix self-name input linking for --allowJs --declaration projects (#54819)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-07-03 11:17:07 -07:00
Sheetal Nandi
3c4c060dff
Adds tests and fixes issues by verifying incremental project updates are handling language service ref counting correctly (#54504) 2023-06-06 11:11:14 -07:00
Andrew Branch
23d48364e4
Add to module resolution tracing (#54478) 2023-06-01 10:03:40 -07:00
Nathan Shively-Sanders
72037a9796
Skip resolving files directly inside node_modules (#52809) 2023-05-11 08:16:17 -07:00
Sheetal Nandi
8b825f7aaa
Handle module node found error reporting in incremental and watch scneario (#54115) 2023-05-09 13:42:26 -07:00
Sheetal Nandi
ddd5084659
Add resolveLibrary method on hosts and store resolvedLibraries in program so that resolutions can be reused (#53877) 2023-04-20 13:50:22 -07:00
Sheetal Nandi
53d378720a
When installing unrelated package inside scoped packages dont invalidate resolutions from everything in the scoped package (#53873) 2023-04-17 12:37:32 -07:00
Jake Bailey
ac55b297b7
Upgrade "boolean-trivia" lint to new "argument-trivia" lint that uses type info, has quick fixes, etc. (#53002) 2023-03-23 16:26:39 -07:00
Andrew Branch
7009c76d00
Support wildcard exports in tsconfig lookup (#53443) 2023-03-22 15:21:50 -07:00
Jake Bailey
a727ca1571
Make perfLogger potentially undefined rather than using a noop logger (#53229) 2023-03-15 15:58:26 -07:00