@@ -14,7 +14,7 @@ export default addon({
1414 included ( ) {
1515 this . _super . included . apply ( this , arguments ) ;
1616 this . _checkDevelopment ( ) ;
17- this . _checkBabelVersion ( ) ;
17+ this . _checkPeerVersions ( ) ;
1818
1919 // If we're a direct dependency of the host app, go ahead and start up the
2020 // typecheck worker so we don't wait until the end of the build to check
@@ -87,7 +87,7 @@ export default addon({
8787 return ! [ 'in-repo-a' , 'in-repo-b' ] . includes ( addon . name ) ;
8888 } ,
8989
90- _checkBabelVersion ( ) {
90+ _checkPeerVersions ( ) {
9191 let babel = this . parent . addons . find ( addon => addon . name === 'ember-cli-babel' ) ;
9292 let version = babel && babel . pkg . version ;
9393 if ( ! babel || ! ( semver . gte ( version ! , '7.1.0' ) && semver . lt ( version ! , '8.0.0' ) ) ) {
@@ -97,6 +97,15 @@ export default addon({
9797 'your TypeScript files may not be transpiled correctly.'
9898 ) ;
9999 }
100+
101+ let cliPackage = this . project . require ( 'ember-cli/package.json' ) as { version : string } ;
102+ if ( semver . lt ( cliPackage . version , '3.5.0' ) ) {
103+ this . ui . writeWarnLine (
104+ 'ember-cli-typescript works best with ember-cli >= 3.5, which uses the system temporary directory ' +
105+ 'by default rather than a project-local one, minimizing file system events the TypeScript ' +
106+ 'compiler needs to keep track of.'
107+ ) ;
108+ }
100109 } ,
101110
102111 _checkDevelopment ( ) {
0 commit comments