Skip to content

Commit

Permalink
fix(core): add missing core plugins to list command (#12305)
Browse files Browse the repository at this point in the history
(cherry picked from commit 776b5a0)
  • Loading branch information
Phillip9587 authored and FrozenPandaz committed Sep 29, 2022
1 parent 6c289f8 commit 7addb44
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions packages/nx/src/utils/plugins/core-plugins.ts
Expand Up @@ -2,31 +2,47 @@ import * as chalk from 'chalk';
import { output } from '../output';
import type { CorePlugin, PluginCapabilities } from './models';

export function fetchCorePlugins() {
const corePlugins: CorePlugin[] = [
export function fetchCorePlugins(): CorePlugin[] {
return [
{
name: '@nrwl/angular',
capabilities: 'generators',
capabilities: 'executors,generators',
},
{
name: '@nrwl/cypress',
capabilities: 'executors,generators',
},
{
name: '@nrwl/express',
name: '@nrwl/detox',
capabilities: 'executors,generators',
},
{
name: '@nrwl/esbuild',
capabilities: 'executors,generators',
},
{
name: '@nrwl/expo',
capabilities: 'executors,generators',
},
{
name: '@nrwl/express',
capabilities: 'generators',
},
{
name: '@nrwl/jest',
capabilities: 'executors,generators',
},
{
name: '@nrwl/js',
capabilities: 'executors,generators',
},
{
name: '@nrwl/linter',
capabilities: 'executors',
capabilities: 'executors,generators',
},
{
name: '@nrwl/nest',
capabilities: 'executors,generators',
capabilities: 'generators',
},
{
name: '@nrwl/next',
Expand All @@ -36,6 +52,10 @@ export function fetchCorePlugins() {
name: '@nrwl/node',
capabilities: 'executors,generators',
},
{
name: 'nx',
capabilities: 'executors',
},
{
name: '@nrwl/nx-plugin',
capabilities: 'executors,generators',
Expand All @@ -45,7 +65,11 @@ export function fetchCorePlugins() {
capabilities: 'executors,generators',
},
{
name: '@nrwl/js',
name: '@nrwl/react-native',
capabilities: 'executors,generators',
},
{
name: '@nrwl/rollup',
capabilities: 'executors,generators',
},
{
Expand All @@ -56,12 +80,15 @@ export function fetchCorePlugins() {
name: '@nrwl/web',
capabilities: 'executors,generators',
},
{
name: '@nrwl/webpack',
capabilities: 'executors,generators',
},
{
name: '@nrwl/workspace',
capabilities: 'executors,generators',
},
];
return corePlugins;
}

export function listCorePlugins(
Expand Down

0 comments on commit 7addb44

Please sign in to comment.