Sheetal Nandi
216ed1b385
Get dts content from sourceFile if present
2019-01-24 13:47:27 -08:00
Sheetal Nandi
50d98aee0e
Create getters for js sourcemap, dts and dts map text getters in prepend nodes
2019-01-24 13:38:25 -08:00
Sheetal Nandi
dbae2cba47
add missing type annotation
2019-01-17 11:54:43 -08:00
Sheetal Nandi
9f3b77a8bd
PR feedback
2019-01-17 09:23:20 -08:00
Sheetal Nandi
3943588793
CompilerHostLikeForCache rename
2019-01-14 12:48:22 -08:00
Sheetal Nandi
c1edbb8522
Merge branch 'master' into incrementalBuild
2019-01-11 14:34:45 -08:00
Martin Probst
11b150129a
Do not process library reference directives with noLib set.
...
When a user sets `noLib`, this indicates that they will supply their own
list of `lib*.d.ts` files as part of input sources. In this situation,
TypeScript should not try to resolve library reference directives.
This avoids a problem where TypeScript loads a file that e.g. contains
`/// <reference lib="es2015.symbol"/>`. Previously, TypeScript would use
its builtin ts.libMap and attempt to load builtin libraries from the
TypeScript installation, instead of respecting the user-supplied set of
libraries.
2019-01-11 09:02:49 +01:00
Sheetal Nandi
42484b504e
Use DirectoryStructureHost for fileExists and readFile
2018-12-27 10:36:18 -08:00
Sheetal Nandi
48baa42d65
Make SolutionBuilder handle BuilderProgram in preparation to handle incremental builds
2018-12-21 12:53:25 -08:00
Sheetal Nandi
9e05abcfd3
Make BuilderProgram as Program
2018-12-21 12:53:15 -08:00
Sheetal Nandi
6cb3065194
Test to verify presence of .d.ts file
2018-12-06 15:22:45 -08:00
Sheetal Nandi
8d5d900567
Factor out caching logic so tsc (without watch can use it and --watch has its own cache logic).
2018-11-21 09:18:03 -08:00
Sheetal Nandi
c7f8959034
PR feedback.
2018-11-21 09:03:26 -08:00
Sheetal Nandi
6a37fd46fe
Cache results for readFile, fileExists, directory exists, sourceFiles for .d.ts files across the build (only first time)
2018-11-20 15:16:15 -08:00
Sheetal Nandi
979dac3ced
Create map from fileNames in referenced projects to resolvedProjectReference for quick determination of fileName to projectReferenceRedirect
2018-11-19 14:55:41 -08:00
Sheetal Nandi
121a350c5d
Instead of adding lib files, avoid creating diagnostics producing checker for container projects
2018-10-31 19:55:58 -07:00
Sheetal Nandi
851f739c82
Dont ignore libs since that could result in unexpected error
2018-10-31 15:50:22 -07:00
Sheetal Nandi
78174657e7
Do not add source files to container only project
2018-10-31 15:03:42 -07:00
Sheetal Nandi
60801a261c
Report error requiring references to have composite only if the program is not container only
2018-10-30 15:22:00 -07:00
Andy
7c515bf6e8
Remove toSortedArray and toDeduplicatedSortedArray, use sort and sortAndDeduplicate ( #28214 )
2018-10-30 08:41:31 -07:00
Andy
24febc2445
Allow to combine --resolveJsonModule with --isolatedModules ( #28207 )
2018-10-29 11:56:49 -07:00
Klaus Meinhardt
3fb8873bc2
don't resolve import types in JSDoc of TS files ( #28158 )
2018-10-26 09:50:12 -07:00
Sheetal Nandi
539b9a6d50
Merge pull request #28028 from ajafff/optimize-resolve-reusing-old-state
...
Fix performance regression when reusing old state
2018-10-25 11:12:53 -07:00
Wesley Wigham
05716a74a5
Add support for configuration inheritance via packages ( #27348 )
...
* Add support for configuration inheritance via packages
* Fix lint
* Propagate trace into config parse hosts
2018-10-25 10:19:57 -07:00
Nathan Shively-Sanders
ff6f94791f
Use regex+getTokenAtPosition to find dynamic import ( #28104 )
...
Instead of walking the entire tree. This stack overflows for large
trees.
Still need to adapt a test.
2018-10-24 11:27:39 -07:00
Klaus Meinhardt
3b058a4de4
fix compile errors, accept baselines
2018-10-22 21:12:12 +02:00
Klaus Meinhardt
63a8cb6933
use Map instead of Array
2018-10-21 19:57:23 +02:00
Klaus Meinhardt
ea0c7eb3ce
Fix performance regression when reusing old state
...
Fixes : #28025
2018-10-21 18:15:01 +02:00
Andy
72244c5b03
Support 'isSourceFileFromExternalLibrary' for source files from '/// <reference types="" />'' ( #28004 )
...
* Support 'isSourceFileFromExternalLibrary' for source files from '/// <reference types="" />''
* Calculate `isExternalLibraryImport` at the end
* Calculate isExternalLibraryImport with symlink path
2018-10-19 18:00:45 -07:00
Sheetal Nandi
b69622a114
Merge branch 'master' into transitiveReferences
2018-10-16 10:41:17 -07:00
Andy
0f4a615bcb
Fix isSourceFileFromExternalLibrary for file with redirect ( #27917 )
...
* Fix isSourceFileFromExternalLibrary for file with redirect
* Alternate fix
* Use currentNodeModulesDepth > 0
2018-10-16 09:01:25 -07:00
Sheetal Nandi
92f3f1cde0
Allow files to be included by *.json pattern in include of tsconfig
...
Fixes #25636
2018-10-11 14:45:27 -07:00
Sheetal Nandi
3e67cf43b0
Verify errors on transitively referenced files
2018-10-04 15:04:12 -07:00
Sheetal Nandi
94df5167b0
Handle resolution caching when referenced tsconfig changes
2018-10-04 15:04:12 -07:00
Sheetal Nandi
4d413a6a55
Fix the fileByName cache when program is used completely which breaks the getSourceFile not return redirected file by its name
2018-10-04 15:04:11 -07:00
Sheetal Nandi
0e4b10d726
Use resolution options of project reference if the file is from the project reference
2018-10-04 15:04:10 -07:00
Sheetal Nandi
0ac96580d5
Resolve project references transitively
2018-10-04 15:04:10 -07:00
Ryan Cavanaugh
70e26fc701
Merge pull request #27447 from mattmccutchen/issue-27117
...
Don't complain about `modules` and `outFile` options when `emitDeclarationOnly` is set.
2018-10-01 15:50:08 -07:00
Sheetal Nandi
1c2f2555ec
Add resolvedPath and originalFileName to redirected file
...
Fixes #27207
2018-10-01 11:51:45 -07:00
Matt McCutchen
32e75e7ae7
Don't complain about modules and outFile options when
...
`emitDeclarationOnly` is set.
Fixes #27117 .
2018-09-28 21:07:48 -04:00
Sheetal Nandi
3c6c32bdfc
Merge branch 'master' into projectReferenceInputDetection
2018-09-18 14:34:24 -07:00
Sheetal Nandi
865b3e7862
Merge pull request #27172 from Microsoft/moduleResolutionWithOutDir
...
Use originalFileName (fileName of input project reference file) to resolve module/typereferences/reference paths in it instead of output decl file path
2018-09-18 14:33:33 -07:00
Sheetal Nandi
4c047254e6
Ensure all the usages of compilerOptions.declaration take into account compilerOptions.composite if needed.
2018-09-18 13:53:16 -07:00
Sheetal Nandi
0d5aeeef22
Detect the input file of referenced project with fileNames from parsed command
...
Fixes #25864 and #26054
2018-09-18 11:44:16 -07:00
Sheetal Nandi
7852cf7ed3
Merge pull request #27175 from a-tarasyuk/bug/error-using-declaration-dir-with-composite
...
#26862 : allow using declarationDir with composite option
2018-09-18 10:53:38 -07:00
Alexander T
5b5af23b41
use getEmitDeclarations helper
2018-09-18 14:46:42 +03:00
Alexander T
d11117829d
allow using declarationDir with composite option
2018-09-18 14:38:48 +03:00
Alexander T
c510df1a53
deny using allowJs option with composite
2018-09-18 12:41:30 +03:00
Sheetal Nandi
d51b8d940c
Use originalFileName (fileName of input project reference file) to resolve module/typereferences/reference paths in it instead of output decl file path
...
This also ensures that originalFileName, resolvedPath are set correctly even when we are reusing program structure
Fixes #26036
2018-09-17 19:00:30 -07:00
Ryan Cavanaugh
8ca01dfc9f
Merge pull request #26851 from ajafff/assert-compilerhost-readdirectory
...
Assert CompilerHost.readDiretory for projectReferences with include
2018-09-17 16:13:08 -07:00