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
// Do nothing; we just won't have the plugin available. This means that if you
15
+
// somehow end up in a state where it doesn't load, the preprocessor *will*
16
+
// fail, but this is necessary because the preprocessor depends on packages
17
+
// which aren't installed until the default blueprint is run
18
+
19
+
this.ui.writeInfoLine(
20
+
'Skipping TypeScript preprocessing as there is no tsconfig.json. '+
21
+
'(If this is during installation of the add-on, this is as expected. If it is '+
22
+
'while building, serving, or testing the application, this is an error.)'
22
23
);
23
24
return;
24
25
}
@@ -28,10 +29,7 @@ module.exports = {
28
29
ui: this.ui
29
30
}));
30
31
}catch(ex){
31
-
this.ui.write(
32
-
'Missing or invalid tsconfig.json, please fix or run `ember generate ember-cli-typescript`.'
33
-
);
34
-
this.ui.write(' '+ex.toString());
32
+
thrownewSilentError(`Failed to instantiate TypeScript preprocessor, probably due to an invalid tsconfig.json. Please fix or run \`ember generate ember-cli-typescript\`.\n${ex}`);
0 commit comments