Ron Buckton
7611c5b931
Fix for computed properties in instance initializers ( #31517 )
2019-05-22 11:17:54 -07:00
Ron Buckton
0c1a283bf9
Add opt-in behavior for custom transforms to support bundles
2019-05-07 17:29:02 -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
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
a6f7ec3464
Handle outDir and declrationDir correctly to generate output file names for the tsbuild
2019-03-14 10:00:55 -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
Wenlu Wang
b97b1a8de6
add jsx factory and hold text in jsxtext node ( #29439 )
...
* add jsx factory and hold text in jsxtext node
* update jsxtext prop name and factory
2019-03-11 16:00:18 -07:00
Sheetal Nandi
68e28da141
Build project if existing project was built with different compiler version
2019-03-08 15:14:34 -08:00
Sheetal Nandi
409d6c911e
Add compiler version to buildInfo
2019-03-08 13:32:43 -08:00
Sheetal Nandi
fbfd349127
Change to debug fail instead of assert never
2019-03-08 10:22:44 -08:00
Sheetal Nandi
ac55310c48
Fix prologue emitting in case of modules with --out scenario
2019-03-05 11:48:09 -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
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
9730cfa845
Dont emit sourceMapUrl from prepend text into the --out file
2019-02-22 14:39:47 -08:00
Sheetal Nandi
ab66b1e293
Fix the blank lines for internal enum members with --stripInternal
2019-02-22 13:51:13 -08:00
Sheetal Nandi
a63d69de7a
Fix incorrect emit when internal method is inside internal interface
2019-02-22 13:03:46 -08:00
Sheetal Nandi
494bd92f1b
Report error if overwriting buildInfo of another project reference
2019-02-21 19:34:20 -08:00
Sheetal Nandi
1e24cd19a8
Allow empty own source files
2019-02-21 17:36:20 -08:00
Sheetal Nandi
bc4186cee5
Update the programBuildInfo to be platform and change independent so we can baseline it safely
2019-02-21 13:52:21 -08:00
Sheetal Nandi
ad72aef4b1
Correctly set sourceFileInfo for bundle when generating output without creating program
2019-02-21 12:54:00 -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
db2cfa00a2
Fix emit when internal propogates through multiple levels of references
2019-02-21 10:23:14 -08:00
Sheetal Nandi
d25a6e1cc5
Combine d.ts and .js emit
2019-02-21 09:05:32 -08:00
Sheetal Nandi
4bef3ac6a1
Because we already have texts for fixing the emits, write them only if changed
2019-02-20 15:45:12 -08:00
Sheetal Nandi
224f3ca975
Enable other stripinternal test cases
2019-02-20 15:01:48 -08:00
Sheetal Nandi
d9311f96e5
Fix issue with .tsbuildinfo the .d.ts emit when emitting without creating program
2019-02-20 12:55:08 -08:00
Sheetal Nandi
1c8970d30b
Handle synthetic references better
2019-02-20 11:37:45 -08:00
Sheetal Nandi
0cd7074e1b
Handle emit when using prepends and the referencing project has --stripInternal true
2019-02-20 10:41:28 -08:00
Sheetal Nandi
a0f3420001
Add sections to the prepend (to be later used for stripInternal)
2019-02-20 10:41:26 -08:00
Sheetal Nandi
499bc70056
Make printer option to be writing bunfle file info and use the result instead
2019-02-11 13:47:24 -08:00
Sheetal Nandi
217a34256c
Move bundleFileInfo as printer options
2019-02-11 13:13:19 -08:00
Sheetal Nandi
1d77008993
Handle when no .tsbuildinfo is to be generated
2019-02-07 16:27:45 -08:00
Sheetal Nandi
adcb79a111
Emit bundle information into bundle field of buildinfo and only if bundled emit
2019-02-07 14:32:52 -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
212cd62f05
Generate buildInfo for non --out and prepend options as well
2019-02-07 12:10:14 -08:00
Sheetal Nandi
3a28fb0786
Add another test to generate baseline when sample's logic config file changes declaration dir
2019-02-07 10:29:56 -08:00
Sheetal Nandi
207ab9c2b7
Since dts file doesnt change the dts bundle info doesnt change either so no need to save the new buildInfo for dts emit
2019-02-05 12:34:15 -08:00
Sheetal Nandi
3593685269
Use prologue directive information in buildInfo to emit prologues when manipulating js output bundle file
2019-02-04 15:31:10 -08:00
Sheetal Nandi
16914cc940
Factor out unparsed source file for own creation
2019-02-04 15:02:29 -08:00
Sheetal Nandi
d9ead78e8c
Map dts file to sections to write and fix from
2019-02-04 15:02:11 -08:00
Sheetal Nandi
a64e5ad3f3
Even though .d.ts doesnt change, the map file most likely changes, so emit that
2019-02-04 15:02:06 -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
00917a4649
Store pologue information in bundle info
2019-02-04 15:00:17 -08:00
Sheetal Nandi
e3eb7bc4b7
Add helpers from source files to the bundleInfo to be used later
2019-02-01 17:52:01 -08:00
Sheetal Nandi
4050378819
Add source information to bundle info and use it to emit header information later on
2019-02-01 17:44:38 -08:00
Sheetal Nandi
a41d546f6e
Store commonSourceDirectory
2019-02-01 11:42:39 -08:00
Sheetal Nandi
f7281e3fb5
Use same property name for BundleFileSection and UnparsedNode for easy node creation
2019-01-31 11:51:52 -08:00
Sheetal Nandi
38e0d4df0f
Add SourceMapUrl to section
2019-01-31 11:19:55 -08:00
Sheetal Nandi
b15cb6b097
Create nodes for unparsed text, prepend text
2019-01-31 10:44:17 -08:00