au-rogue
Version:
Conservative Aurelia 1 to 2 codemods. Changes only what is safe, reports everything.
17 lines (16 loc) • 648 B
TypeScript
import { Project } from 'ts-morph';
import { Reporter } from '../types.js';
/**
* Removes PLATFORM.moduleName() calls which are no longer needed in Aurelia 2
*
* Transforms:
* - PLATFORM.moduleName('./my-component') → './my-component'
* - PLATFORM.moduleName('features/customers/index') → 'features/customers/index'
*
* Also removes PLATFORM imports if they become unused.
*/
export declare function transformPlatform(project: Project, reporter: Reporter): void;
/**
* Check for common PLATFORM usage patterns and provide migration guidance
*/
export declare function analyzePlatformUsage(project: Project, reporter: Reporter): void;