Repository navigation
docs(@schematics/angular): correct directory and entryFile option descriptions - #34364
Conversation
… descriptions The `ng new` `directory` option claimed the workspace is created in the current directory when the option is omitted, but a new directory named after the workspace is created instead. The library `entryFile` option described a path relative to the workspace root, but the value is a file name without the `.ts` extension that is placed in the library's `src` directory.
There was a problem hiding this comment.
Code Review
This pull request updates the descriptions of schema properties in Angular schematics to clarify their behavior: entryFile in the library schema is now described as a file name without the .ts extension, and directory in the ng-new schema clarifies that a new directory is created if not specified. Feedback suggests removing the "format": "path" attribute from entryFile since it no longer represents a standard path, preventing potential issues with IDEs and GUI tools.
… option descriptions Co-authored-by: Alan Agius <alan.agius4@gmail.com>
… option descriptions Co-authored-by: Alan Agius <alan.agius4@gmail.com>
a4a19d1 to
8602c39
Compare
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The
ng newdirectoryoption claimed the workspace is created in the current directory when the option is omitted, but a new directory named after the workspace is created instead. The libraryentryFileoption described a path relative to the workspace root, but the value is a file name without the.tsextension that is placed in the library'ssrcdirectory.