Angular Modernizer
    Preparing search index...

    Transform rule refactor:library-extraction: extracts Angular artifacts from shared folders into a dedicated Angular library with secondary entry points and updates imports and build configs.

    Runs only when the plugin config sets transformationType: 'library-extraction'; delegates to LibraryExtractionOrchestrator.

    Options (MCP 'options' field, under the plugin key of context.config):

    • libraryName: string (required) - e.g. 'ui'
    • libraryPrefix: string (required) - e.g. '@myapp'
    • artifacts: string[] (required) - file paths to migrate
    • secondaryEntryPoints?: string[] - sub-library names
    • libraryType?: 'angular-library' | 'folder-move'
    • outputFolder?: string - default 'projects/'
    • dryRun?: boolean - preview only (default false)

    MCP transform-code arguments:

    {
    "transformation": "library-extraction",
    "options": {
    "libraryName": "ui",
    "libraryPrefix": "@myapp",
    "artifacts": ["src/shared/ui/button.component.ts"],
    "secondaryEntryPoints": ["button"],
    "dryRun": false
    }
    }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "refactoring" = 'refactoring'

    Rule category for grouping.

    description: "Extracts Angular artifacts into dedicated libraries with secondary entry points" = 'Extracts Angular artifacts into dedicated libraries with secondary entry points'

    Rule description explaining what it does.

    id: "refactor:library-extraction" = 'refactor:library-extraction'

    Unique rule identifier (scoped to plugin).

    name: "Library Extraction" = 'Library Extraction'

    Human-readable rule name.

    tags: string[] = ...

    Tags for filtering and search.

    Methods