Alexander T
2c32308f35
no-null/no-null
2019-07-18 10:50:38 +03:00
Sheetal Nandi
103fe5fbc5
Merge branch 'master' into referencesPrototypeSourceFile
...
Uptodate to 3.6.0-dev.20190711
2019-07-11 12:05:36 -07:00
Sheetal Nandi
b631850978
Add option disableSourceOfProjectReferenceRedirect to disable using sources of project reference redirect from editor
2019-07-10 15:49:53 -07:00
Alexander T
9d01ef0f8e
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-07-10 14:36:10 +03:00
Sheetal Nandi
15b68a9396
Skip typechecking of source of project reference redirect
2019-07-03 15:39:29 -07:00
Nathan Shively-Sanders
722917f04e
Remove TODO
2019-07-03 09:50:03 -07:00
Nathan Shively-Sanders
e62d84cd88
Merge branch 'master' into report-multiple-overload-errors
2019-07-03 09:28:44 -07:00
Alexander T
9f474150c6
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-07-02 17:57:44 +03:00
Sheetal Nandi
f7ea0bab60
Refactoring
2019-07-01 14:33:39 -07:00
Sheetal Nandi
4d13f53df8
Merge branch 'master' into referencesPrototypeSourceFile
2019-07-01 11:50:11 -07:00
Sheetal Nandi
f72af3be60
Verify the scenarios when d.ts directory of dependency doesnt exist
2019-07-01 11:34:57 -07:00
Sheetal Nandi
96a8c86c65
Merge branch 'master' into referencesPrototypeSourceFile
2019-06-28 12:42:22 -07:00
Sheetal Nandi
4f802e7205
When checking sourceFile is from external library, use sourceFile.resolvedPath since thats how the source files are queried and thats the real path
...
Fixes #32086
2019-06-28 10:14:33 -07:00
Nathan Shively-Sanders
ba9d8e2e81
Switch DiagnosticMessageChain to be a tree
2019-06-27 16:30:35 -07:00
Sheetal Nandi
da9260c013
Create original project when location is in source of project reference redirect
2019-06-27 10:38:52 -07:00
Alexander T
769bb0b475
remove tslint configuration
2019-06-27 13:49:35 +03:00
Sheetal Nandi
012ecdacde
Add sourceOf project reference redirect to filesByName list for redirect path so that module symbol is correctly resolved
2019-06-26 14:56:21 -07:00
Alexander
7389200ce2
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-06-23 18:49:35 +03:00
Alexander T
702dc59b36
no-fallthrough
2019-06-22 10:50:25 +03:00
Sheetal Nandi
746b01e577
Check only for .d.ts files
2019-06-21 14:16:40 -07:00
Wesley Wigham
1cbace6eee
Remove secondary reference lookup implementation ( #32016 )
...
* Remove secondary reference lookup implementation
* Remove TODO
2019-06-21 13:26:29 -07:00
Sheetal Nandi
0adab8934a
Use source files instead of .d.ts files from project references
2019-06-21 13:14:28 -07:00
Alexander T
39c7e9a360
@typescript-eslint/unified-signatures
2019-06-20 11:47:12 +03:00
Alexander T
5ce8c831b4
prefer-const
2019-06-19 17:58:49 +03:00
Paul van Brenk
c5578a2b43
Update error message as requested by @danielrosenwasser
2019-06-04 19:08:34 -04:00
Paul van Brenk
a658f728a9
Include the project filepath in the error message for files not being
...
listed in the 'include' pattern. TS6307
2019-06-02 11:54:48 -04:00
Nathan Shively-Sanders
4d27361680
Allow JS with isolated modules ( #31483 )
...
* Allow JS with isolated modules
Previously legacy JS code was not allowed; it was required to use ES6
module syntax. Unfortunately, the check happens after parsing but before
binding, and the commonjs module indicator isn't set until binding
because it's not syntactically simple like the ES6 module indicator,
which is set during parsing.
So I decided that JS should be allowed during isolatedModules
unconditionally. We're not going to be transforming it anyway.
* Update baselines
* Switch test to outDir instead of noEmit
2019-05-23 11:09:28 -07:00
Sheetal Nandi
db150517d7
Ignore drive letters when comparing casings of the files with forceConsistentCasingInFileNames
...
Fixes #31327
2019-05-21 09:32:17 -07:00
Ron Buckton
0c1a283bf9
Add opt-in behavior for custom transforms to support bundles
2019-05-07 17:29:02 -07:00
Klaus Meinhardt
3c2f368908
add assert
2019-05-06 21:31:20 +02:00
Klaus Meinhardt
676ed3ead7
parseProjectReferenceConfigFile: always set SourceFile.path
2019-05-06 17:17:24 +02:00
Sheetal Nandi
a58fdf2b35
Include only files that can be emitted into the source file directory check for composite projects
...
Fixes #31181
2019-05-01 10:14:11 -07:00
Sheetal Nandi
1e22110991
Merge branch 'master' into cacheParseConfigFile
2019-04-29 13:08:30 -07:00
Sheetal Nandi
d4c2fdc6fd
Make changes to public API
2019-04-26 13:59:04 -07:00
Sheetal Nandi
94ee0dc769
Merge pull request #31100 from Microsoft/tsBuildCacheModuleResolution
...
Cache module resolutions across tsbuild to be able to resolve the modules faster
2019-04-26 07:33:59 -07:00
Max Heiber
f9d12ed54b
fix 31012 allow noEmitOnError with isolatedModules ( #34 ) ( #31043 )
...
fix #31012
Since the purpose of isolatedModules: true is to
do extra validation to ensure that separate
compilation is safe
Allowing emit in the presence of errors is
compatible with that intention.
Signed-off-by: Max Heiber <max.heiber@gmail.com>
2019-04-25 15:31:03 -07:00
amaksimovich2
5b79b942e8
add action for enabling experimentalDescorators option in user config… ( #30484 )
...
* add action for enabling experimentalDescorators option in user config file, change error message for this case #29035
* add missing changes in tests
* Add "experimental decorators" tests for jsconfig file
2019-04-25 14:55:04 -07:00
Sheetal Nandi
93b958e0ea
Share module resolution cache among different program
2019-04-24 12:47:01 -07:00
Sheetal Nandi
3264b64f08
Reuse map if module resolution is same for redirected and own files
2019-04-24 11:57:59 -07:00
Sheetal Nandi
fecafebf76
Add getParsedCommandLine optional method on compiler host to be able to provide parsedCommandLine instead of redoing work
2019-04-24 11:57:49 -07:00
Nathan Shively-Sanders
4420d1083b
Add diagnostics for relation cache size ( #30999 )
...
* Add diagnostics for relation cache size
* Move to extendedDiagnostics
* Single method that returns a 3-property object
* Fix double-space lint
2019-04-17 14:32:18 -07:00
Sheetal Nandi
7ccd86bf52
When old program resolved to module and that file is included, dont consider as ambient resolution.
...
Fixes #30422
2019-04-03 14:05:49 -07:00
Sheetal Nandi
602aec2f7d
Never create redirect for sourceFiles that get emitted to single output file
...
Fixes #30591
2019-04-02 14:55:48 -07:00
Sheetal Nandi
a4091ae8e3
Merge branch 'master' into incrementalFromCommandLine
2019-03-26 14:57:18 -07:00
Sheetal Nandi
021444a248
Make it as api so we can test it
2019-03-26 14:25:56 -07:00
Sheetal Nandi
35470b3f3b
Make tsbuildInfoFile as commandline option to tsc (and not tsc -b)
2019-03-25 14:47:36 -07:00
Sheetal Nandi
722afc18bb
Fix typo
2019-03-21 09:01:52 -07:00
Sheetal Nandi
8da384d32a
Report output file not built error for any module resolution that ends up to source file
...
Fixes #29918
2019-03-21 08:55:12 -07:00
Sheetal Nandi
34c3233d18
Allow --incremental to be command line option
2019-03-20 14:48:47 -07:00
Sheetal Nandi
03aee92782
PR feedback
2019-03-14 14:15:06 -07:00
Sheetal Nandi
bd229b5ed1
Exclude Json files from Project reference redirects from files to be emitted list
...
Fixes #30382
2019-03-14 11:22:26 -07:00
Sheetal Nandi
812ff98f61
Correct the generation of output file names for tsc --b
...
Fixes #30356
2019-03-13 11:23:14 -07:00
Sheetal Nandi
927c10ae31
Add output declaration files from referenced project into program if module: none
2019-03-08 17:48:14 -08:00
Sheetal Nandi
8b964f445f
Fix incorrect message when incremental is false with composite projects
2019-03-01 11:35:48 -08:00
Sheetal Nandi
cd195c91c6
Add options tsBuildInfoFile to provide name for the buildinfo file
2019-03-01 10:28:57 -08:00
Sheetal Nandi
df9da15abb
Incremental false with composite not allowed
2019-03-01 09:39:58 -08:00
Sheetal Nandi
d53efdf380
Changes to generation of .tsbuildinfo:
...
- If composite or incremental then only the .tsbuildinfo will be generated
- if --out or --outFile the file is outputFile.tsbuildinfo
- if rootDir and outDir then outdir/relativePathOfConfigFromRootDir/configname.tsbuildinfo
- if just outDir then outDir/configname.tsbuild
- otherwise config.tsbuildinfo next to configFile
2019-02-28 13:46:26 -08:00
Sheetal Nandi
9fa28158bb
Enable building typescript.d.ts with current source
2019-02-22 18:11:27 -08:00
Sheetal Nandi
494bd92f1b
Report error if overwriting buildInfo of another project reference
2019-02-21 19:34:20 -08:00
Sheetal Nandi
e9fb843e56
Add test to verify incremental build is same as if its built clean
2019-02-21 12:46:04 -08:00
Sheetal Nandi
e3f8c34bc9
Add mechanism to dump and read program to build info
2019-02-07 12:10:15 -08:00
Sheetal Nandi
aa5d62a72c
Perform only emit on js file if no decl file change
2019-02-04 15:01:54 -08:00
Sheetal Nandi
39e37a2c57
Generate .tsbuildInfo if bundle uses references with prepend
2019-01-31 10:24:13 -08:00
Sheetal Nandi
315a4dd226
Merge branch 'master' into prependWithBundleInfo
2019-01-30 13:38:28 -08:00
Sheetal Nandi
55b8e4fd29
Handle "" correctly when cacheing file text
2019-01-30 12:32:08 -08:00
Sheetal Nandi
0d9cf96e74
Make the bundle info into buildInfo
2019-01-30 10:07:29 -08:00
Sheetal Nandi
0aaa880197
Use bundle info to store info about prologues, emit Helpers, references etc
2019-01-29 10:51:22 -08:00
Sheetal Nandi
604af5c621
Handle get from readFileCache correctly.
...
Fixes #29623
2019-01-28 12:30:05 -08:00
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