Skip to content

Commit bca7e1c

Browse files
authored
Merge branch 'master' into mu
2 parents 05c7fd4 + 66fa273 commit bca7e1c

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ env:
2424

2525
matrix:
2626
fast_finish: true
27+
allow_failures:
28+
- env: EMBER_TRY_SCENARIO=typescript-beta
29+
- env: EMBER_TRY_SCENARIO=ember-cli-beta
2730

2831
before_install:
2932
- bash ./is_md_only.sh && MD_ONLY=true && echo "Only .md files have changed!" || test true

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

lib/incremental-typescript-compiler/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)