Skip to content

Commit cbf51e7

Browse files
committed
refactor(@schematics/angular): remove internal linkCli ng-new option
`yarn ng-dev misc build-and-link <path-to-local-project-root>` should be used instead.
1 parent fc4465c commit cbf51e7

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

packages/schematics/angular/ng-new/index.ts

-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
} from '@angular-devkit/schematics';
2121
import {
2222
NodePackageInstallTask,
23-
NodePackageLinkTask,
2423
RepositoryInitializerTask,
2524
} from '@angular-devkit/schematics/tasks';
2625
import { Schema as ApplicationOptions } from '../application/schema';
@@ -77,12 +76,6 @@ export default function (options: NgNewOptions): Rule {
7776
packageManager: options.packageManager,
7877
}),
7978
);
80-
if (options.linkCli) {
81-
packageTask = context.addTask(
82-
new NodePackageLinkTask('@angular/cli', options.directory),
83-
[packageTask],
84-
);
85-
}
8679
}
8780
if (!options.skipGit) {
8881
const commit =

packages/schematics/angular/ng-new/schema.json

-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
"type": "boolean",
2525
"default": false
2626
},
27-
"linkCli": {
28-
"description": "Link the CLI to the global version (internal development only).",
29-
"type": "boolean",
30-
"default": false,
31-
"visible": false
32-
},
3327
"skipGit": {
3428
"description": "Do not initialize a git repository.",
3529
"type": "boolean",

0 commit comments

Comments
 (0)