File tree Expand file tree Collapse file tree
packages/create-nx-workspace/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -833,6 +833,7 @@ export function validateWorkspaceName(name: string): void {
833833 }
834834}
835835
836+ /** Returns `true` when the folder name refers to the current directory. */
836837function isCurrentDirReference ( folderName : string ) : boolean {
837838 return folderName === '.' || folderName === './' ;
838839}
@@ -850,7 +851,7 @@ function isCurrentDirReference(folderName: string): boolean {
850851export function resolveSpecialFolderName (
851852 folderName : string
852853) : { name : string ; workingDir : string } | null {
853- // Handle "." and "./" — user wants to init in the current directory
854+ // User wants to init in the current directory
854855 if ( isCurrentDirReference ( folderName ) ) {
855856 const cwd = resolve ( process . cwd ( ) ) ;
856857 if ( readdirSync ( cwd ) . length > 0 ) {
You can’t perform that action at this time.
0 commit comments