Skip to content

Commit

Permalink
style(nx): don't display common package when running list
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Nov 19, 2019
1 parent b220a17 commit 6679156
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/workspace/src/command-line/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,19 @@ function listCapabilities(pluginName: string) {
function listPlugins() {
const installedPlugins = readCapabilitiesFromNodeModules(appRootPath);

// The following packages are present in any workspace. Hide them to avoid confusion.
const hide = [
'@angular-devkit/architect',
'@angular-devkit/build-ng-packagr',
'@angular-devkit/build-webpack',
'@angular-eslint/builder'
];

const filtered = installedPlugins.filter(p => hide.indexOf(p.name) === -1);

output.log({
title: `Installed plugins :`,
bodyLines: installedPlugins.map(p => {
bodyLines: filtered.map(p => {
const capabilities = [];
if (hasElements(p.builders)) {
capabilities.push('builders');
Expand Down

0 comments on commit 6679156

Please sign in to comment.