We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 428b76b commit 0582f59Copy full SHA for 0582f59
packages/angular/cli/bin/ng.js
@@ -20,6 +20,16 @@ try {
20
process.title = 'ng';
21
}
22
23
+const rawCommandName = process.argv[2];
24
+
25
+if (rawCommandName === '--get-yargs-completions' || rawCommandName === 'completion') {
26
+ // Skip Node.js supported checks when running ng completion.
27
+ // A warning at this stage could cause a broken source action (`source <(ng completion script)`) when in the shell init script.
28
+ require('./bootstrap');
29
30
+ return;
31
+}
32
33
// This node version check ensures that extremely old versions of node are not used.
34
// These may not support ES2015 features such as const/let/async/await/etc.
35
// These would then crash with a hard to diagnose error message.
0 commit comments