You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(@angular/cli): import markdown files directly for command descriptions
Use TypeScript ambient module declaration for *.md files and register a scoped
markdown require extension hook in CommonJS to allow direct import of command
long descriptions.
Loading markdown directly via module imports prepares the CLI codebase for
ESM bundling, where __dirname and runtime filesystem reads are problematic.
It simplifies unit tests by avoiding filesystem path resolution while bundling
the text content seamlessly during production builds.
This eliminates 12 __dirname references across command modules and removes
the obsolete longDescriptionPath property.
0 commit comments