Skip to content

Commit 3059407

Browse files
committed
Run tests with latest Ember CLI
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.
1 parent 0191658 commit 3059407

File tree

2 files changed

+1834
-2035
lines changed

2 files changed

+1834
-2035
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,17 @@ module.exports = {
176176

177177
if (options.typescript) {
178178
const needsVersion = '4.9.0-beta.0';
179+
const recommendedVersion = '5.2.0-beta.0';
179180
const hasVersion = this.project.emberCLIVersion();
180181

181182
if (lt(hasVersion, needsVersion)) {
182183
this.ui.writeWarnLine(
183184
`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!`
184185
);
186+
} else if (lt(hasVersion, recommendedVersion)) {
187+
this.ui.writeWarnLine(
188+
`We recommend using Ember CLI >= ${recommendedVersion} for the best blueprint support when using TypeScript!`
189+
);
185190
}
186191
}
187192
},

0 commit comments

Comments
 (0)