Commit graph

482 commits

Author SHA1 Message Date
Vladimir Matveev d941177547 check if moduleResolution when verifying that program can be reused 2016-06-07 15:08:46 -07:00
Andy Hanson a918730df0 factor out isJsxOrTsxExtension 2016-06-06 12:17:11 -07:00
Mohamed Hegazy 18a875807c Remove restriction on --target es5 and --module es6 2016-06-05 15:37:20 -07:00
Andy Hanson 094f97e366 Respond to PR comments 2016-06-03 06:22:34 -07:00
Andy Hanson 7e9cb46a1a Support shorthand ambient module declarations 2016-06-02 12:55:48 -07:00
Andy Hanson 3b19825890 Allow wildcard ("*") patterns in ambient module declarations 2016-06-02 05:44:49 -07:00
Andy Hanson 9575b3c3ca Revert to old tryLoad implementation 2016-06-01 11:44:12 -07:00
Andy Hanson d4b8889984 Respond to more PR comments 2016-05-31 12:58:05 -07:00
Andy Hanson f4d6b67cb0 Respond to PR comments 2016-05-31 11:39:11 -07:00
Andy Hanson a0546a9310 Improve loadModuleFromFile code 2016-05-31 10:41:46 -07:00
Andy Hanson fa16a99514 Allow an import of "foo.js" to be matched by a file "foo.ts" 2016-05-31 09:26:21 -07:00
Ryan Cavanaugh 7173fa8d02 Merge pull request #8670 from RyanCavanaugh/fix8275
Automatically consume @types/ folders
2016-05-24 15:23:06 -07:00
Bill Ticehurst 75d84dcf61 Merge remote-tracking branch 'upstream/master' into loadJsFromModules 2016-05-23 17:14:23 -07:00
Bill Ticehurst ac541948c9 Fixed diagnostic message wording 2016-05-23 17:06:48 -07:00
Bill Ticehurst c76dc72b40 Merge remote-tracking branch 'upstream/master' into loadJsFromModules 2016-05-23 17:00:10 -07:00
Ryan Cavanaugh f7cc05482b Don't lose host 'this' 2016-05-23 16:25:25 -07:00
Ryan Cavanaugh 27292e4292 Merge pull request #8678 from RyanCavanaugh/fix8255
Tweak UMD / global semantics
2016-05-23 16:15:56 -07:00
Ryan Cavanaugh 3ee4a2283f Lint 2016-05-23 15:47:04 -07:00
Ryan Cavanaugh 1c253239e6 Refactor 2016-05-23 14:51:39 -07:00
Ryan Cavanaugh 41290db9c6 Tweak UMD semantics 2016-05-18 17:59:43 -07:00
Mohamed Hegazy 167c3fbc64 Fix typo 2016-05-18 17:12:59 -07:00
Mohamed Hegazy d73dd06e4b Respond to code review comments 2016-05-18 16:37:14 -07:00
Ryan Cavanaugh 58b11b631f Baseline accept and reorder program logic so common source dir is right 2016-05-18 11:30:40 -07:00
Ryan Cavanaugh f0e3ebe37d Lint 2016-05-18 11:12:02 -07:00
Mohamed Hegazy 02f0065c95 Update error message 2016-05-17 17:15:06 -07:00
Mohamed Hegazy 53f6755907 Add error message if module is not specified and a file contains a module indicator 2016-05-17 17:14:51 -07:00
Ryan Cavanaugh f4e10eb738 Automatically consume /types 2016-05-17 15:41:31 -07:00
Vladimir Matveev 5e94c76190 expose code path that will use Path type to avoid redundant string conversions 2016-05-10 23:43:26 -07:00
Lucien Greathouse 71e4d4504f Fix minor comment typo 2016-05-09 23:05:57 -06:00
Vladimir Matveev 2b5bbfee60 use CompilerHost.realpath to resolve actual location for symlinks 2016-05-05 13:38:09 -07:00
Vladimir Matveev 54862a27e2 fix typo in message 2016-04-13 21:36:36 -07:00
Vladimir Matveev e7a4dd4cf5 added validation of paths option 2016-04-13 21:16:39 -07:00
Vladimir Matveev 376c493e67 include type reference directives in .d.ts. files 2016-04-11 21:36:07 -07:00
Vladimir Matveev 1a85c5f54c fix issue with optionality of CompilerHost 2016-04-10 20:42:22 -07:00
Vladimir Matveev e5e7d47782 merge with origin/master 2016-04-08 14:38:47 -07:00
Paul van Brenk 58efc2ee05 Merge pull request #7883 from Microsoft/listEmittedFiles2
Add option to list the emitted files as part of the compiler output.
2016-04-07 17:50:26 -07:00
Paul van Brenk 88a8992ce3 CR Feedback 2016-04-07 15:29:11 -07:00
Yui f0a996e6fb Fix rwc (#7895)
* Fix RWC

* Fix RWC

* Addres PR
2016-04-07 11:17:43 -07:00
Vladimir Matveev 46d28f16cc added supports for 'types' compiler option 2016-04-06 13:49:25 -07:00
Paul van Brenk 5363b2d7ad Add option to list the emitted as part of the compiler output.
This is useful for incremental build scenarios.
2016-04-06 13:25:29 -07:00
Vladimir Matveev e2a23fd598 remove compilationRoot parameter, use typesRoot/config file location as a root when computing primary locations 2016-04-05 16:33:11 -07:00
Vladimir Matveev ecbbe02c53 addressed PR feedback 2016-04-05 11:28:50 -07:00
Vladimir Matveev 25e9226d25 addressed PR feedback 2016-04-04 18:03:36 -07:00
Mohamed Hegazy 523529cc55 Use isWatchSet to test for options.watch 2016-04-04 14:51:16 -07:00
Mohamed Hegazy f1f6317a59 Merge branch 'vilic-master' 2016-04-04 11:23:45 -07:00
Mohamed Hegazy 4b5618bd60 Merge branch 'master' of https://github.com/vilic/TypeScript into vilic-master 2016-04-04 11:23:30 -07:00
Vladimir Matveev a4f30ff2a7 removed unused type assertions in harness 2016-04-01 21:26:39 -07:00
Vladimir Matveev aaaa9c0895 expose type reference resolution for external consumption 2016-04-01 12:41:01 -07:00
Ryan Cavanaugh 75922c4056 Address CR 2016-04-01 12:19:40 -07:00
Ryan Cavanaugh 05444eaabb Support reference library directives 2016-04-01 12:19:16 -07:00
Kanchalai Tanglertsampan b9cd882ae7 Address PR: use getDefaultLibLocation to get directory 2016-03-30 10:26:39 -07:00
Kanchalai Tanglertsampan 7e1470d5d4 Address PR: use getDefaultLibLocation? insteadof getUserDefinedLibFileName 2016-03-28 16:24:16 -07:00
Kanchalai Tanglertsampan 3fef5ba458 Implement --lib flag in the compiler and harness 2016-03-28 14:20:29 -07:00
Blake Embrey 9334e135d8 Normalize tsconfig.json path before searching 2016-03-26 18:02:22 -07:00
Chuck Jazdzewski 8bf9da614f Adding sourceFiles to the Program emit callback
This implements #7438
2016-03-15 13:25:18 -07:00
Anil Anar 8e35cdd52c add missing conditional check 2016-03-12 21:16:43 +01:00
Anil Anar cde06b6585 Fix #7397: Remove error checks for noEmit and out* compiler options combined. 2016-03-12 19:20:18 +01:00
Ryan Cavanaugh 7d372bf6dc Merge pull request #7264 from RyanCavanaugh/umd
UMD support
2016-03-10 10:59:45 -08:00
Ryan Cavanaugh 44aa7388ea UMD support 2016-03-09 10:08:24 -08:00
Kanchalai Tanglertsampan 70d267419b Concat declaration error so we report them 2016-03-02 17:13:51 -08:00
Vladimir Matveev e0900434c9 address PR feedback: add comments 2016-02-24 14:30:21 -08:00
Vladimir Matveev 8e77f40ace avoid multiple passes over the program when computing diagnostics for the bundled emit 2016-02-24 14:21:30 -08:00
Asad Saeeduddin f251768f32 Make declarationDir invalid alongside out or outFile 2016-02-23 17:45:45 -05:00
Asad Saeeduddin c8aedbf382 Address PR feedback: expand ternary return into if block, add check to ensure proper options usage 2016-02-22 20:45:04 -05:00
Mohamed Hegazy 353998a6bd Rever change to EmitOutput.diagnostics 2016-02-18 12:06:17 -08:00
Mohamed Hegazy 2b52ae1cb7 Fix lint errors 2016-02-16 22:57:27 -08:00
Mohamed Hegazy eed65a0334 Port #7106 to master 2016-02-16 22:01:28 -08:00
Vladimir Matveev 3820dfa830 Merge pull request #7068 from Microsoft/relativeNamesInClassicResolution
classic resolution: don't perform folder walk if module name is relative
2016-02-16 12:03:09 -08:00
Bill Ticehurst fe60490c2a Fixed wording and updated tests 2016-02-13 08:12:58 -08:00
Bill Ticehurst dfb0dcde0e Load JS from node_modules 2016-02-13 07:48:25 -08:00
Bill Ticehurst ed7abcc1e9 Set experimentalDecorators warning for JavaScript 2016-02-12 19:19:23 -08:00
Bill Ticehurst f601e6dd76 Allow decorators in JavaScript files 2016-02-12 18:52:51 -08:00
Vladimir Matveev 9960064bc3 classic resolution: don't perform folder walk if module name is relative 2016-02-12 16:30:19 -08:00
Bill Ticehurst e03a45a824 Fix fallback to classic resolution 2016-02-12 15:40:47 -08:00
Bill Ticehurst 9d008feba3 Added module: none as an option
(cherry picked from commit 195e69c889)
2016-02-11 14:09:10 -08:00
Bill Ticehurst 6a8ccd0b56 Dont default to CommonJS modules for ES6 target
(cherry picked from commit 4a67dc5e08)
2016-02-11 14:08:26 -08:00
Bill Ticehurst a370103e15 Added back errors for module kind none
(cherry picked from commit 73fa45bd2e)
2016-02-11 14:08:24 -08:00
Bill Ticehurst bb28424b45 Removed errors for missing module specifier
(cherry picked from commit f2e7f9f50f)
2016-02-11 14:07:32 -08:00
Josh Soref 284b26f49f spelling fixes for src/compiler
* after
* aggressive
* appear
* asterisks
* candidate
* conflict
* directory
* dollar
* ellipsis
* exports
* failures
* folder
* followed
* highlight
* inferred
* location
* occurred
* output
* propagated
* push
* rather
* remaining
* search
* stabilized
* substitution
* successful
* even though
* will
* with
2016-02-11 16:56:45 +00:00
vilicvane a481305292 Reorganize related functions 2016-02-11 16:38:21 +08:00
vilicvane acf965a20e Refine implementation 2016-02-10 08:47:52 +08:00
vilicvane 63c690813f Create createHash and getModifiedTime under sys, and refactor implementation into compiler host 2016-02-09 22:23:43 +08:00
Vladimir Matveev fb99a6697d do not error if typings for external library is empty .d.ts file 2016-02-02 11:36:38 -08:00
Vladimir Matveev 555f35e2cd Merge pull request #6803 from Microsoft/noDirExistsCheckInClassic
don't do 'directoryExists' check in classic resolution scheme
2016-02-01 16:49:51 -08:00
Vladimir Matveev 1f1f4d2442 fix linter issues 2016-02-01 15:34:03 -08:00
Vladimir Matveev 4f2cd6c4a2 don't do 'directoryExists' check in classic resolution scheme 2016-02-01 15:19:13 -08:00
Daniel Rosenwasser bf4b63d3ba Only error on 'export =' declarations. 2016-02-01 14:17:31 -08:00
Vladimir Matveev b0b0712c73 suppress validation of output paths in transpile scenarios 2016-02-01 10:36:47 -08:00
Noj Vek f04f93c414 Fix typo in compiler reactNamespace error string 2016-01-30 11:37:02 -08:00
Vladimir Matveev 3661b66be4 add extra argument to 'isRequireCall' to check if argument is string literal 2016-01-28 14:18:23 -08:00
Vladimir Matveev f23c35f04d Merge pull request #5728 from Microsoft/pathMappingModuleResolution
Path mapping module resolution
2016-01-27 11:38:33 -08:00
Anders Hejlsberg 98603f9f49 Merge pull request #6532 from Microsoft/readonlyMembers
Readonly properties and index signatures
2016-01-27 10:50:26 -08:00
Vladimir Matveev adacad326a addressed PR feedback 2016-01-26 21:38:12 -08:00
Mohamed Hegazy add91052bb Update version 2016-01-25 17:08:15 -08:00
Vladimir Matveev 8a8ed0a871 update implementation based on the results of design meeting 2016-01-25 11:49:26 -08:00
Vladimir Matveev 9d828e3916 Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution 2016-01-20 15:32:19 -08:00
Anders Hejlsberg a499607845 Merge branch 'master' into readonlyMembers
Conflicts:
	src/compiler/parser.ts
	src/compiler/types.ts
2016-01-18 21:03:15 -08:00
Daniel Rosenwasser 26fdf891e9 Fix lint errors. 2016-01-16 14:05:46 -08:00
Vladimir Matveev 3aa92f5611 addressed PR feedback 2016-01-14 10:56:49 -08:00
Anders Hejlsberg b46efc9b55 Allow modifies on type members + introduce "readonly" modifier 2016-01-13 18:34:38 -08:00