File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
lib/incremental-typescript-compiler Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 2424
2525matrix :
2626 fast_finish : true
27+ allow_failures :
28+ - env : EMBER_TRY_SCENARIO=typescript-beta
29+ - env : EMBER_TRY_SCENARIO=ember-cli-beta
2730
2831before_install :
2932 - bash ./is_md_only.sh && MD_ONLY=true && echo "Only .md files have changed!" || test true
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66
77## [ Unreleased]
88
9+ ## [ 1.3.2] - 2018-06-05
10+
11+ ### Fixed
12+
13+ * TypeScript 2.9 no longer causes infinite error loops and/or fails to trigger rebuilds.
14+
915## [ 1.3.1] - 2018-05-14
1016
1117### Fixed
@@ -232,7 +238,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
232238* Basic, semi-working functionality.
233239
234240[ ember-cli-typify ] : https://github.com/winding-lines/ember-cli-typify
235- [ unreleased ] : https://github.com/typed-ember/ember-cli-typescript/compare/v1.3.0...HEAD
241+ [ unreleased ] : https://github.com/typed-ember/ember-cli-typescript/compare/v1.3.2...HEAD
242+ [ 1.3.2 ] : https://github.com/typed-ember/ember-cli-typescript/compare/v1.3.1...v1.3.2
236243[ 1.3.1 ] : https://github.com/typed-ember/ember-cli-typescript/compare/v1.3.0...v1.3.1
237244[ 1.3.0 ] : https://github.com/typed-ember/ember-cli-typescript/compare/v1.2.1...v1.3.0
238245[ 1.2.1 ] : https://github.com/typed-ember/ember-cli-typescript/compare/v1.2.0...v1.2.1
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ module.exports = class IncrementalTypescriptCompiler {
2929
3030 this . _ts = project . require ( 'typescript' ) ;
3131 this . _watchProgram = null ;
32+ this . _compilerOptions = null ;
3233 }
3334
3435 treeForHost ( ) {
@@ -136,6 +137,10 @@ module.exports = class IncrementalTypescriptCompiler {
136137 }
137138 }
138139 } ) ;
140+
141+ // Prefetch the compiler options, because fetching them while reporting a diagnostic
142+ // can result in a diagnostic-reporting loop in certain states
143+ this . _compilerOptions = this . getProgram ( ) . getCompilerOptions ( ) ;
139144 }
140145
141146 getProgram ( ) {
@@ -151,8 +156,7 @@ module.exports = class IncrementalTypescriptCompiler {
151156 }
152157
153158 _shouldFailOnTypeError ( ) {
154- let options = this . getProgram ( ) . getCompilerOptions ( ) ;
155- return ! ! options . noEmitOnError ;
159+ return ! ! this . _compilerOptions . noEmitOnError ;
156160 }
157161
158162 _mirageDirectory ( ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " ember-cli-typescript" ,
3- "version" : " 1.3.1 " ,
3+ "version" : " 1.3.2 " ,
44 "description" : " Allow ember apps to use typescript files." ,
55 "keywords" : [
66 " ember-addon" ,
You can’t perform that action at this time.
0 commit comments