fix(ngcc): rename the executable from ivy-ngcc
to ngcc
(#33140)
Previously, the executable for the Angular Compatibility Compiler (`ngcc`) was called `ivy-ngcc`. This would be confusing for users not familiar with our internal terminology, especially given that we call it `ngcc` in all our docs and presentations. This commit renames the executable to `ngcc` and replaces `ivy-ngcc` with a script that errors with an informative message (prompting the user to use `ngcc` instead). Jira issue: [FW-1624](https://angular-team.atlassian.net/browse/FW-1624) PR Close #33140
This commit is contained in:

committed by
Miško Hevery

parent
4acf0a09ac
commit
1a34fbce25
12
packages/compiler-cli/ngcc/main-ivy-ngcc.ts
Normal file
12
packages/compiler-cli/ngcc/main-ivy-ngcc.ts
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
console.error(
|
||||
new Error('The \'ivy-ngcc\' command was renamed to just \'ngcc\'. Please update your usage.'));
|
||||
process.exit(1);
|
@ -5,7 +5,8 @@
|
||||
"main": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
"bin": {
|
||||
"ivy-ngcc": "./ngcc/main-ngcc.js",
|
||||
"ivy-ngcc": "./ngcc/main-ivy-ngcc.js",
|
||||
"ngcc": "./ngcc/main-ngcc.js",
|
||||
"ngc": "./src/main.js",
|
||||
"ng-xi18n": "./src/extract_i18n.js"
|
||||
},
|
||||
|
Reference in New Issue
Block a user