You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use canary version of ember-cli on master branch, until we ge get a stable/beta release on npm, which includes better support of `--typescript` ([PR](ember-cli/ember-cli#10283)). Cleans up previous weirdness.
Copy file name to clipboardExpand all lines: index.js
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -176,12 +176,17 @@ module.exports = {
176
176
177
177
if(options.typescript){
178
178
constneedsVersion='4.9.0-beta.0';
179
+
constrecommendedVersion='5.2.0-beta.0';
179
180
consthasVersion=this.project.emberCLIVersion();
180
181
181
182
if(lt(hasVersion,needsVersion)){
182
183
this.ui.writeWarnLine(
183
184
`Your version ${hasVersion} of Ember CLI does not support the --typescript flag yet. Please run \`ember install ember-cli-typescript\` in the ${testAppInfo.location} folder manually!`
184
185
);
186
+
}elseif(lt(hasVersion,recommendedVersion)){
187
+
this.ui.writeWarnLine(
188
+
`We recommend using Ember CLI >= ${recommendedVersion} for the best blueprint support when using TypeScript!`
0 commit comments